3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Prepare parameters to call function that will call shell script on OCF to perform a charge $uid = posix_getuid(); $shell_user = posix_getpwuid($uid); echo $shell_user; $myhomepath=$_SERVER['HOME']; echo "MY HOME DIR: $myhomepath" #$home_dir = posix_getpwuid(getmyuid())['dir']; #echo "MY HOME DIR: $home_dir"; exit; $RCMD = "data_sms_uat"; $A_MSISDN = 852223373; $B_MSISDN = 859990002; $S_CONTEXT = "32274@3gpp.org"; echo "FULL CMD LINE CALL \n"; $xpath = $_ENV['PATH']; echo "MYPATH: $xpath"; shell_exec('C:\\Windows\\System32\\cmd.exe /c echo "Hello World 1"'); $output = shell_exec('echo "Hello World 2"'); echo $output; $sshcmd="ssh -i \"C:\Users\Mary Brady\.ssh-otp\id_rsa_automated_test\" otp@10.10.210.77 $RCMD --msisdn $id1 \ --context $S_CONTEXT --service-id $serviceId --rating-group $ratingGroup --interval $interval --updates $updates"; echo "$sshcmd \n"; $output = shell_exec($sshcmd); //shell_exec("ssh mary.brady@10.10.210.77 ./createandrun.sh send_sms_uat 852223373 859990002 32274@3gpp.org"); echo "This is the result: $output";

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.4.10.0490.00717.75
8.3.140.0340.00716.46
8.3.130.0280.00716.52
8.3.120.0260.01116.63
8.3.110.0250.00316.54
8.3.100.0320.00916.30
8.3.90.0250.00016.76
8.3.80.0350.00016.25
8.3.70.0320.00016.43
8.3.60.0230.00016.42
8.3.50.0260.00316.46
8.3.40.0360.00317.46
8.3.30.0040.01817.28
8.3.20.0250.00317.54
8.3.10.0160.00817.46
8.3.00.0320.00517.35
8.2.260.0130.00716.42
8.2.250.0240.00816.66
8.2.240.0230.00616.70
8.2.230.0150.00616.29
8.2.220.0130.00416.38
8.2.210.0230.00716.63
8.2.200.0310.00816.53
8.2.190.0190.00516.40
8.2.180.0080.01118.01
8.2.170.0090.00917.46
8.2.160.0150.00417.25
8.2.150.0170.00317.22
8.2.140.0380.01017.17
8.2.130.0270.00317.28
8.2.120.0180.00417.13
8.2.110.0160.00917.07
8.2.100.0370.00417.20
8.2.90.0320.00517.14
8.2.80.0180.00517.31
8.2.70.0190.00017.36
8.2.60.0230.00017.03
8.2.50.0160.01217.04
8.2.40.0290.00517.57
8.2.30.0140.01817.18
8.2.20.0230.00017.07
8.2.10.0210.00417.05
8.2.00.0210.01217.17

preferences:
139.52 ms | 993 KiB | 7 Q