3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <html> <body bgColor='#FFFFCC'> <? //$bbb = 5; echo "haha = $haha <br>"; echo "bbb = $bbb <br>"; $msgs=$t0."#".$t1."#".$t1x."#".$t2."#".$t3."#".$t4."#".$t5."#".$t6; echo "$msgs<br>"; switch($HTTP_POST["haha"]) { case 0: echo " <b><BR><center>Please enter all information before downloading</center></b> <hr> <FORM action='regis.php?haha=1&bbb=2' method=post> <INPUT TYPE=hidden name=haha value=1> <font face='MS Sans Serif'> <table> <tr><td><font >First Name </font></td><td> <input type='text' size=40v name='t0' value='$t0'> (English) </td></tr> <tr><td><font >Lastname </font></td><td> <input type='text' name='t1' ></td></tr> <tr><td><font>Organization</font></td><td> <input type='text' size=60 name='t1x' ></td></tr> <tr><td><font >Position </font></td><td><input type='text' name='t2' size=40 value='$t2'> </td></tr> <tr><td>Address </td><td><input type='text' name='t3' size=70 value='$t3'></td></tr> <tr><td>Telephone Number</td><td><input type='text' name='t4' size=40 value='$t4'></td></tr> <tr><td><font >Email Address </font></td><td><input type='text' size=40 name='t5' value='$t5'> </td></tr> <tr><td>Recommendations</td><td><input type='text' name='t6' size=60 value='$t6'> (Optional)</td></tr> </table><br>"; echo " <hr>Thank you very much for giving us your information <br><b>Click sumit button below to start downloading</b> <br><br><input type='submit' value=' Submit '> </form>"; break; case 1: if ($t0=='') { echo " Please enter your firstname <br>"; $haha=0; } if ($t1=='') { echo " Please enter your lastname <br>"; $haha=0;} if ($t1x=='') { echo " Please enter your organization <br>"; $haha=0;} if ($t2=='') { echo " Please enter your position <br>"; $haha=0;} if ($t3=='') { echo " Please enter your working address<BR>";$haha=0; } if ($t5=='') { echo " Please enter your telephone number<br>"; $haha=0;} if ($t5=='') { echo " Please enter your email address <br>";$haha=0; } if ($haha==0) { include("regis.php"); } else { $t8=date('d-m-Y, H:i '); $t7='normal'; $msg=$t0."#".$t1."#".$t1x."#".$t2."#".$t3."#".$t4."#".$t5."#".$t6; $msg=$msg."#".$t7."#".$t8; $nl=chr(13).chr(10); $msg = ereg_replace($nl, "<BR>", $msg); $msg=$msg.chr(10); $fcoun="data/registrants.dat"; $fp=fopen($fcoun,"a"); fwrite($fp,$msg); fclose($fp); $usr=$t0; $f1= ord(substr($usr,0,1)); $f2 = ord(substr($usr,strlen($usr)-1,1)); $f3 = $f1*$f2; $passt= $f3 + $f1 + ($f2 * $f2) + ($f3 * 1234); //$sender="ergonomics@siit.tu.ac.th"; //$reciever=$t5; //$msg=" For installing Noise Manager Version 1, your username is $t0 and your password is $passt"; // include("zendmail.php"); //mail($sender, $reciever, $subject, $msg); $to = $t5; $subject="Noise Manager Installation"; $body = " For installing Noise Manager Version 1, \n\n your username is $t0 and your password is $passt \n\n If you have any question, please reply us. Thank you."; $headers = "From: ergonomics@siit.tu.ac.th\r\n"."X-Mailer: php"; echo " Thank you very much for giving us your information<br><BR>"; // For installation, your username is <B>$t0</B> and your password is // <FONT COLOR=red><B>$passt</B></FONT>. <BR>"; if (mail($to, $subject, $body, $headers)) { echo("<p> The username and password are already sent to <B>$t5</B>. You need them for installing Noise Manager </p>"); } else { echo("<p>The username and password CANNOT be sent to <B>$t5</B></p>"); } echo " Please click <A HREF='nm1.exe'>here ( nm1.exe approx. 1MB) </A> to start downloading Noise Manager for Microsoft Excel 97/2000 ."; // echo " <BR>Noise Manager for Excel 97 will be available soon."; } break; } ?> </body></html>

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.3.60.0170.00318.55
8.3.50.0070.00716.58
8.3.40.0140.00018.71
8.3.30.0030.01018.72
8.3.20.0040.00420.41
8.3.10.0050.00221.89
8.3.00.0040.00419.64
8.2.180.0160.00616.38
8.2.170.0040.01122.96
8.2.160.0100.00320.27
8.2.150.0090.00024.18
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0080.00017.63
8.2.110.0030.00620.33
8.2.100.0050.00517.63
8.2.90.0000.00719.28
8.2.80.0080.00017.97
8.2.70.0030.00617.38
8.2.60.0040.00417.77
8.2.50.0040.00418.07
8.2.40.0040.00419.34
8.2.30.0070.00020.68
8.2.20.0070.00017.48
8.2.10.0080.00017.87
8.2.00.0040.00417.80
8.1.280.0130.00625.92
8.1.270.0000.00723.88
8.1.260.0050.00326.35
8.1.250.0050.00228.09
8.1.240.0070.00321.92
8.1.230.0040.00817.42
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0000.00917.23
8.1.190.0060.00317.11
8.1.180.0000.00918.10
8.1.170.0040.00418.45
8.1.160.0080.00021.85
8.1.150.0000.00818.69
8.1.140.0040.00417.38
8.1.130.0030.00317.49
8.1.120.0070.00017.33
8.1.110.0000.00717.25
8.1.100.0040.00417.38
8.1.90.0030.00317.22
8.1.80.0070.00317.27
8.1.70.0000.00717.38
8.1.60.0000.00717.46
8.1.50.0030.00617.30
8.1.40.0080.00017.45
8.1.30.0030.00617.43
8.1.20.0070.00017.49
8.1.10.0080.00017.33
8.1.00.0000.00917.33
8.0.300.0070.00018.77
8.0.290.0050.00316.63
8.0.280.0050.00518.29
8.0.270.0000.00717.18
8.0.260.0030.00317.12
8.0.250.0040.00416.82
8.0.240.0040.00416.72
8.0.230.0000.00716.86
8.0.220.0030.00316.75
8.0.210.0040.00416.77
8.0.200.0030.00316.86
8.0.190.0040.00416.80
8.0.180.0040.00416.74
8.0.170.0030.00516.82
8.0.160.0070.00016.77
8.0.150.0000.00716.80
8.0.140.0040.00416.73
8.0.130.0060.00013.41
8.0.120.0080.00016.70
8.0.110.0040.00416.77
8.0.100.0080.00016.77
8.0.90.0000.00816.76
8.0.80.0130.00616.64
8.0.70.0000.00716.73
8.0.60.0040.00416.64
8.0.50.0040.00416.80
8.0.30.0110.00516.87
8.0.20.0090.00917.40
8.0.10.0030.00616.77
8.0.00.0080.00916.65
7.4.330.0000.00715.08
7.4.320.0000.00716.46
7.4.300.0000.00616.36
7.4.290.0030.00316.45
7.4.280.0000.00816.41
7.4.270.0030.00316.40
7.4.260.0030.00316.35
7.4.250.0040.00416.34
7.4.240.0030.00316.40
7.4.230.0000.00716.40
7.4.220.0100.00716.49
7.4.210.0110.00916.41
7.4.200.0000.00716.27
7.4.160.0100.00716.26
7.4.150.0130.01017.40
7.4.140.0160.00317.86
7.4.130.0070.01016.32
7.4.120.0130.00416.33
7.4.110.0130.00316.45
7.4.100.0090.00916.50
7.4.90.0100.00716.39
7.4.80.0140.00319.39
7.4.70.0100.00716.26
7.4.60.0130.00316.39
7.4.50.0030.00516.46
7.4.40.0070.01016.13
7.4.30.0180.00316.33
7.4.00.0060.01014.93
7.3.330.0030.00313.35
7.3.320.0000.00613.36
7.3.310.0030.00316.10
7.3.300.0060.00016.15
7.3.290.0060.01016.14
7.3.280.0080.01016.11
7.3.270.0140.00717.40
7.3.260.0140.00316.19
7.3.250.0090.00816.14
7.3.240.0140.01116.45
7.3.230.0110.01216.52
7.3.210.0100.00716.39
7.3.200.0040.01216.06
7.3.190.0140.00316.43
7.3.180.0040.01116.39
7.3.170.0090.01316.27
7.3.160.0070.01316.54
7.3.120.0110.00814.59
7.3.110.0120.00614.63
7.3.100.0160.00014.70
7.3.90.0130.00314.88
7.3.80.0030.01014.30
7.3.70.0030.00614.82
7.3.60.0000.01514.80
7.3.50.0060.00914.77
7.3.40.0080.00314.73
7.3.30.0070.00714.56
7.3.20.0090.00316.48
7.3.10.0120.00316.63
7.3.00.0070.00416.53
7.2.330.0030.01316.38
7.2.320.0170.00316.51
7.2.310.0100.00716.59
7.2.300.0060.01016.28
7.2.290.0100.00616.47
7.2.250.0060.01314.65
7.2.240.0100.00715.03
7.2.230.0000.01715.08
7.2.220.0070.00714.77
7.2.210.0060.00914.60
7.2.200.0030.00814.75
7.2.190.0060.00914.86
7.2.180.0080.00814.98
7.2.170.0070.00714.58
7.2.110.0120.00616.20
7.2.60.0030.01217.03
7.2.00.0040.01119.20
7.1.330.0040.01115.34
7.1.320.0060.00315.27
7.1.310.0090.00615.66
7.1.300.0100.00715.36
7.1.290.0060.01015.83
7.1.280.0090.00015.64
7.1.270.0030.00915.69
7.1.260.0040.00815.52
7.1.200.0060.01015.73
7.1.100.0000.01018.29
7.1.70.0000.00717.29
7.1.60.0030.01919.19
7.1.50.0110.01417.05
7.1.00.0100.06722.32
7.0.200.0030.00616.74
7.0.100.0030.04020.08
7.0.90.0070.06020.16
7.0.80.0130.04020.04
7.0.70.0000.04720.00
7.0.60.0270.04720.05
7.0.50.0470.07720.46
7.0.40.0100.09020.00
7.0.30.0100.07720.14
7.0.20.0070.08719.95
7.0.10.0070.07720.04
7.0.00.0100.08020.18
5.6.280.0030.06321.09
5.6.250.0030.03720.63
5.6.240.0070.07720.64
5.6.230.0030.04720.66
5.6.220.0000.04320.55
5.6.210.0100.03320.64
5.6.200.0200.07320.96
5.6.190.0100.08320.98
5.6.180.0030.08721.13
5.6.170.0200.07021.19
5.6.160.0030.05321.04
5.6.150.0030.09021.07
5.6.140.0030.07721.04
5.6.130.0070.08021.04
5.6.120.0070.08320.95
5.6.110.0130.07321.07
5.6.100.0000.07321.02
5.6.90.0100.05321.08
5.6.80.0030.04020.45
5.6.70.0070.04320.41
5.6.60.0130.07720.35
5.6.50.0030.05320.29
5.6.40.0130.07720.47
5.6.30.0100.07320.48
5.6.20.0100.08320.38
5.6.10.0000.08720.54
5.6.00.0130.07720.31
5.5.380.0070.07020.51
5.5.370.0030.04020.29
5.5.360.0070.04020.46
5.5.350.0070.05320.40
5.5.340.0070.08720.94
5.5.330.0100.07720.84
5.5.320.0100.08020.78
5.5.310.0070.08320.77
5.5.300.0100.08020.90
5.5.290.0100.08320.88
5.5.280.0130.08320.89
5.5.270.0100.07320.88
5.5.260.0070.08720.84
5.5.250.0030.08020.63
5.5.240.0000.05020.27
5.5.230.0070.08020.20
5.5.220.0170.07020.07
5.5.210.0030.05020.22
5.5.200.0070.08320.26
5.5.190.0030.08020.29
5.5.180.0030.08320.13
5.5.160.0100.04320.26
5.5.150.0100.07020.01
5.5.140.0070.05720.23
5.5.130.0130.06720.16
5.5.120.0130.07320.16
5.5.110.0030.08320.23
5.5.100.0070.06320.09
5.5.90.0070.05020.09
5.5.80.0030.08319.96
5.5.70.0070.06720.14
5.5.60.0100.07020.07
5.5.50.0070.07720.02
5.5.40.0100.06320.03
5.5.30.0100.07020.07
5.5.20.0100.07720.11
5.5.10.0130.03320.14
5.5.00.0000.08320.04
5.4.450.0070.08319.31
5.4.440.0030.08719.29
5.4.430.0100.07319.41
5.4.420.0100.07319.36
5.4.410.0230.06319.43
5.4.400.0130.03319.12
5.4.390.0000.08018.98
5.4.380.0000.07318.93
5.4.370.0100.03318.90
5.4.360.0100.07318.94
5.4.350.0070.07718.79
5.4.340.0000.08318.96
5.4.320.0070.07318.96
5.4.310.0070.04318.98
5.4.300.0030.07019.05
5.4.290.0130.04719.04
5.4.280.0130.04719.03
5.4.270.0000.05019.02
5.4.260.0100.04719.02
5.4.250.0070.04019.04
5.4.240.0100.04319.04
5.4.230.0100.07019.11
5.4.220.0070.07319.04
5.4.210.0030.07719.23
5.4.200.0130.06319.09
5.4.190.0070.06019.11
5.4.180.0100.04019.10
5.4.170.0100.07319.02
5.4.160.0130.06718.88
5.4.150.0030.08018.94
5.4.140.0000.08016.03
5.4.130.0000.06316.30
5.4.120.0070.07316.22
5.4.110.0030.04016.41
5.4.100.0100.07716.21
5.4.90.0030.07316.35
5.4.80.0170.06716.41
5.4.70.0070.07716.47
5.4.60.0130.07016.38
5.4.50.0100.07716.41
5.4.40.0000.07016.46
5.4.30.0070.08016.25
5.4.20.0100.06716.32
5.4.10.0100.07016.41
5.4.00.0070.07315.74

preferences:
55.48 ms | 400 KiB | 5 Q