3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html>  <html>  <head>     <title></title>     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">     </head>     <body>     <form method='POST'>     <h2>Please input your name:</h2>   <input type="text" name="name">   <input type="submit" value="Submit Name">   </form>  <?php  //Retrieve name from query string and store to a local variable  $name = $_POST['name'];  echo "<h3> Hello $name </h3>";  ?>  </body>  </html>- See more at: http://www.w3resource.com/php-exercises/php-basic-exercises.php#EDITOR

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.0040.01118.31
8.3.50.0140.00719.68
8.3.40.0030.01018.67
8.3.30.0090.00619.00
8.3.20.0080.00020.35
8.3.10.0080.00021.88
8.3.00.0090.00017.80
8.2.180.0120.00916.38
8.2.170.0100.00722.96
8.2.160.0060.00620.34
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0030.01426.16
8.2.120.0080.00021.10
8.2.110.0090.00020.30
8.2.100.0070.00417.53
8.2.90.0030.00519.25
8.2.80.0030.00517.97
8.2.70.0030.00517.38
8.2.60.0080.00017.91
8.2.50.0000.00818.07
8.2.40.0040.00418.22
8.2.30.0030.00517.97
8.2.20.0070.00017.43
8.2.10.0040.00417.95
8.2.00.0020.00517.55
8.1.270.0050.00223.84
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0070.00323.91
8.1.230.0050.00520.95
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.22
8.1.190.0040.00416.97
8.1.180.0060.00318.10
8.1.170.0000.00818.32
8.1.160.0040.00421.93
8.1.150.0070.00018.74
8.1.140.0040.00417.23
8.1.130.0040.00417.63
8.1.120.0030.00317.38
8.1.110.0040.00417.35
8.1.100.0000.00717.16
8.1.90.0000.00717.23
8.1.80.0020.00517.28
8.1.70.0030.00317.29
8.1.60.0030.00617.36
8.1.50.0040.00417.27
8.1.40.0040.00417.36
8.1.30.0000.00817.57
8.1.20.0070.00317.38
8.1.10.0070.00017.42
8.1.00.0090.00017.41
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0070.00018.38
8.0.270.0030.00317.10
8.0.260.0000.00717.12
8.0.250.0000.00616.83
8.0.240.0040.00416.89
8.0.230.0000.00616.79
8.0.220.0030.00316.79
8.0.210.0030.00316.74
8.0.200.0040.00416.86
8.0.190.0040.00416.68
8.0.180.0080.00016.71
8.0.170.0040.00416.68
8.0.160.0060.00616.76
8.0.150.0030.00416.59
8.0.140.0000.00816.73
8.0.130.0000.00513.41
8.0.120.0000.00816.75
8.0.110.0040.00316.76
8.0.100.0000.00716.71
8.0.90.0030.00316.83
8.0.80.0000.01516.73
8.0.70.0000.00816.63
8.0.60.0000.00716.68
8.0.50.0070.00016.64
8.0.30.0110.01016.79
8.0.20.0140.00617.40
8.0.10.0000.00716.67
8.0.00.0060.01216.82
7.4.330.0000.00515.06
7.4.320.0000.00616.45
7.4.300.0060.00016.51
7.4.290.0040.00416.48
7.4.280.0000.00916.38
7.4.270.0040.00416.38
7.4.260.0050.00516.50
7.4.250.0000.00716.35
7.4.240.0050.00216.42
7.4.230.0000.00716.50
7.4.220.0090.00916.54
7.4.210.0130.00016.36
7.4.200.0030.00516.30
7.4.160.0090.00616.47
7.4.150.0120.00917.40
7.4.140.0120.00917.86
7.4.130.0080.01116.30
7.4.120.0080.00816.35
7.4.110.0100.00716.38
7.4.100.0070.01016.34
7.4.90.0090.00916.53
7.4.80.0090.00919.39
7.4.70.0090.00616.25
7.4.60.0060.00916.39
7.4.50.0040.00416.45
7.4.40.0170.00016.39
7.4.30.0130.00316.30
7.4.00.0050.01014.84
7.3.330.0050.00013.18
7.3.320.0000.00513.10
7.3.310.0030.00316.15
7.3.300.0040.00416.14
7.3.290.0030.01016.16
7.3.280.0090.00816.11
7.3.270.0090.01217.40
7.3.260.0150.00716.14
7.3.250.0110.00916.35
7.3.240.0100.01416.27
7.3.230.0000.01516.46
7.3.210.0100.00716.48
7.3.200.0120.01319.39
7.3.190.0120.00616.16
7.3.180.0040.01216.04
7.3.170.0140.00416.27
7.3.160.0110.00716.54
7.3.120.0030.01314.83
7.3.110.0040.01514.70
7.3.100.0120.00314.72
7.3.90.0000.00914.32
7.3.80.0030.01014.43
7.3.70.0030.01014.52
7.3.60.0100.00314.70
7.3.50.0060.00614.81
7.3.40.0000.01114.48
7.3.30.0030.00914.49
7.3.20.0040.00716.59
7.3.10.0070.00416.41
7.3.00.0070.00716.52
7.2.330.0070.01016.59
7.2.320.0170.00316.30
7.2.310.0160.00016.43
7.2.300.0070.01716.50
7.2.290.0060.00916.59
7.2.250.0060.01315.06
7.2.240.0100.01014.68
7.2.230.0000.00914.78
7.2.220.0130.00014.54
7.2.210.0070.01014.90
7.2.200.0060.01214.80
7.2.190.0000.00914.99
7.2.180.0070.00715.06
7.2.170.0100.00614.70
7.2.60.0040.00816.76
7.2.00.0120.01219.25
7.1.330.0030.01015.63
7.1.320.0070.00715.60
7.1.310.0030.00915.63
7.1.300.0070.00715.48
7.1.290.0040.00415.60
7.1.280.0150.00015.66
7.1.270.0000.01115.27
7.1.260.0070.00415.52
7.1.200.0100.00315.72
7.1.100.0140.00617.93
7.1.70.0070.01016.64
7.1.60.0000.02519.40
7.1.50.0110.01116.69
7.1.00.0000.08022.54
7.0.200.0000.00716.41
7.0.140.0030.07322.07
7.0.60.0030.08319.96
7.0.50.0070.08017.89
7.0.40.0000.04720.41
7.0.30.0370.05720.21
7.0.20.0270.07720.19
7.0.10.0070.09020.33
7.0.00.0070.05320.16
5.6.280.0000.07721.11
5.6.210.0100.03320.62
5.6.200.0070.03718.14
5.6.190.0000.07720.45
5.6.180.0330.07320.65
5.6.170.0300.07020.71
5.6.160.0170.06320.54
5.6.150.0030.03718.22
5.6.140.0070.05318.15
5.6.130.0130.07718.12
5.6.120.0100.07721.09
5.6.110.0130.08320.97
5.6.100.0070.06321.07
5.6.90.0030.06321.09
5.6.80.0070.05720.27
5.5.350.0030.08020.41
5.5.340.0230.06318.02
5.5.330.0030.04320.36
5.5.320.0370.05020.31
5.5.310.0400.07020.29
5.5.300.0030.04317.88
5.5.290.0030.04318.01
5.5.280.0030.04020.64
5.5.270.0100.08720.78
5.5.260.0100.08020.64
5.5.250.0000.07320.54
5.5.240.0370.06720.11
5.4.450.0270.07319.43
5.4.440.0170.04319.22
5.4.430.0230.05019.41
5.4.420.0330.04019.48
5.4.410.0330.04318.98
5.4.400.0330.04319.23
5.4.390.0200.06719.25
5.4.380.0230.04018.90
5.4.370.0370.06719.13
5.4.360.0300.07318.80
5.4.350.0270.05019.05
5.4.340.0330.05018.80
5.4.320.0400.06019.13
5.4.310.0270.07319.13
5.4.300.0330.07319.07
5.4.290.0300.08019.08
5.4.280.0300.05719.10
5.4.270.0330.03318.91
5.4.260.0370.06319.25
5.4.250.0330.06019.21
5.4.240.0300.04719.21
5.4.230.0300.07319.09
5.4.220.0430.06019.22
5.4.210.0370.05019.08
5.4.200.0300.04319.14
5.4.190.0400.04019.24
5.4.180.0300.06718.80
5.4.170.0300.04719.11
5.4.160.0300.06718.91
5.4.150.0270.06019.06
5.4.140.0230.08016.31
5.4.130.0300.04316.45
5.4.120.0270.04716.32
5.4.110.0200.04016.39
5.4.100.0300.05016.21
5.4.90.0300.06316.21
5.4.80.0270.03316.25
5.4.70.0330.03016.20
5.4.60.0270.06316.04
5.4.50.0300.07016.37
5.4.40.0230.04016.43
5.4.30.0400.06016.38
5.4.20.0330.04716.41
5.4.10.0270.07316.20
5.4.00.0270.05715.99
5.3.290.0400.06314.75
5.3.280.0300.03314.54
5.3.270.0270.05314.46
5.3.260.0330.06014.64
5.3.250.0300.05314.48
5.3.240.0370.07014.44
5.3.230.0200.06014.57
5.3.220.0270.04714.62
5.3.210.0200.06714.50
5.3.200.0330.05314.40
5.3.190.0230.07314.39
5.3.180.0300.05314.41
5.3.170.0300.06014.59
5.3.160.0300.04314.40
5.3.150.0330.06014.40
5.3.140.0230.04014.50
5.3.130.0230.06714.39
5.3.120.0270.05314.48
5.3.110.0300.03314.57
5.3.100.0270.07014.08
5.3.90.0270.05313.95
5.3.80.0370.04713.86
5.3.70.0270.07013.90
5.3.60.0270.06013.79
5.3.50.0330.04013.89
5.3.40.0230.05014.03
5.3.30.0330.03713.99
5.3.20.0270.04013.64
5.3.10.0400.04013.59
5.3.00.0300.04013.72
5.2.170.0300.05011.08
5.2.160.0270.03311.00
5.2.150.0200.03710.98
5.2.140.0270.05711.29
5.2.130.0230.03310.95
5.2.120.0200.06011.16
5.2.110.0230.04010.98
5.2.100.0200.03710.95
5.2.90.0230.04710.96
5.2.80.0300.04310.94
5.2.70.0300.05011.11
5.2.60.0230.03711.15
5.2.50.0270.03310.85
5.2.40.0200.05710.84
5.2.30.0200.03310.80
5.2.20.0270.05310.96
5.2.10.0200.05710.77
5.2.00.0270.05710.63
5.1.60.0230.05010.48
5.1.50.0200.05010.48
5.1.40.0200.05310.48
5.1.30.0270.04710.48
5.1.20.0270.03710.48
5.1.10.0200.04010.48
5.1.00.0230.03710.48
5.0.50.0070.05310.48
5.0.40.0130.04010.48
5.0.30.0130.05710.48
5.0.20.0100.04710.48
5.0.10.0100.03710.48
5.0.00.0130.05310.48
4.4.90.0170.01310.48
4.4.80.0170.01010.48
4.4.70.0070.03710.48
4.4.60.0130.03010.48
4.4.50.0070.02310.48
4.4.40.0070.03710.48
4.4.30.0100.03010.48
4.4.20.0100.02010.48
4.4.10.0170.02710.48
4.4.00.0130.04010.48
4.3.110.0100.03010.48
4.3.100.0130.02710.48
4.3.90.0130.02710.48
4.3.80.0130.02710.48
4.3.70.0100.01310.48
4.3.60.0070.01710.48
4.3.50.0130.03310.48
4.3.40.0100.02310.48
4.3.30.0030.02310.48
4.3.20.0030.02010.48
4.3.10.0070.02010.48
4.3.00.0100.03010.48

preferences:
45.77 ms | 400 KiB | 5 Q