3v4l.org

run code in 300+ PHP versions simultaneously
<?php function retVal() { global $foo; return $foo; } function & retRef() { global $foo; return $foo; } $foo = 'init'; $bar = retRef(); $bar = 'bar'; var_dump($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.3.70.0090.00618.31
8.3.60.0070.01418.30
8.3.50.0130.00521.20
8.3.40.0090.00618.44
8.3.30.0070.00720.17
8.3.20.0080.00018.71
8.3.10.0050.00320.96
8.3.00.0030.00519.44
8.2.180.0110.01116.50
8.2.170.0100.00322.96
8.2.160.0100.00320.19
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0050.00321.04
8.2.110.0040.00419.37
8.2.100.0040.00817.66
8.2.90.0000.00819.09
8.2.80.0030.00717.97
8.2.70.0040.00417.38
8.2.60.0040.00417.91
8.2.50.0080.00018.10
8.2.40.0000.00820.32
8.2.30.0050.00219.18
8.2.20.0000.00817.65
8.2.10.0040.00417.55
8.2.00.0000.00717.65
8.1.280.0090.00625.92
8.1.270.0090.00623.99
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0090.00020.83
8.1.230.0070.00322.13
8.1.220.0050.00317.74
8.1.210.0030.00518.77
8.1.200.0000.00917.35
8.1.190.0040.00417.23
8.1.180.0000.00718.10
8.1.170.0060.00318.51
8.1.160.0040.00418.83
8.1.150.0000.00820.13
8.1.140.0030.00317.25
8.1.130.0030.00317.86
8.1.120.0030.00317.43
8.1.110.0050.00517.36
8.1.100.0040.00417.41
8.1.90.0000.00717.41
8.1.80.0040.00417.39
8.1.70.0060.00317.37
8.1.60.0040.00417.55
8.1.50.0030.00617.35
8.1.40.0030.00517.54
8.1.30.0030.00617.65
8.1.20.0040.00417.66
8.1.10.0000.00717.41
8.1.00.0040.00417.34
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0040.00418.28
8.0.270.0040.00417.12
8.0.260.0030.00316.79
8.0.250.0050.00216.84
8.0.240.0040.00416.75
8.0.230.0030.00316.92
8.0.220.0090.00016.84
8.0.210.0000.00816.86
8.0.200.0040.00416.79
8.0.190.0030.00316.98
8.0.180.0000.00716.80
8.0.170.0030.00316.86
8.0.160.0050.00516.74
8.0.150.0050.00316.67
8.0.140.0050.00216.68
8.0.130.0030.00313.30
8.0.120.0050.00316.78
8.0.110.0040.00416.70
8.0.100.0040.00416.85
8.0.90.0040.00416.77
8.0.80.0150.00416.80
8.0.70.0070.00016.79
8.0.60.0040.00416.78
8.0.50.0070.00016.70
8.0.30.0120.00717.06
8.0.20.0070.01217.40
8.0.10.0050.00217.05
8.0.00.0060.01116.79
7.4.330.0050.00016.81
7.4.320.0050.00316.36
7.4.300.0000.00616.58
7.4.290.0000.00716.38
7.4.280.0030.00516.56
7.4.270.0030.00316.51
7.4.260.0030.00313.21
7.4.250.0030.00516.50
7.4.240.0030.00316.59
7.4.230.0030.00316.29
7.4.220.0070.01116.30
7.4.210.0050.01116.55
7.4.200.0030.00516.48
7.4.190.0000.00716.68
7.4.160.0090.00616.56
7.4.150.0110.00717.40
7.4.140.0030.01317.86
7.4.130.0090.00716.36
7.4.120.0060.01216.44
7.4.110.0120.01216.36
7.4.100.0130.00416.50
7.4.90.0140.00716.27
7.4.80.0100.00619.39
7.4.70.0050.01616.47
7.4.60.0030.01316.41
7.4.50.0080.00016.25
7.4.40.0030.00622.77
7.4.30.0140.00716.63
7.4.00.0090.00914.48
7.3.330.0050.00013.23
7.3.320.0050.00013.23
7.3.310.0070.00016.23
7.3.300.0030.00316.23
7.3.290.0060.00816.15
7.3.280.0090.00716.18
7.3.270.0100.00717.40
7.3.260.0110.01218.24
7.3.250.0110.01116.47
7.3.240.0100.00716.30
7.3.230.0100.00716.48
7.3.210.0060.01216.23
7.3.200.0160.00619.39
7.3.190.0100.01116.49
7.3.180.0100.00716.25
7.3.170.0100.00616.44
7.3.160.0090.00816.38
7.3.120.0070.01014.89
7.2.330.0070.01516.66
7.2.320.0040.01416.68
7.2.310.0100.01316.30
7.2.300.0060.01116.29
7.2.290.0060.00916.57
7.1.100.0040.00818.19
7.1.70.0030.00517.30
7.1.60.0040.01217.23
7.1.50.0070.01416.92
7.1.40.0030.01016.48
7.1.30.0140.00016.61
7.1.20.0070.00716.70
7.1.10.0000.00716.61
7.1.00.0040.00416.61
7.0.200.0130.00316.72
7.0.190.0100.00316.67
7.0.180.0080.00016.26
7.0.170.0000.01416.15
7.0.160.0030.00616.14
7.0.150.0040.00416.36
7.0.140.0040.00416.32
7.0.130.0000.01016.39
7.0.120.0060.00916.42
7.0.110.0080.00316.46
7.0.100.0070.00716.14
7.0.90.0030.00616.14
7.0.80.0000.00816.28
7.0.70.0000.00816.32
7.0.60.0000.00816.15
7.0.50.0000.01016.27
7.0.40.0030.00714.75
7.0.30.0000.00914.75
7.0.20.0040.01114.75
7.0.10.0060.00614.75
7.0.00.0050.00514.75
5.6.300.0070.04020.94
5.6.290.0070.07920.90
5.6.280.0060.03821.10
5.6.270.0030.06220.98
5.6.260.0070.04020.82
5.6.250.0000.04720.98
5.6.240.0000.04620.87
5.6.230.0060.08320.97
5.6.220.0130.03520.96
5.6.210.0000.04420.93
5.6.200.0000.04420.79
5.6.190.0070.04120.87
5.6.180.0030.04720.84
5.6.170.0030.04021.02
5.6.160.0000.04421.00
5.6.150.0030.04220.93
5.6.140.0030.05621.05
5.6.130.0060.05220.83
5.6.120.0000.04621.01
5.6.110.0000.04420.81
5.6.100.0070.08520.81
5.6.90.0030.07320.98
5.6.80.0140.03920.22
5.6.70.0030.08020.30
5.6.60.0000.04320.20
5.6.50.0000.05920.38
5.6.40.0030.03820.42
5.6.30.0000.04720.10
5.6.20.0100.05120.20
5.6.10.0090.05420.35
5.6.00.0070.08320.27
5.5.380.0000.04917.48
5.5.370.0210.04817.53
5.5.360.0070.05017.57
5.5.350.0000.04917.66
5.5.340.0070.03517.84
5.5.330.0100.03618.03
5.5.320.0030.03918.07
5.5.310.0070.03818.04
5.5.300.0040.05318.13
5.5.290.0030.04117.86
5.5.280.0090.03418.01
5.5.270.0100.07617.86
5.5.260.0030.04117.69
5.5.250.0040.04717.87
5.5.240.0000.05117.42
5.5.230.0030.03817.46
5.5.220.0030.04317.12
5.5.210.0060.03817.47
5.5.200.0070.03917.45
5.5.190.0090.04717.36
5.5.180.0040.04617.48
5.5.160.0000.05817.39
5.5.150.0030.04317.43
5.5.140.0030.03817.09
5.5.130.0000.04117.44
5.5.120.0000.05617.41
5.5.110.0040.04017.40
5.5.100.0030.03917.12
5.5.90.0030.04717.38
5.5.80.0000.04317.00
5.5.70.0030.04217.24
5.5.60.0060.03816.99
5.5.50.0120.03717.30
5.5.40.0100.03916.95
5.5.30.0060.03517.27
5.5.20.0130.03217.32
5.5.10.0030.04217.33
5.5.00.0030.03717.41
5.4.450.0000.04919.33
5.4.440.0070.03619.31
5.4.430.0040.05719.52
5.4.420.0090.04219.39
5.4.410.0030.03819.14
5.4.400.0030.07619.12
5.4.390.0040.06718.99
5.4.380.0070.03819.17
5.4.370.0100.03119.20
5.4.360.0070.03618.95
5.4.350.0030.04219.13
5.4.340.0240.04119.21
5.4.320.0030.03819.12
5.4.310.0070.03819.06
5.4.300.0070.04419.07
5.4.290.0000.04218.98
5.4.280.0000.05019.21
5.4.270.0040.03918.92
5.4.260.0040.04319.23
5.4.250.0060.03419.00
5.4.240.0100.04019.06
5.4.230.0000.04619.20
5.4.220.0070.03918.98
5.4.210.0030.04618.97
5.4.200.0070.05718.98
5.4.190.0200.03719.13
5.4.180.0040.03719.20
5.4.170.0060.03919.12
5.4.160.0070.04319.20
5.4.150.0030.03918.90
5.4.140.0100.04516.60
5.4.130.0030.03516.51
5.4.120.0060.04416.60
5.4.110.0100.03616.47
5.4.100.0070.03316.68
5.4.90.0100.02916.70
5.4.80.0030.03716.69
5.4.70.0070.03016.74
5.4.60.0100.05416.74
5.4.50.0030.03816.61
5.4.40.0030.03516.44
5.4.30.0070.03416.55
5.4.20.0030.04016.71
5.4.10.0060.04116.61
5.4.00.0030.06815.96
5.3.290.0030.07314.75
5.3.280.0030.04214.75
5.3.270.0070.04714.78
5.3.260.0070.03714.81
5.3.250.0030.03814.75
5.3.240.0070.07414.75
5.3.230.0000.04414.79
5.3.220.0000.04214.75
5.3.210.0060.04014.85
5.3.200.0000.04614.87
5.3.190.0000.05114.80
5.3.180.0070.03914.75
5.3.170.0000.04114.75
5.3.160.0040.07414.84
5.3.150.0030.05014.79
5.3.140.0000.04314.75
5.3.130.0000.03914.81
5.3.120.0030.06614.75
5.3.110.0030.07414.80
5.3.100.0000.03914.75
5.3.90.0030.04114.75
5.3.80.0070.03814.75
5.3.70.0030.03414.75
5.3.60.0040.06114.75
5.3.50.0030.04514.75
5.3.40.0030.04814.75
5.3.30.0070.06114.75
5.3.20.0070.05014.75
5.3.10.0000.03714.75
5.3.00.0070.04514.75
5.2.170.0000.03214.75
5.2.160.0000.03514.75
5.2.150.0090.02714.75
5.2.140.0040.02814.75
5.2.130.0030.05114.75
5.2.120.0060.06214.75
5.2.110.0030.05414.75
5.2.100.0060.02914.75
5.2.90.0090.02314.75
5.2.80.0030.06314.75
5.2.70.0000.03114.75
5.2.60.0000.03414.75
5.2.50.0070.05914.75
5.2.40.0100.03114.75
5.2.30.0090.02714.75
5.2.20.0030.02914.75
5.2.10.0060.03914.75
5.2.00.0070.03314.75
5.1.60.0000.02814.75
5.1.50.0030.02514.75
5.1.40.0030.02414.75
5.1.30.0030.02614.75
5.1.20.0000.02814.75
5.1.10.0030.05214.75
5.1.00.0000.04414.75
5.0.50.0030.04214.75
5.0.40.0060.02814.75
5.0.30.0060.06114.75
5.0.20.0060.01614.75
5.0.10.0060.04514.75
5.0.00.0060.03114.75
4.4.90.0060.01214.75
4.4.80.0000.03014.75
4.4.70.0000.01714.75
4.4.60.0040.01414.75
4.4.50.0070.01014.75
4.4.40.0000.02614.75
4.4.30.0000.01714.75
4.4.20.0000.01714.75
4.4.10.0000.01914.75
4.4.00.0000.05914.75
4.3.110.0030.02114.75
4.3.100.0060.02214.75
4.3.90.0030.01314.75
4.3.80.0090.02814.75
4.3.70.0030.01314.75
4.3.60.0000.01614.75
4.3.50.0070.01014.75
4.3.40.0030.02314.75
4.3.30.0030.01514.75
4.3.20.0000.01914.75
4.3.10.0090.00914.75
4.3.00.0000.01714.75

preferences:
49.01 ms | 401 KiB | 5 Q