From 103149a4a3f475530e71aafa6b8b642a42347593 Mon Sep 17 00:00:00 2001 From: Niek Rabelink Date: Mon, 7 Sep 2026 11:46:30 +0200 Subject: [PATCH] Test automatische deployment --- index.php | 8 + lab.php | 897 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 905 insertions(+) create mode 100644 lab.php diff --git a/index.php b/index.php index 3d1f253..a90c0b5 100644 --- a/index.php +++ b/index.php @@ -355,6 +355,7 @@ $protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? 'HTTPS' + ✨ Dev Lab → @@ -385,6 +386,12 @@ $protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? 'HTTPS' Operationeel + +
+ + 🚀 Open Interactief Developer Lab (Subpagina) + +
@@ -504,3 +511,4 @@ $protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? 'HTTPS' + diff --git a/lab.php b/lab.php new file mode 100644 index 0000000..96392fb --- /dev/null +++ b/lab.php @@ -0,0 +1,897 @@ + 'success', + 'iterations' => number_format($iterations, 0, ',', '.'), + 'duration_ms' => round($duration, 2), + 'ops_per_sec' => number_format($opsPerSec, 0, ',', '.'), + 'peak_memory' => round($memPeak, 2) . ' MB', + 'php_version' => PHP_VERSION, + 'final_hash' => substr($hash, 0, 16) . '...' + ]); + exit; + } + + if ($_GET['action'] === 'hash' && isset($_POST['text'])) { + $input = (string)$_POST['text']; + echo json_encode([ + 'status' => 'success', + 'md5' => md5($input), + 'sha256' => hash('sha256', $input), + 'base64' => base64_encode($input), + 'length' => mb_strlen($input) + ]); + exit; + } + + echo json_encode(['status' => 'error', 'message' => 'Onbekende actie']); + exit; +} + +date_default_timezone_set('Europe/Amsterdam'); +$serverTime = date('H:i:s'); +$phpVersion = PHP_VERSION; +?> + + + + + + Web & PC Studio - Interactive Dev Lab + + + + + + +
+ +
+
+
+
+ Web & PC Studio +
Dev Lab • v2.0
+
+
+ +
+ + +
+

Interactief Developer Lab

+

+ Geavanceerde demonstratie van server-side PHP computing, asynchrone AJAX communicatie en real-time HTML5 Canvas/Web Audio API rendering. +

+
+ + +
+ +
+
+
+ 🚀 + PHP Server Benchmark +
+ PHP +
+

+ Laat de server 75.000 cryptografische SHA-256 cycli berekenen en meet de execution time & piekgeheugen. +

+ +
+
+
Executietijd
+
-- ms
+
+
+
Bewerkingen / sec
+
--
+
+
+
Piekgeheugen
+
-- MB
+
+
+
Iteraties
+
75.000
+
+
+
+ + +
+
+
+ 📈 + Live Latency Visualizer +
+ Klaar voor test +
+

+ Meet real-time round-trip latency tussen browser en de Apache/PHP webserver. +

+ + +
+ + +
+
+
+ 💻 + Client Hardware & GPU +
+ Client Info +
+
+
+ Grafische kaart (GPU): + Detecteren... +
+
+ CPU Cores / Threads: + -- +
+
+ Schermresolutie: + -- +
+
+ Verbindingstype: + -- +
+
+ Canvas WebGL Versie: + -- +
+
+
+ + +
+
+
+ 🔐 + Live String & Hashing +
+ Real-time +
+ + +
+ MD5 + ... + +
+
+ SHA-256 + ... + +
+
+ Base64 + ... + +
+
+
+
+ + + +