3v4l.org

run code in 300+ PHP versions simultaneously
<?php $attempts = [ '/admin/scripts/vuln.php', '/admin/scripts/unsafe.php', '/admin/lib/blocked.php', '/admin/hello.php', '/admin/lib/hello.php', '/admin/scripts/vulner.php', 'admin/' ]; foreach($attempts as $attempt) { $success = preg_match('/(\/admin\/(scripts|lib)\/(vuln|unsafe|blocked)\.php)/', $attempt, $matches); var_dump($success); var_dump($matches); }
Output for 7.1.12, 7.3.24 - 7.3.33, 7.4.12 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.28, 8.4.1 - 8.4.14, 8.5.0 - 8.5.1
int(1) array(4) { [0]=> string(23) "/admin/scripts/vuln.php" [1]=> string(23) "/admin/scripts/vuln.php" [2]=> string(7) "scripts" [3]=> string(4) "vuln" } int(1) array(4) { [0]=> string(25) "/admin/scripts/unsafe.php" [1]=> string(25) "/admin/scripts/unsafe.php" [2]=> string(7) "scripts" [3]=> string(6) "unsafe" } int(1) array(4) { [0]=> string(22) "/admin/lib/blocked.php" [1]=> string(22) "/admin/lib/blocked.php" [2]=> string(3) "lib" [3]=> string(7) "blocked" } int(0) array(0) { } int(0) array(0) { } int(0) array(0) { } int(0) array(0) { }
Output for 8.4.15
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
Process exited with code 1.

preferences:
65.23 ms | 408 KiB | 5 Q