3v4l.org

run code in 300+ PHP versions simultaneously
<?php $eggCount = 3; for($i = 1; $i <= $eggCount; $i++) { create("eggs", array($i => array("ID" => $i))); } function create($arrName, Array $arrKeys) { $lName = "$".strtolower($arrName); $$lName = array(); foreach($arrKeys as $key => $value) { $$lName[$key] = $value; } for($i = 1; $i <= $GLOBALS['eggCount']; $i++) { // echo "Egg $i's ID: " . $eggs[$i]['ID']; } print_r($arrKeys); }

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.0040.01116.50
8.3.50.0120.00717.41
8.3.40.0150.00618.63
8.3.30.0110.00418.84
8.3.20.0040.00418.90
8.3.10.0080.00020.53
8.3.00.0040.00419.38
8.2.180.0110.00416.50
8.2.170.0060.00922.96
8.2.160.0100.00321.02
8.2.150.0030.00524.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0040.00420.92
8.2.110.0080.00321.02
8.2.100.0000.01117.84
8.2.90.0080.00019.42
8.2.80.0090.00019.15
8.2.70.0060.00317.38
8.2.60.0080.00017.93
8.2.50.0080.00018.07
8.2.40.0000.00718.16
8.2.30.0040.00418.20
8.2.20.0000.00717.82
8.2.10.0050.00317.74
8.2.00.0000.00917.72
8.1.280.0160.00625.92
8.1.270.0080.00024.66
8.1.260.0000.00826.35
8.1.250.0040.01128.09
8.1.240.0000.01122.46
8.1.230.0070.00420.95
8.1.220.0080.00017.78
8.1.210.0040.00418.84
8.1.200.0060.00317.48
8.1.190.0000.00817.40
8.1.180.0050.00318.10
8.1.170.0050.00318.71
8.1.160.0070.00018.88
8.1.150.0000.00718.64
8.1.140.0040.00417.45
8.1.130.0000.00817.79
8.1.120.0080.00017.38
8.1.110.0000.00717.37
8.1.100.0000.00717.33
8.1.90.0070.00017.35
8.1.80.0050.00317.46
8.1.70.0030.00517.43
8.1.60.0000.00817.57
8.1.50.0000.00817.36
8.1.40.0080.00017.48
8.1.30.0000.00717.59
8.1.20.0060.00317.64
8.1.10.0000.00817.56
8.1.00.0060.00317.53
8.0.300.0000.00819.96
8.0.290.0000.00716.88
8.0.280.0070.00018.43
8.0.270.0030.00317.32
8.0.260.0040.00416.67
8.0.250.0070.00316.93
8.0.240.0000.00716.95
8.0.230.0070.00016.92
8.0.220.0070.00016.91
8.0.210.0030.00316.88
8.0.200.0000.00716.96
8.0.190.0000.00716.96
8.0.180.0070.00016.83
8.0.170.0080.00016.95
8.0.160.0030.00316.93
8.0.150.0000.00816.73
8.0.140.0110.00016.84
8.0.130.0060.00013.34
8.0.120.0000.00816.74
8.0.110.0060.00316.93
8.0.100.0030.00517.00
8.0.90.0050.00316.89
8.0.80.0090.00616.87
8.0.70.0040.00416.74
8.0.60.0000.00716.76
8.0.50.0030.00516.89
8.0.30.0090.01317.04
8.0.20.0100.01017.07
8.0.10.0070.00016.85
8.0.00.0100.01016.82
7.4.330.0050.00012.96
7.4.320.0030.00316.49
7.4.300.0070.00016.41
7.4.290.0030.00316.48
7.4.280.0000.00716.64
7.4.270.0070.00016.54
7.4.260.0050.00013.32
7.4.250.0050.00316.46
7.4.240.0050.00216.49
7.4.230.0030.00316.49
7.4.220.0070.01016.39
7.4.210.0100.00716.66
7.4.200.0070.00016.49
7.4.190.0000.00816.46
7.4.160.0110.00516.39
7.4.150.0120.00616.49
7.4.140.0110.00716.48
7.4.130.0140.00916.43
7.4.120.0070.00916.51
7.4.110.0100.01016.57
7.4.100.0100.00716.45
7.4.90.0070.01016.31
7.4.80.0090.01319.39
7.4.70.0120.00616.38
7.4.60.0100.00916.52
7.4.50.0080.00016.61
7.4.40.0130.00316.62
7.4.30.0100.00716.40
7.4.00.0080.00814.63
7.3.330.0060.00013.36
7.3.320.0000.00713.14
7.3.310.0000.00716.36
7.3.300.0000.00716.31
7.3.290.0060.01316.34
7.3.280.0070.01016.30
7.3.270.0100.00716.63
7.3.260.0140.00316.20
7.3.250.0130.00616.49
7.3.240.0100.00716.46
7.3.230.0100.00716.45
7.3.210.0070.01016.56
7.3.200.0070.01016.63
7.3.190.0060.01016.53
7.3.180.0100.00616.29
7.3.170.0100.00716.43
7.3.160.0060.01016.68
7.3.120.0110.00614.86
7.3.110.0070.01414.87
7.3.100.0040.01114.80
7.3.90.0050.00514.90
7.3.80.0100.00314.58
7.3.70.0060.00314.89
7.3.60.0000.01514.75
7.3.50.0040.01114.96
7.3.40.0080.00414.77
7.3.30.0070.00715.00
7.3.20.0030.00916.75
7.3.10.0060.00616.88
7.3.00.0070.00716.41
7.2.330.0110.00716.76
7.2.320.0100.00716.46
7.2.310.0140.00516.74
7.2.300.0140.00316.66
7.2.290.0140.00316.51
7.2.250.0060.01215.10
7.2.240.0030.01315.00
7.2.230.0050.00514.90
7.2.220.0070.00715.32
7.2.210.0070.01015.21
7.2.200.0030.01415.09
7.2.190.0030.01014.89
7.2.180.0030.01414.70
7.2.170.0000.01714.82
7.2.00.0030.01219.68
7.1.330.0070.01015.61
7.1.320.0060.01215.96
7.1.310.0000.01515.59
7.1.300.0040.01215.81
7.1.290.0110.00315.61
7.1.280.0060.00315.80
7.1.270.0140.00015.89
7.1.260.0000.00915.90
7.1.200.0040.00815.61
7.1.70.0040.00417.34
7.1.60.0040.01919.40
7.1.50.0030.00717.10
7.1.00.0030.07022.54
7.0.200.0050.00316.90
7.0.140.0100.06722.21
7.0.120.0070.07321.96
7.0.60.0130.08019.93
7.0.50.0030.04717.91
7.0.40.0030.04320.23
7.0.30.0170.04320.14
7.0.20.0070.05020.02
7.0.10.0030.04320.25
7.0.00.0000.04320.26
5.6.280.0000.07721.13
5.6.210.0130.07020.63
5.6.200.0070.08718.16
5.6.190.0100.03720.62
5.6.180.0000.04720.41
5.6.170.0030.04020.76
5.6.160.0070.04020.39
5.6.150.0100.03720.52
5.6.140.0000.04320.52
5.6.130.0070.04020.32
5.6.120.0000.04720.49
5.6.110.0070.04020.50
5.6.100.0000.04320.42
5.6.90.0030.04320.31
5.6.80.0070.03719.91
5.6.70.0130.03019.90
5.6.60.0000.05019.78
5.6.50.0030.04719.61
5.6.40.0000.07319.76
5.6.30.0100.05319.59
5.6.20.0070.04019.72
5.6.10.0170.07319.79
5.6.00.0170.07719.58
5.5.350.0370.05020.39
5.5.340.0030.08018.06
5.5.330.0030.06020.40
5.5.320.0170.03020.27
5.5.310.0030.04020.29
5.5.300.0030.04319.97
5.5.290.0030.04020.21
5.5.280.0030.04320.34
5.5.270.0100.03320.23
5.5.260.0030.04319.93
5.5.250.0000.04319.98
5.5.240.0000.04319.36
5.5.230.0000.04319.50
5.5.220.0100.05719.36
5.5.210.0000.04719.67
5.5.200.0100.07719.48
5.5.190.0030.06319.67
5.5.180.0070.04719.52
5.5.160.0030.07719.51
5.5.150.0000.09019.49
5.5.140.0100.07719.32
5.5.130.0100.03719.38
5.5.120.0030.08719.51
5.5.110.0130.07019.63
5.5.100.0070.08719.42
5.5.90.0000.07719.24
5.5.80.0100.07719.38
5.5.70.0100.06719.23
5.5.60.0030.04319.44
5.5.50.0000.08019.23
5.5.40.0230.03319.52
5.5.30.0100.05719.27
5.5.20.0100.05319.38
5.5.10.0100.08019.49
5.5.00.0100.08019.41
5.4.450.0100.04019.44
5.4.440.0000.04319.48
5.4.430.0100.03319.47
5.4.420.0030.04319.52
5.4.410.0030.04019.27
5.4.400.0030.03719.01
5.4.390.0000.04019.12
5.4.380.0030.06018.92
5.4.370.0030.07018.85
5.4.360.0000.07318.88
5.4.350.0000.04718.93
5.4.340.0000.05318.85
5.4.320.0000.05719.08
5.4.310.0030.08019.16
5.4.300.0170.06319.19
5.4.290.0070.04018.84
5.4.280.0100.08018.88
5.4.270.0070.07718.92
5.4.260.0100.05718.92
5.4.250.0100.05719.20
5.4.240.0030.08019.14
5.4.230.0000.05719.09
5.4.220.0030.06019.14
5.4.210.0100.07019.15
5.4.200.0070.07318.86
5.4.190.0000.07319.19
5.4.180.0070.07318.84
5.4.170.0070.04718.97
5.4.160.0070.08018.83
5.4.150.0100.07718.90
5.4.140.0100.05716.38
5.4.130.0030.07316.26
5.4.120.0070.07316.26
5.4.110.0130.06016.43
5.4.100.0100.06716.28
5.4.90.0100.04016.41
5.4.80.0070.05316.40
5.4.70.0030.05016.23
5.4.60.0000.06716.41
5.4.50.0000.04016.31
5.4.40.0070.04716.25
5.4.30.0030.04316.42
5.4.20.0070.04716.40
5.4.10.0030.05016.28
5.4.00.0070.03315.78
5.3.290.0100.06014.67
5.3.280.0030.04314.65
5.3.270.0100.07714.64
5.3.260.0170.06714.66
5.3.250.0100.07714.60
5.3.240.0100.07014.78
5.3.230.0130.04314.64
5.3.220.0030.04314.64
5.3.210.0100.04314.56
5.3.200.0030.05014.47
5.3.190.0000.06314.56
5.3.180.0070.07014.63
5.3.170.0130.05014.45
5.3.160.0100.05014.62
5.3.150.0070.05014.59
5.3.140.0200.06014.44
5.3.130.0030.04314.70
5.3.120.0030.04714.55
5.3.110.0030.07014.54
5.3.100.0030.05014.05
5.3.90.0070.04314.03
5.3.80.0000.04714.05
5.3.70.0100.07314.07
5.3.60.0000.06014.03
5.3.50.0070.05014.03
5.3.40.0030.03714.01
5.3.30.0070.04713.96
5.3.20.0000.04013.70
5.3.10.0070.07313.73
5.3.00.0070.06713.68
5.2.170.0070.03011.16
5.2.160.0000.03011.20
5.2.150.0070.02711.11
5.2.140.0030.03311.19
5.2.130.0000.03311.14
5.2.120.0070.02711.11
5.2.110.0070.04011.15
5.2.100.0030.04711.10
5.2.90.0030.03011.15
5.2.80.0100.03311.14
5.2.70.0030.03711.25
5.2.60.0070.06010.94
5.2.50.0000.03711.02
5.2.40.0000.03711.00
5.2.30.0030.06311.01
5.2.20.0070.03311.11
5.2.10.0030.03010.91
5.2.00.0100.02010.79
5.1.60.0100.04710.00
5.1.50.0030.0579.95
5.1.40.0000.02710.11
5.1.30.0030.05710.26
5.1.20.0070.04310.42
5.1.10.0000.03010.23
5.1.00.0030.02310.05
5.0.50.0070.0278.53
5.0.40.0100.0178.32
5.0.30.0000.0538.21
5.0.20.0030.0408.34
5.0.10.0000.0478.32
5.0.00.0000.0408.17
4.4.90.0000.0236.65
4.4.80.0000.0206.65
4.4.70.0030.0336.65
4.4.60.0030.0406.65
4.4.50.0030.0206.65
4.4.40.0030.0536.65
4.4.30.0030.0136.65
4.4.20.0070.0136.65
4.4.10.0030.0136.65
4.4.00.0000.0506.65
4.3.110.0000.0306.65
4.3.100.0030.0306.65
4.3.90.0070.0276.65
4.3.80.0100.0476.65
4.3.70.0070.0336.65
4.3.60.0000.0336.65
4.3.50.0070.0236.65
4.3.40.0000.0376.65
4.3.30.0000.0306.65
4.3.20.0030.0336.65
4.3.10.0030.0206.65
4.3.00.0030.0336.65

preferences:
44.4 ms | 401 KiB | 5 Q