3v4l.org

run code in 300+ PHP versions simultaneously
<?php # SET DATABASE VARIABLES $ROOT="/var/www/picardo/"; $DB_USER ="masscom"; $DB_PASSWORD="p1x1e1"; $DB_TYPE="mysql"; $DB_HOST="127.0.0.1"; $DBASE="lipsvc"; # Modified by nathan@webr3.org $port_open = shell_exec("netstat -tulpn | grep 3309"); // check if ssh tunnel is open if(!$port_open) { // if not open shell_exec("echo 'pixie1234' | sudo -S ssh -f -L 3309:127.0.0.1:3306 root@72.93.87.15 -p 8022 -N >> logfile"); // reopen ssh tunnel usleep(500000); // apply half second grace period to allow connection to be established } $STYLESHEET=$ROOT."/styles/style.css"; //transaction variables may be set here $apps= $_REQUEST[apps]; $acctid = $_REQUEST[acctid]; ?>
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
Warning: shell_exec(): Unable to execute 'netstat -tulpn | grep 3309' in /in/qBqFY on line 11 Warning: shell_exec(): Unable to execute 'echo 'pixie1234' | sudo -S ssh -f -L 3309:127.0.0.1:3306 root@72.93.87.15 -p 8022 -N >> logfile' in /in/qBqFY on line 13 Fatal error: Uncaught Error: Undefined constant "apps" in /in/qBqFY:19 Stack trace: #0 {main} thrown in /in/qBqFY on line 19
Process exited with code 255.
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Warning: shell_exec(): Unable to execute 'netstat -tulpn | grep 3309' in /in/qBqFY on line 11 Warning: shell_exec(): Unable to execute 'echo 'pixie1234' | sudo -S ssh -f -L 3309:127.0.0.1:3306 root@72.93.87.15 -p 8022 -N >> logfile' in /in/qBqFY on line 13 Fatal error: Uncaught Error: Undefined constant "apps" in /in/qBqFY:19 Stack trace: #0 {main} thrown in /in/qBqFY on line 19
Process exited with code 255.
Output for 7.2.29 - 7.2.33, 7.3.16 - 7.3.31, 7.4.3 - 7.4.33
Warning: shell_exec(): Unable to execute 'netstat -tulpn | grep 3309' in /in/qBqFY on line 11 Warning: shell_exec(): Unable to execute 'echo 'pixie1234' | sudo -S ssh -f -L 3309:127.0.0.1:3306 root@72.93.87.15 -p 8022 -N >> logfile' in /in/qBqFY on line 13 Warning: Use of undefined constant apps - assumed 'apps' (this will throw an Error in a future version of PHP) in /in/qBqFY on line 19 Notice: Undefined index: apps in /in/qBqFY on line 19 Warning: Use of undefined constant acctid - assumed 'acctid' (this will throw an Error in a future version of PHP) in /in/qBqFY on line 20 Notice: Undefined index: acctid in /in/qBqFY on line 20
Output for 7.2.0 - 7.2.26, 7.3.0 - 7.3.13, 7.4.0 - 7.4.1
Warning: Use of undefined constant apps - assumed 'apps' (this will throw an Error in a future version of PHP) in /in/qBqFY on line 19 Notice: Undefined index: apps in /in/qBqFY on line 19 Warning: Use of undefined constant acctid - assumed 'acctid' (this will throw an Error in a future version of PHP) in /in/qBqFY on line 20 Notice: Undefined index: acctid in /in/qBqFY on line 20
Output for 7.3.32 - 7.3.33
Warning: shell_exec(): Unable to execute 'netstat -tulpn | grep 3309' in /in/qBqFY on line 11 Warning: shell_exec(): Unable to execute 'echo 'pixie1234' | sudo -S ssh -f -L 3309:127.0.0.1:3306 root@72.93.87.15 -p 8022 -N >> logfile' in /in/qBqFY on line 13 Warning: Use of undefined constant apps - assumed 'apps' (this will throw an Error in a future version of PHP) in /in/qBqFY on line 19 Warning: Use of undefined constant acctid - assumed 'acctid' (this will throw an Error in a future version of PHP) in /in/qBqFY on line 20
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33
Notice: Use of undefined constant apps - assumed 'apps' in /in/qBqFY on line 19 Notice: Undefined index: apps in /in/qBqFY on line 19 Notice: Use of undefined constant acctid - assumed 'acctid' in /in/qBqFY on line 20 Notice: Undefined index: acctid in /in/qBqFY on line 20

preferences:
242.19 ms | 403 KiB | 375 Q