3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (isset($_GET['item'])) { $cart_item = $_GET['item']; } ?> <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> </head> <body> <form method="post" action=""/> <input type="hidden" name="item"> <input type="submit" value="Yes, Add to Cart"> </form> <?php echo $item; ?> </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.0070.01016.75
8.3.50.0120.00522.04
8.3.40.0040.01118.96
8.3.30.0140.00019.01
8.3.20.0030.00520.38
8.3.10.0040.00423.58
8.3.00.0080.00019.26
8.2.180.0110.00718.41
8.2.170.0110.00422.96
8.2.160.0100.00320.35
8.2.150.0040.00424.18
8.2.140.0120.00324.66
8.2.130.0100.00326.16
8.2.120.0040.00422.14
8.2.110.0060.00322.08
8.2.100.0060.00617.91
8.2.90.0060.00319.17
8.2.80.0040.00817.97
8.2.70.0080.00017.62
8.2.60.0100.00317.79
8.2.50.0040.00418.07
8.2.40.0000.00819.82
8.2.30.0030.00519.89
8.2.20.0000.00817.61
8.2.10.0050.00218.07
8.2.00.0030.00717.74
8.1.280.0170.00325.92
8.1.270.0000.00823.91
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00624.02
8.1.230.0040.00719.23
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0040.00417.50
8.1.180.0060.00318.10
8.1.170.0040.00418.59
8.1.160.0040.00421.97
8.1.150.0070.00718.48
8.1.140.0040.00417.30
8.1.130.0030.00317.68
8.1.120.0050.00217.41
8.1.110.0050.00217.35
8.1.100.0050.00317.29
8.1.90.0030.00317.31
8.1.80.0050.00317.39
8.1.70.0070.00017.36
8.1.60.0000.00917.56
8.1.50.0030.00617.46
8.1.40.0040.00417.36
8.1.30.0000.00817.53
8.1.20.0000.00717.53
8.1.10.0040.00417.53
8.1.00.0030.00617.34
8.0.300.0070.00019.15
8.0.290.0000.00716.90
8.0.280.0000.00718.34
8.0.270.0030.00317.23
8.0.260.0000.00617.14
8.0.250.0000.00716.95
8.0.240.0040.00416.87
8.0.230.0070.00016.85
8.0.220.0030.00316.79
8.0.210.0060.00316.88
8.0.200.0060.00016.89
8.0.190.0050.00316.93
8.0.180.0070.00016.81
8.0.170.0090.00016.98
8.0.160.0030.00316.95
8.0.150.0000.00716.91
8.0.140.0070.00016.85
8.0.130.0000.00613.26
8.0.120.0080.00016.92
8.0.110.0040.00416.96
8.0.100.0040.00416.80
8.0.90.0040.00416.69
8.0.80.0030.01216.89
8.0.70.0040.00416.94
8.0.60.0040.00416.77
8.0.50.0050.00216.89
8.0.30.0100.01017.17
8.0.20.0110.00817.40
8.0.10.0030.00517.03
8.0.00.0060.01116.63
7.4.330.0000.00615.07
7.4.320.0000.00616.53
7.4.300.0030.00316.52
7.4.290.0050.00316.47
7.4.280.0040.00416.49
7.4.270.0040.00416.53
7.4.260.0000.00616.36
7.4.250.0040.00416.50
7.4.240.0020.00516.42
7.4.230.0050.00216.24
7.4.220.0120.01216.59
7.4.210.0060.01116.52
7.4.200.0070.00016.34
7.4.190.0030.00316.39
7.4.160.0090.01516.43
7.4.150.0080.00817.40
7.4.140.0120.00517.86
7.4.130.0110.01016.46
7.4.120.0110.00616.56
7.4.110.0080.00816.45
7.4.100.0190.00416.51
7.4.90.0090.01016.63
7.4.80.0140.00319.39
7.4.70.0090.00916.43
7.4.60.0030.01216.62
7.4.50.0030.00316.56
7.4.40.0000.01822.77
7.4.30.0090.00616.51
7.4.00.0060.00914.60
7.3.330.0000.00513.10
7.3.320.0030.00313.10
7.3.310.0040.00416.19
7.3.300.0030.00316.17
7.3.290.0080.00516.30
7.3.280.0080.00816.26
7.3.270.0100.00717.40
7.3.260.0100.01016.30
7.3.250.0100.00916.48
7.3.240.0110.00616.32
7.3.230.0030.01316.39
7.3.210.0070.01116.43
7.3.200.0170.00619.39
7.3.190.0090.01516.39
7.3.180.0070.01016.39
7.3.170.0090.00616.31
7.3.160.0060.01616.47
7.3.120.0000.01814.83
7.2.330.0060.01116.50
7.2.320.0080.00916.66
7.2.310.0070.01416.52
7.2.300.0090.01316.63
7.2.290.0120.00616.60
7.2.00.0030.01318.95
7.1.100.0030.01218.06
7.1.70.0040.00417.16
7.1.60.0070.01719.46
7.1.50.0230.01034.45
7.1.00.0000.08022.54
7.0.200.0030.00716.41
7.0.140.0070.06721.99
7.0.60.0100.07019.97
7.0.50.0070.04717.75
7.0.40.0070.04720.04
7.0.30.0300.06020.00
7.0.20.0300.08320.30
7.0.10.0270.04320.21
7.0.00.0170.06320.12
5.6.280.0000.08021.09
5.6.210.0070.08020.62
5.6.200.0170.07718.08
5.6.190.0070.05020.32
5.6.180.0230.04020.61
5.6.170.0370.06320.51
5.6.160.0130.03720.48
5.6.150.0230.04718.15
5.6.140.0070.04718.12
5.6.130.0030.04718.20
5.6.120.0200.04021.01
5.6.110.0030.08021.04
5.6.100.0030.04720.97
5.6.90.0030.07720.96
5.6.80.0030.08320.39
5.5.350.0100.07720.29
5.5.340.0030.05318.02
5.5.330.0030.08320.56
5.5.320.0230.04020.30
5.5.310.0230.08320.29
5.5.300.0070.05717.98
5.5.290.0070.05317.97
5.5.280.0070.05020.78
5.5.270.0070.08020.89
5.5.260.0070.07320.96
5.5.250.0070.06720.54
5.5.240.0070.04320.15
5.4.450.0300.06719.41
5.4.440.0300.06319.57
5.4.430.0400.05019.57
5.4.420.0300.03319.40
5.4.410.0270.03719.26
5.4.400.0300.04319.25
5.4.390.0300.07318.79
5.4.380.0370.06719.13
5.4.370.0270.04319.09
5.4.360.0370.06719.09
5.4.350.0300.04318.81
5.4.340.0270.04718.92
5.4.320.0300.06718.88
5.4.310.0300.07018.79
5.4.300.0300.04719.05
5.4.290.0230.05319.08
5.4.280.0230.06019.09
5.4.270.0230.03718.88
5.4.260.0370.06318.79
5.4.250.0470.05319.12
5.4.240.0300.04319.25
5.4.230.0300.07019.21
5.4.220.0300.07319.23
5.4.210.0270.07319.11
5.4.200.0370.05719.15
5.4.190.0300.07719.06
5.4.180.0270.03719.21
5.4.170.0300.06719.07
5.4.160.0230.04319.04
5.4.150.0300.04018.89
5.4.140.0270.03316.26
5.4.130.0230.03716.54
5.4.120.0370.06316.26
5.4.110.0300.07316.21
5.4.100.0430.05316.30
5.4.90.0270.06316.20
5.4.80.0400.04716.42
5.4.70.0270.03016.46
5.4.60.0270.04316.37
5.4.50.0230.07016.41
5.4.40.0230.05016.31
5.4.30.0330.06316.43
5.4.20.0300.05716.20
5.4.10.0270.05716.43
5.4.00.0300.03015.63
5.3.290.0300.05314.60
5.3.280.0330.06714.45
5.3.270.0370.06314.46
5.3.260.0370.06014.65
5.3.250.0230.03714.45
5.3.240.0230.04314.46
5.3.230.0270.07014.45
5.3.220.0300.07314.39
5.3.210.0330.06714.61
5.3.200.0300.07014.59
5.3.190.0230.04714.47
5.3.180.0300.05714.61
5.3.170.0300.03314.60
5.3.160.0300.03014.58
5.3.150.0300.06714.43
5.3.140.0330.06714.39
5.3.130.0400.05714.40
5.3.120.0300.07314.57
5.3.110.0270.07314.42
5.3.100.0270.03313.94
5.3.90.0300.03014.06
5.3.80.0230.03713.86
5.3.70.0230.03314.11
5.3.60.0270.04313.85
5.3.50.0230.07714.04
5.3.40.0370.05313.82
5.3.30.0270.07313.73
5.3.20.0270.06013.64
5.3.10.0430.02713.61
5.3.00.0330.06313.43
5.2.170.0130.06311.75
5.2.160.0200.06011.75
5.2.150.0200.05011.75
5.2.140.0230.06011.75
5.2.130.0300.04711.75
5.2.120.0200.03711.75
5.2.110.0330.05711.75
5.2.100.0300.05011.75
5.2.90.0200.06011.75
5.2.80.0230.03711.75
5.2.70.0230.06011.75
5.2.60.0230.06311.75
5.2.50.0230.04711.75
5.2.40.0200.06011.75
5.2.30.0270.03711.75
5.2.20.0200.04011.75
5.2.10.0230.05311.75
5.2.00.0130.03311.75
5.1.60.0170.02311.75
5.1.50.0200.03011.75
5.1.40.0300.02011.75
5.1.30.0230.03711.75
5.1.20.0200.05711.75
5.1.10.0200.05311.75
5.1.00.0230.04711.75
5.0.50.0200.03711.75
5.0.40.0070.03711.75
5.0.30.0200.05711.75
5.0.20.0100.04011.75
5.0.10.0130.02311.75
5.0.00.0130.06311.75
4.4.90.0170.02311.75
4.4.80.0130.03711.75
4.4.70.0100.02311.75
4.4.60.0070.03311.75
4.4.50.0130.03311.75
4.4.40.0130.04311.75
4.4.30.0070.04011.75
4.4.20.0070.03711.75
4.4.10.0070.02311.75
4.4.00.0100.04311.75
4.3.110.0130.01311.75
4.3.100.0170.03011.75
4.3.90.0170.02711.75
4.3.80.0100.03011.75
4.3.70.0130.01711.75
4.3.60.0070.04011.75
4.3.50.0100.02011.75
4.3.40.0070.03011.75
4.3.30.0070.03011.75
4.3.20.0030.04011.75
4.3.10.0070.03311.75
4.3.00.0070.03711.75

preferences:
38.1 ms | 401 KiB | 5 Q