3v4l.org

run code in 300+ PHP versions simultaneously
?> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <form method="post" action="#"> Glasses of Milk: <input type="text" name="milk"/><br /> How many eggs: <input type="text" name="egg"/><br /> Spoons of sugar: <input type="text" name="sugar"/><br /> Cups of flour: <input type="text" name="flour"/><br /> <input type="submit" value="submit" name="sub" /> <br /><br /> </form> <?php function cake($milk, $egg, $sugar, $flour) { echo "In your cake you'll have: \n" . $milk . " glasses of milk, \n" . $egg . " eggs, \n". $sugar . "spoons of sugar\n " . $flour . " cups of" . " flour"; $t = $milk + $egg + $sugar + $flour; echo "\n\nPut 'em all in a bowl, mix it up, put it in the oven for ". $t . " minutes and put the oven o 180 degrees. Then put it in the fridge for ". $t*4 . " minutes. Then eat it!"; } if( isset($_POST['sub'])) { cake($_POST['milk'], $_POST['egg'], $_POST['sugar'], $_POST['flour']); } ?> </body> </html> <?php

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.0120.00316.38
8.3.50.0110.00319.91
8.3.40.0060.01218.80
8.3.30.0070.00719.04
8.3.20.0050.00320.24
8.3.10.0080.00023.66
8.3.00.0060.00319.38
8.2.180.0070.01418.23
8.2.170.0120.00322.96
8.2.160.0060.00920.35
8.2.150.0120.00324.18
8.2.140.0050.00324.66
8.2.130.0110.00426.16
8.2.120.0000.00720.88
8.2.110.0090.00022.25
8.2.100.0090.00317.78
8.2.90.0000.00919.22
8.2.80.0080.00017.97
8.2.70.0000.00817.50
8.2.60.0040.00418.03
8.2.50.0060.00318.07
8.2.40.0040.00419.92
8.2.30.0070.00018.05
8.2.20.0000.00717.75
8.2.10.0050.00218.08
8.2.00.0000.00717.55
8.1.280.0120.00325.92
8.1.270.0030.00623.74
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00323.71
8.1.230.0060.00619.16
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00817.35
8.1.190.0040.00417.23
8.1.180.0080.00018.10
8.1.170.0030.00618.59
8.1.160.0030.00522.08
8.1.150.0090.00018.84
8.1.140.0040.00417.32
8.1.130.0000.00717.84
8.1.120.0030.00317.36
8.1.110.0000.00717.42
8.1.100.0040.00317.37
8.1.90.0000.00717.45
8.1.80.0030.00417.37
8.1.70.0000.00817.24
8.1.60.0040.00817.48
8.1.50.0040.00417.50
8.1.40.0050.00317.35
8.1.30.0080.00017.60
8.1.20.0040.00417.45
8.1.10.0000.00717.54
8.1.00.0050.00217.31
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0030.00318.40
8.0.270.0000.00717.14
8.0.260.0040.00417.11
8.0.250.0000.00716.80
8.0.240.0070.00016.77
8.0.230.0000.00716.88
8.0.220.0030.00516.77
8.0.210.0000.00716.84
8.0.200.0000.00716.77
8.0.190.0030.00616.95
8.0.180.0050.00516.83
8.0.170.0040.00416.89
8.0.160.0000.00816.82
8.0.150.0050.00316.60
8.0.140.0000.00716.79
8.0.130.0000.00513.36
8.0.120.0050.00216.82
8.0.110.0000.00816.67
8.0.100.0040.00416.70
8.0.90.0000.00716.69
8.0.80.0030.01316.85
8.0.70.0040.00416.91
8.0.60.0020.00516.75
8.0.50.0020.00516.83
8.0.30.0130.01017.20
8.0.20.0100.01117.40
8.0.10.0050.00216.84
8.0.00.0110.00616.66
7.4.330.0000.00515.00
7.4.320.0060.00016.42
7.4.300.0000.00616.52
7.4.290.0070.00016.46
7.4.280.0050.00316.46
7.4.270.0040.00316.52
7.4.260.0070.00016.55
7.4.250.0000.00716.40
7.4.240.0030.00516.55
7.4.230.0000.00716.55
7.4.220.0070.01316.41
7.4.210.0070.00716.44
7.4.200.0050.00216.25
7.4.160.0200.01016.33
7.4.150.0070.01017.40
7.4.140.0100.00717.86
7.4.130.0100.00716.51
7.4.120.0070.01216.44
7.4.110.0190.00516.48
7.4.100.0150.00416.41
7.4.90.0140.00816.43
7.4.80.0140.00419.39
7.4.70.0090.00616.54
7.4.60.0090.00916.52
7.4.50.0030.00516.39
7.4.40.0030.01716.38
7.4.30.0040.01316.36
7.3.330.0000.00513.02
7.3.320.0020.00213.01
7.3.310.0030.00316.11
7.3.300.0000.00616.25
7.3.290.0110.00416.30
7.3.280.0070.01016.26
7.3.270.0150.00317.40
7.3.260.0120.00616.48
7.3.250.0100.00616.36
7.3.240.0000.01716.49
7.3.230.0060.01016.39
7.3.210.0060.01216.58
7.3.200.0060.01319.39
7.3.190.0090.01216.41
7.3.180.0030.01216.17
7.3.170.0100.00616.54
7.3.160.0090.00616.58
7.2.330.0070.01116.70
7.2.320.0090.00916.56
7.2.310.0160.00016.46
7.2.300.0080.01016.43
7.2.290.0060.01116.71
5.4.320.3270.04319.19
5.4.310.3770.02718.95
5.4.300.3100.03319.16
5.4.290.3370.03319.05
5.4.280.3130.03318.84
5.4.270.3070.04019.19
5.4.260.3130.03319.19
5.4.250.3200.04318.97
5.4.240.2970.04019.22
5.4.230.3030.04319.07
5.4.220.2970.03718.86
5.4.210.3630.04019.20
5.4.200.2370.03018.95
5.4.190.2970.03319.10
5.4.180.3170.03319.21
5.4.170.3130.02719.13
5.4.160.2630.03719.00
5.4.150.3100.03719.07
5.4.140.3130.03316.52
5.4.130.2900.03316.34
5.4.120.3070.03716.36
5.4.110.2970.03316.36
5.4.100.3030.03716.56
5.4.90.3430.03316.36
5.4.80.3230.04016.33
5.4.70.3270.03316.54
5.4.60.3330.04016.51
5.4.50.3670.03016.22
5.4.40.3170.04016.22
5.4.30.3400.04016.33
5.4.20.3370.03716.22
5.4.10.3370.03316.51
5.4.00.3500.03315.77
5.3.290.3100.03714.57
5.3.280.3300.03314.49
5.3.270.3330.05014.82
5.3.260.3470.03314.62
5.3.250.3770.03314.75
5.3.240.3130.03714.52
5.3.230.3030.03714.82
5.3.220.3670.04014.79
5.3.210.3400.03714.56
5.3.200.3030.03714.54
5.3.190.3500.03714.64
5.3.180.3370.03014.48
5.3.170.3170.04014.64
5.3.160.3330.04714.57
5.3.150.3200.03014.68
5.3.140.3470.04314.54
5.3.130.3300.04314.62
5.3.120.3600.03014.55
5.3.110.3500.04014.62
5.3.100.3300.04014.09
5.3.90.3270.04014.04
5.3.80.3230.03314.17
5.3.70.3230.03714.03
5.3.60.3370.03714.01
5.3.50.3100.03713.97
5.3.40.3230.04014.04
5.3.30.3370.03713.91
5.3.20.3130.04013.72
5.3.10.3300.03013.67
5.3.00.3370.03013.65
5.2.170.2970.03311.30
5.2.160.2570.02711.30
5.2.150.3130.03311.30
5.2.140.3430.03011.30
5.2.130.3870.02311.30
5.2.120.2900.02711.30
5.2.110.2870.02711.30
5.2.100.2700.02711.30
5.2.90.2670.03011.35
5.2.80.2670.03311.30
5.2.70.2870.02311.30
5.2.60.2530.03011.30
5.2.50.2730.03011.30
5.2.40.2070.02711.30
5.2.30.2130.02711.30
5.2.20.2130.03011.30
5.2.10.2370.02711.30
5.2.00.2530.02711.30
5.1.60.2230.02711.30
5.1.50.2030.02311.30
5.1.40.2400.02711.30
5.1.30.2700.03311.30
5.1.20.2600.02711.30
5.1.10.2800.02711.30
5.1.00.2700.02711.30
5.0.50.1400.02011.30
5.0.40.1570.02311.30
5.0.30.1230.03311.30
5.0.20.1600.02311.30
5.0.10.1070.01311.30
5.0.00.1230.03011.30
4.4.90.1370.01711.30
4.4.80.1530.01711.30
4.4.70.1300.01711.30
4.4.60.1600.01311.30
4.4.50.0930.02011.30
4.4.40.1300.02311.30
4.4.30.1500.01711.30
4.4.20.1200.01711.30
4.4.10.1400.01711.30
4.4.00.1230.02311.30
4.3.110.1530.01711.30
4.3.100.1670.01011.30
4.3.90.1430.01711.30
4.3.80.1400.02011.30
4.3.70.1530.01711.30
4.3.60.1270.01311.30
4.3.50.1600.01711.30
4.3.40.1600.02311.30
4.3.30.0600.01711.30
4.3.20.0900.02311.30
4.3.10.0730.01711.30
4.3.00.0870.02311.30

preferences:
61.93 ms | 400 KiB | 5 Q