3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 1000; while ($i--) { $foo = @$_GET['foo']['bar']; }

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.0.0rc20.0110.00716.73
8.0.0rc10.0060.01316.82
8.0.0beta30.0090.01216.88
8.0.0beta10.0040.01316.72
8.0.0alpha30.0130.00616.77
8.0.0alpha20.0090.01416.58
8.0.0alpha10.0000.02016.64
7.4.110.0130.00916.68
7.4.100.0140.00616.60
7.4.90.0070.01116.52
7.4.80.0030.01419.39
7.4.70.0090.00916.66
7.4.60.0100.00616.43
7.4.50.0030.00616.60
7.4.40.0060.00916.38
7.4.30.0160.00616.49
7.4.10.0130.00615.18
7.4.00.0080.00814.89
7.3.230.0100.00616.40
7.3.210.0080.00816.38
7.3.200.0200.00416.34
7.3.190.0110.01116.43
7.3.180.0110.00416.40
7.3.170.0100.01016.34
7.3.160.0030.01316.48
7.3.130.0070.01014.66
7.3.120.0090.00814.98
7.3.110.0120.00914.84
7.3.100.0000.01714.89
7.3.90.0090.00614.91
7.3.80.0070.01014.55
7.3.70.0050.00814.91
7.3.60.0070.01014.65
7.3.50.0060.01014.79
7.3.40.0030.01214.54
7.3.30.0060.00914.81
7.3.20.0100.00016.75
7.3.10.0070.00316.52
7.3.00.0080.00816.62
7.2.330.0090.00916.23
7.2.320.0040.01316.70
7.2.310.0100.00716.60
7.2.300.0130.00316.50
7.2.290.0100.00716.40
7.2.260.0090.00614.97
7.2.250.0090.00914.66
7.2.240.0000.01414.94
7.2.230.0060.01315.19
7.2.220.0000.01815.27
7.2.210.0100.00415.04
7.2.200.0040.00814.92
7.2.190.0100.00315.27
7.2.180.0060.01315.08
7.2.170.0040.00815.13
7.2.160.0150.00014.73
7.2.150.0000.01216.98
7.2.140.0100.00617.04
7.2.130.0070.00716.85
7.2.120.0030.00917.04
7.2.110.0060.00316.80
7.2.100.0060.00916.71
7.2.90.0030.00716.63
7.2.80.0060.00916.91
7.2.70.0040.01416.99
7.2.60.0070.00516.70
7.2.50.0100.00317.16
7.2.40.0030.00916.85
7.2.30.0070.00316.82
7.2.20.0130.00317.14
7.2.10.0030.01017.13
7.2.00.0090.00518.33
7.1.330.0040.00815.79
7.1.320.0030.01415.87
7.1.310.0030.01315.76
7.1.300.0060.00615.98
7.1.290.0070.01115.67
7.1.280.0090.00615.73
7.1.270.0090.00015.59
7.1.260.0030.00715.77
7.1.250.0060.01015.88
7.1.240.0000.01015.71
7.1.230.0030.01016.00
7.1.220.0030.01415.83
7.1.210.0040.01115.78
7.1.200.0140.00715.92
7.1.190.0030.00715.87
7.1.180.0000.01315.90
7.1.170.0040.01115.66
7.1.160.0030.01215.88
7.1.150.0070.00416.04
7.1.140.0050.00515.91
7.1.130.0000.01415.91
7.1.120.0060.00615.95
7.1.110.0040.01115.96
7.1.100.0060.00617.17
7.1.90.0130.00315.99
7.1.80.0000.01215.74
7.1.70.0030.00617.31
7.1.60.0040.00917.37
7.1.50.0070.00317.24
7.1.40.0040.00917.22
7.1.30.0100.00517.19
7.1.20.0050.01017.15
7.1.10.0040.00717.34
7.1.00.0050.00617.17
7.0.330.0000.01115.51
7.0.320.0030.01415.18
7.0.310.0040.01115.36
7.0.300.0040.01115.50
7.0.290.0070.00715.40
7.0.280.0030.01415.41
7.0.270.0070.00715.45
7.0.260.0060.00915.38
7.0.250.0000.01215.41
7.0.240.0000.00915.33
7.0.230.0030.01015.39
7.0.220.0070.00415.48
7.0.210.0000.01615.45
7.0.200.0020.00717.08
7.0.190.0080.00517.14
7.0.180.0030.00717.03
7.0.170.0050.00517.05
7.0.160.0030.00517.08
7.0.150.0040.00517.06
7.0.140.0030.00817.03
7.0.130.0040.00616.97
7.0.120.0010.00817.13
7.0.110.0030.00816.91
7.0.100.0080.00217.05
7.0.90.0020.01216.97
7.0.80.0000.01017.05
7.0.70.0050.00617.15
7.0.60.0050.00717.01
7.0.50.0060.00617.05
7.0.40.0070.00516.02
7.0.30.0070.00516.10
7.0.20.0050.00616.13
7.0.10.0010.00816.18
7.0.00.0030.00916.13
5.6.400.0040.01214.34
5.6.390.0030.00914.32
5.6.380.0070.01014.49
5.6.370.0040.01114.29
5.6.360.0040.00814.02
5.6.350.0030.00714.31
5.6.340.0000.01314.17
5.6.330.0070.00714.10
5.6.320.0090.00614.36
5.6.310.0110.00414.44
5.6.300.0070.02617.54
5.6.290.0050.02817.50
5.6.280.0060.02317.79
5.6.270.0030.02517.56
5.6.260.0020.03317.68
5.6.250.0090.02617.50
5.6.240.0070.02417.68
5.6.230.0050.02517.66
5.6.220.0050.02517.46
5.6.210.0080.02217.74
5.6.200.0080.02317.52
5.6.190.0060.02617.49
5.6.180.0080.02917.57
5.6.170.0030.02617.53
5.6.160.0110.01917.70
5.6.150.0040.02517.49
5.6.140.0100.01917.67
5.6.130.0020.02717.54
5.6.120.0040.02417.58
5.6.110.0030.02517.73
5.6.100.0050.03217.66
5.6.90.0100.02217.53
5.6.80.0050.02617.12
5.6.70.0140.02717.33
5.6.60.0030.02717.27
5.6.50.0050.02317.30
5.6.40.0060.01917.17
5.6.30.0040.02617.25
5.6.20.0050.02517.13
5.6.10.0110.02817.19
5.6.00.0050.03117.28
5.5.380.0070.04518.73
5.5.370.0070.03918.73
5.5.360.0030.04618.73
5.5.350.0040.04218.73
5.5.340.0030.04018.73
5.5.330.0070.04318.73
5.5.320.0070.04918.73
5.5.310.0030.04218.73
5.5.300.0000.04718.73
5.5.290.0000.04318.73
5.5.280.0070.03818.73
5.5.270.0100.05818.73
5.5.260.0030.05118.73
5.5.250.0030.04518.73
5.5.240.0000.04618.73
5.5.230.0030.04318.73
5.5.220.0030.03818.73
5.5.210.0070.03518.73
5.5.200.0000.03918.73
5.5.190.0130.05318.73
5.5.180.0030.04018.73
5.5.160.0070.05418.73
5.5.150.0000.04318.73
5.5.140.0030.03718.73
5.5.130.0030.06718.73
5.5.120.0100.03418.73
5.5.110.0030.03818.73
5.5.100.0000.04418.73
5.5.90.0000.04118.73
5.5.80.0040.03518.73
5.5.70.0100.04218.73
5.5.60.0030.04118.73
5.5.50.0000.04118.73
5.5.40.0030.07618.73
5.5.30.0030.03718.73
5.5.20.0030.03818.73
5.5.10.0000.04218.73
5.5.00.0070.03718.73
5.4.450.0090.03819.18
5.4.440.0070.04619.30
5.4.430.0030.04619.29
5.4.420.0070.06319.41
5.4.410.0030.04219.26
5.4.400.0030.04119.11
5.4.390.0070.03919.06
5.4.380.0070.03619.06
5.4.370.0070.07519.11
5.4.360.0000.04318.98
5.4.350.0130.03919.04
5.4.340.0030.04119.06
5.4.320.0030.07219.06
5.4.310.0130.03719.11
5.4.300.0030.07719.06
5.4.290.0060.03619.07
5.4.280.0000.04519.04
5.4.270.0000.04218.88
5.4.260.0030.04118.96
5.4.250.0030.04218.96
5.4.240.0130.03119.15
5.4.230.0000.04018.96
5.4.220.0030.04419.13
5.4.210.0060.04818.90
5.4.200.0070.05818.87
5.4.190.0000.04019.05
5.4.180.0000.05219.04
5.4.170.0100.05518.82
5.4.160.0060.06518.88
5.4.150.0070.03618.96
5.4.140.0070.03618.73
5.4.130.0030.03618.73
5.4.120.0000.04018.73
5.4.110.0000.06418.73
5.4.100.0100.02918.73
5.4.90.0000.04018.73
5.4.80.0000.04018.73
5.4.70.0000.03718.73
5.4.60.0070.03318.73
5.4.50.0070.04318.73
5.4.40.0000.03818.73
5.4.30.0000.04618.73
5.4.20.0030.03618.73
5.4.10.0030.04218.73
5.4.00.0060.02918.73
5.3.290.0030.04418.73
5.3.280.0030.08318.73
5.3.270.0030.08118.73
5.3.260.0030.04418.73
5.3.250.0030.04018.73
5.3.240.0000.04018.73
5.3.230.0030.04118.73
5.3.220.0030.03818.73
5.3.210.0000.05118.73
5.3.200.0030.03618.73
5.3.190.0000.04318.73
5.3.180.0030.03818.73
5.3.170.0070.03618.73
5.3.160.0060.03218.73
5.3.150.0130.02818.73
5.3.140.0000.04118.73
5.3.130.0000.04318.73
5.3.120.0230.04518.73
5.3.110.0060.04518.73
5.3.100.0030.06018.73
5.3.90.0030.05618.73
5.3.80.0030.03918.73
5.3.70.0030.03818.73
5.3.60.0000.06418.73
5.3.50.0000.03718.73
5.3.40.0030.06418.73
5.3.30.0070.03418.73
5.3.20.0000.03818.73
5.3.10.0000.04718.73
5.3.00.0000.04418.73
5.2.170.0000.04718.73
5.2.160.0000.03718.73
5.2.150.0030.03218.73
5.2.140.0030.02918.73
5.2.130.0030.04718.73
5.2.120.0030.05418.73
5.2.110.0030.05118.73
5.2.100.0000.03718.73
5.2.90.0030.03418.73
5.2.80.0000.03118.73
5.2.70.0000.03318.73
5.2.60.0030.03618.73
5.2.50.0030.06418.73
5.2.40.0000.04118.73
5.2.30.0060.02818.73
5.2.20.0070.02618.73
5.2.10.0030.02918.73
5.2.00.0030.03118.73
5.1.60.0030.03818.73
5.1.50.0090.03118.73
5.1.40.0030.02718.73
5.1.30.0000.03018.73
5.1.20.0030.02618.73
5.1.10.0030.02418.73
5.1.00.0000.02918.73
5.0.50.0060.01818.73
5.0.40.0000.02218.73
5.0.30.0030.03718.73
5.0.20.0000.02318.73
5.0.10.0000.02218.73
5.0.00.0000.06318.73
4.4.90.0030.02418.73
4.4.80.0030.03418.73
4.4.70.0000.01818.73
4.4.60.0000.01818.73
4.4.50.0030.01618.73
4.4.40.0030.03718.73
4.4.30.0040.01518.73
4.4.20.0000.01718.73
4.4.10.0040.01418.73
4.4.00.0030.02318.73
4.3.110.0040.01418.73
4.3.100.0030.01318.73
4.3.90.0000.01718.73
4.3.80.0030.04818.73
4.3.70.0000.03918.73
4.3.60.0030.02118.73
4.3.50.0030.01618.73
4.3.40.0000.04818.73
4.3.30.0000.03418.73
4.3.20.0000.02218.73
4.3.10.0000.01818.73
4.3.00.0030.01518.73