3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Grade Calculation</title> </head> <body> <form method="post"> <table> <tr> <td>Age:</td> <td><input type="text" name="age" id="age" /></td> </tr> <tr> <td>Resting Heart Rate: </td> <td><input type="text" name="RHR" id="RHR" /></td> </tr> </table> </form> <?php $thr = 0; if (!empty($_POST["age"])){ $age = $_POST["age"]; $rhr = $_POST["rhr"]; $thr = (((220 - $age) - $rhr) * .6) + $rhr; echo "Your training heart rate will be: " + $thr; } ?> </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.70.0120.00318.18
8.3.60.0070.01816.61
8.3.50.0150.00716.58
8.3.40.0070.00718.53
8.3.30.0100.00718.71
8.3.20.0040.00420.38
8.3.10.0000.00823.73
8.3.00.0080.00019.25
8.2.180.0090.01216.50
8.2.170.0070.00722.96
8.2.160.0100.00720.29
8.2.150.0050.00324.18
8.2.140.0070.00024.66
8.2.130.0040.00421.07
8.2.120.0080.00026.35
8.2.110.0070.00420.99
8.2.100.0040.00818.16
8.2.90.0030.00519.35
8.2.80.0030.00518.05
8.2.70.0050.00317.63
8.2.60.0000.00817.93
8.2.50.0090.00018.10
8.2.40.0050.00220.36
8.2.30.0040.00419.34
8.2.20.0030.00518.04
8.2.10.0000.00817.93
8.2.00.0080.00017.86
8.1.280.0070.01125.92
8.1.270.0040.00422.23
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0090.00023.93
8.1.230.0040.00819.00
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0060.00317.35
8.1.190.0040.00417.35
8.1.180.0080.00018.10
8.1.170.0040.00420.35
8.1.160.0040.00419.06
8.1.150.0000.00820.58
8.1.140.0030.00519.57
8.1.130.0000.00718.79
8.1.120.0000.00717.50
8.1.110.0000.00717.44
8.1.100.0040.00417.46
8.1.90.0050.00317.48
8.1.80.0070.00017.46
8.1.70.0030.00317.42
8.1.60.0000.00717.59
8.1.50.0050.00317.40
8.1.40.0000.00817.53
8.1.30.0000.00717.63
8.1.20.0040.00417.65
8.1.10.0050.00217.59
8.1.00.0070.00017.53
8.0.300.0070.00018.77
8.0.290.0000.00816.63
8.0.280.0030.00318.44
8.0.270.0000.00717.24
8.0.260.0030.00316.86
8.0.250.0000.00716.95
8.0.240.0040.00416.93
8.0.230.0060.00316.91
8.0.220.0000.00716.87
8.0.210.0000.00716.95
8.0.200.0030.00316.88
8.0.190.0080.00016.86
8.0.180.0000.00716.80
8.0.170.0030.00516.80
8.0.160.0000.00816.87
8.0.150.0070.00016.81
8.0.140.0030.00316.82
8.0.130.0000.00613.38
8.0.120.0040.00416.89
8.0.110.0040.00416.76
8.0.100.0040.00416.75
8.0.90.0040.00416.84
8.0.80.0090.00616.83
8.0.70.0080.00016.88
8.0.60.0040.00416.95
8.0.50.0000.00716.89
8.0.30.0090.00817.18
8.0.20.0100.00917.40
8.0.10.0030.00316.98
8.0.00.0100.00716.70
7.4.330.0000.00515.55
7.4.320.0030.00316.43
7.4.300.0040.00416.36
7.4.290.0000.00716.59
7.4.280.0030.00616.58
7.4.270.0000.00716.36
7.4.260.0050.00516.55
7.4.250.0000.00816.39
7.4.240.0030.00516.50
7.4.230.0000.00716.67
7.4.220.0070.01116.60
7.4.210.0030.01016.56
7.4.200.0030.00316.48
7.4.160.0160.00316.60
7.4.150.0140.00417.40
7.4.140.0150.00517.86
7.4.130.0090.01616.65
7.4.120.0090.00816.58
7.4.110.0040.01216.54
7.4.100.0120.01216.48
7.4.90.0120.00616.43
7.4.80.0090.01319.39
7.4.70.0120.00416.42
7.4.60.0060.00916.40
7.4.50.0070.00716.38
7.4.40.0100.00716.52
7.4.30.0130.00316.43
7.4.00.0030.01314.92
7.3.330.0050.00013.04
7.3.320.0020.00213.00
7.3.310.0030.00316.30
7.3.300.0000.00616.18
7.3.290.0080.00816.24
7.3.280.0090.00816.23
7.3.270.0030.01417.40
7.3.260.0090.00916.22
7.3.250.0130.00916.26
7.3.240.0070.01216.37
7.3.230.0110.00616.45
7.3.210.0030.01716.20
7.3.200.0100.01016.26
7.3.190.0130.00716.25
7.3.180.0060.01316.52
7.3.170.0030.01216.59
7.3.160.0090.00616.47
7.3.120.0000.01814.73
7.3.110.0070.01014.77
7.3.100.0030.01314.72
7.3.90.0090.00614.59
7.3.80.0060.01214.63
7.3.70.0060.00614.58
7.3.60.0070.00714.84
7.3.50.0100.00614.65
7.3.40.0000.00814.59
7.3.30.0000.01314.48
7.3.20.0120.00016.57
7.3.10.0120.00316.28
7.3.00.0020.01216.58
7.2.330.0000.01716.67
7.2.320.0100.00716.60
7.2.310.0060.01016.58
7.2.300.0100.00616.46
7.2.290.0070.01016.36
7.2.250.0100.01015.08
7.2.240.0030.01414.91
7.2.230.0030.00615.03
7.2.220.0000.01615.08
7.2.210.0120.00914.62
7.2.200.0070.00714.91
7.2.190.0030.01015.19
7.2.180.0060.00614.99
7.2.170.0130.00014.88
7.2.130.0070.00316.95
7.2.120.0090.00616.94
7.2.110.0040.00716.68
7.2.100.0120.00316.86
7.2.90.0000.01316.81
7.2.80.0040.01016.73
7.2.70.0070.00716.83
7.2.60.0120.00216.76
7.2.50.0000.01616.51
7.2.40.0130.00616.40
7.2.30.0100.00716.73
7.2.20.0030.01316.75
7.2.10.0040.01116.65
7.2.00.0030.01318.07
7.1.330.0030.01015.66
7.1.320.0040.00915.65
7.1.310.0130.00715.73
7.1.300.0060.00615.54
7.1.290.0000.01215.70
7.1.280.0080.00415.81
7.1.270.0040.01115.64
7.1.260.0030.00915.68
7.1.250.0060.00915.68
7.1.240.0030.00715.63
7.1.230.0030.01215.73
7.1.220.0040.00415.49
7.1.210.0100.00715.53
7.1.200.0050.00615.64
7.1.190.0070.00315.56
7.1.180.0100.00615.18
7.1.170.0100.00315.46
7.1.160.0000.00915.48
7.1.150.0060.00815.45
7.1.140.0030.01015.69
7.1.130.0040.00915.69
7.1.120.0000.01315.67
7.1.110.0000.01015.34
7.1.100.0090.00716.79
7.1.90.0080.00815.52
7.1.80.0080.00615.58
7.1.70.0020.01416.46
7.1.60.0140.01325.30
7.1.50.0160.01024.99
7.1.40.0080.01224.96
7.1.30.0100.01624.72
7.1.20.0140.01325.15
7.1.10.0060.00815.92
7.1.00.0050.01115.94
7.0.330.0060.00915.26
7.0.320.0040.01115.20
7.0.310.0060.00615.41
7.0.300.0090.00015.19
7.0.290.0070.00315.18
7.0.280.0040.00815.03
7.0.270.0000.01015.25
7.0.260.0000.00915.36
7.0.250.0040.01215.01
7.0.240.0070.00315.45
7.0.230.0090.00615.36
7.0.220.0060.00615.47
7.0.210.0030.01015.04
7.0.200.0040.01115.88
7.0.190.0050.01015.93
7.0.180.0100.00615.79
7.0.170.0070.01015.71
7.0.160.0070.01015.65
7.0.150.0060.00815.61
7.0.140.0070.01115.63
7.0.130.0100.00615.74
7.0.120.0030.01216.02
7.0.110.0090.00515.74
7.0.100.0080.00915.67
7.0.90.0070.00715.77
7.0.80.0030.01215.75
7.0.70.0060.00915.72
7.0.60.0060.00815.62
7.0.50.0090.00915.86
7.0.40.0100.01014.96
7.0.30.0060.01114.81
7.0.20.0070.01014.73
7.0.10.0080.00914.88
7.0.00.0080.00714.83
5.6.380.0070.00714.37

preferences:
46.1 ms | 401 KiB | 5 Q