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(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.0070.00718.80
8.3.50.0130.00621.14
8.3.40.0110.00418.82
8.3.30.0110.00419.09
8.3.20.0040.00420.33
8.3.10.0040.00421.88
8.3.00.0080.00022.44
8.2.180.0120.00318.54
8.2.170.0110.00722.96
8.2.160.0100.00319.38
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0150.00426.16
8.2.120.0040.00419.36
8.2.110.0030.00722.08
8.2.100.0080.00418.03
8.2.90.0080.00019.22
8.2.80.0040.00417.97
8.2.70.0060.00317.75
8.2.60.0080.00018.05
8.2.50.0050.00318.07
8.2.40.0050.00318.02
8.2.30.0050.00218.18
8.2.20.0000.00817.78
8.2.10.0040.00417.87
8.2.00.0030.00517.80
8.1.280.0120.00625.92
8.1.270.0080.00021.91
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00324.02
8.1.230.0040.00818.92
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0040.00417.54
8.1.180.0060.00320.56
8.1.170.0020.00818.60
8.1.160.0000.00722.13
8.1.150.0040.00418.54
8.1.140.0040.00417.44
8.1.130.0040.00417.82
8.1.120.0000.00717.46
8.1.110.0000.00817.44
8.1.100.0030.00417.39
8.1.90.0040.00417.47
8.1.80.0030.00317.34
8.1.70.0030.00317.45
8.1.60.0040.00417.59
8.1.50.0040.00417.41
8.1.40.0030.00617.46
8.1.30.0040.00417.45
8.1.20.0080.00017.65
8.1.10.0070.00017.53
8.1.00.0030.00517.50
8.0.300.0040.00418.77
8.0.290.0000.00817.15
8.0.280.0000.00818.37
8.0.270.0040.00417.22
8.0.260.0000.00716.86
8.0.250.0000.00716.97
8.0.240.0070.00017.03
8.0.230.0000.00716.96
8.0.220.0070.00016.93
8.0.210.0000.00716.92
8.0.200.0060.00016.93
8.0.190.0050.00317.02
8.0.180.0000.00716.86
8.0.170.0090.00016.99
8.0.160.0040.00416.80
8.0.150.0040.00417.00
8.0.140.0070.00016.82
8.0.130.0000.00513.38
8.0.120.0000.00716.91
8.0.110.0000.00816.79
8.0.100.0000.00716.75
8.0.90.0050.00317.00
8.0.80.0070.01016.96
8.0.70.0040.00416.76
8.0.60.0030.00517.02
8.0.50.0040.00417.04
8.0.30.0140.00917.12
8.0.20.0170.00517.40
8.0.10.0040.00417.12
8.0.00.0080.01216.61
7.4.330.0060.00015.00
7.4.320.0000.00716.51
7.4.300.0000.00616.59
7.4.290.0070.00016.60
7.4.280.0000.00716.59
7.4.270.0050.00216.65
7.4.260.0000.00816.55
7.4.250.0000.00816.52
7.4.240.0020.00516.51
7.4.230.0040.00416.62
7.4.220.0040.01416.45
7.4.210.0080.00816.56
7.4.200.0040.00416.36
7.4.190.0040.00416.70
7.4.160.0120.00416.40
7.4.150.0170.00417.40
7.4.140.0110.00917.86
7.4.130.0050.01316.47
7.4.120.0100.01016.58
7.4.110.0130.01016.55
7.4.100.0120.00616.41
7.4.90.0140.01016.50
7.4.80.0060.01219.39
7.4.70.0110.00616.58
7.4.60.0100.00616.61
7.4.50.0060.00316.38
7.4.40.0040.01422.77
7.4.30.0110.00616.35
7.4.00.0070.01014.95
7.3.330.0030.00313.23
7.3.320.0050.00013.27
7.3.310.0030.00316.27
7.3.300.0030.00316.30
7.3.290.0130.00316.39
7.3.280.0070.00916.42
7.3.270.0090.00917.40
7.3.260.0080.00816.43
7.3.250.0130.00716.46
7.3.240.0120.00616.35
7.3.230.0100.01316.46
7.3.210.0120.00616.54
7.3.200.0110.00619.39
7.3.190.0120.00616.35
7.3.180.0060.00916.46
7.3.170.0110.00616.54
7.3.160.0090.00916.67
7.3.120.0070.00814.86
7.3.110.0100.00714.85
7.3.100.0060.00614.71
7.3.90.0040.01214.70
7.3.80.0120.00914.99
7.3.70.0130.00314.64
7.3.60.0080.00414.84
7.3.50.0060.00614.77
7.3.40.0100.00614.80
7.3.30.0100.00714.97
7.3.20.0100.00616.78
7.3.10.0090.00616.75
7.3.00.0030.01016.69
7.2.330.0110.01116.83
7.2.320.0060.01816.83
7.2.310.0090.01216.73
7.2.300.0000.01716.82
7.2.290.0120.00916.68
7.2.250.0070.01115.27
7.2.240.0080.01115.06
7.2.230.0060.01315.21
7.2.220.0130.00614.94
7.2.210.0000.01814.88
7.2.200.0030.01015.19
7.2.190.0030.01215.01
7.2.180.0090.00914.85
7.2.170.0070.00714.92
7.2.00.0000.01319.62
7.1.330.0000.01115.81
7.1.320.0000.01715.54
7.1.310.0140.00315.58
7.1.300.0060.00915.84
7.1.290.0000.00915.75
7.1.280.0030.01015.75
7.1.270.0080.00415.89
7.1.260.0060.00915.97
7.1.100.0030.00918.09
7.1.70.0000.00817.28
7.1.60.0100.01019.82
7.1.50.0070.01317.03
7.1.00.0000.04022.33
7.0.200.0020.00516.79
7.0.140.0100.06321.99
7.0.110.0100.04019.96
7.0.100.0070.04320.00
7.0.90.0130.03719.98
7.0.80.0030.04719.84
7.0.70.0070.08019.96
7.0.60.0100.07719.93
7.0.50.0030.04320.05
7.0.40.0070.03719.82
7.0.30.0130.02719.75
7.0.20.0070.03719.65
7.0.10.0070.03719.80
7.0.00.0000.04019.74
5.6.260.0070.04720.73
5.6.250.0030.04320.59
5.6.240.0030.04320.55
5.6.230.0070.03720.66
5.6.220.0000.08320.47
5.6.210.0000.04020.65
5.6.200.0030.04320.52
5.6.190.0100.03320.64
5.6.180.0000.05020.69
5.6.170.0130.02720.65
5.6.160.0070.03720.47
5.6.150.0130.04320.63
5.6.140.0070.03320.85
5.6.130.0000.04320.62
5.6.120.0070.04020.61
5.6.110.0130.02720.70
5.6.100.0030.04020.61
5.6.90.0000.04320.64
5.6.80.0030.03720.03
5.6.70.0100.04020.02
5.6.60.0000.04320.00
5.6.50.0000.04720.02
5.6.40.0030.03720.07
5.6.30.0100.03319.98
5.6.20.0070.03720.00
5.6.10.0100.03020.00
5.6.00.0070.03319.92
5.5.380.0070.03017.73
5.5.370.0000.04317.59
5.5.360.0100.07717.55
5.5.350.0100.07317.52
5.5.340.0070.07017.93
5.5.330.0100.03318.09
5.5.320.0100.03718.07
5.5.310.0070.03717.91
5.5.300.0030.05018.22
5.5.290.0000.04318.22
5.5.280.0030.03717.91
5.5.270.0070.03717.90
5.5.260.0100.04018.25
5.5.250.0000.04317.94
5.5.240.0000.04017.48
5.5.230.0000.04317.48
5.5.220.0030.04017.63
5.5.210.0030.05717.29
5.5.200.0070.03317.46
5.5.190.0030.03717.30
5.5.180.0030.04017.29
5.5.160.0070.04717.45
5.5.150.0070.05017.39
5.5.140.0030.07717.26
5.5.130.0070.08317.28
5.5.120.0000.08317.20
5.5.110.0130.07017.29
5.5.100.0070.07717.49
5.5.90.0030.08017.29
5.5.80.0070.07717.30
5.5.70.0100.07017.46
5.5.60.0070.08017.15
5.5.50.0200.06317.17
5.5.40.0030.04317.17
5.5.30.0070.07317.14
5.5.20.0030.05017.49
5.5.10.0000.04017.31
5.5.00.0130.04017.33
5.4.450.0000.05719.50
5.4.440.0100.04319.51
5.4.430.0000.04319.50
5.4.420.0100.03719.27
5.4.410.0000.04019.51
5.4.400.0000.06019.02
5.4.390.0070.04019.10
5.4.380.0100.03019.16
5.4.370.0030.03719.10
5.4.360.0030.04019.24
5.4.350.0100.03019.10
5.4.340.0030.03719.00
5.4.320.0030.03719.18
5.4.310.0070.05719.18
5.4.300.0000.08318.99
5.4.290.0170.06319.18
5.4.280.0130.07319.31
5.4.270.0130.07719.16
5.4.260.0070.08018.98
5.4.250.0070.05719.09
5.4.240.0100.06719.31
5.4.230.0170.03719.03
5.4.220.0070.08019.08
5.4.210.0030.07719.10
5.4.200.0000.07719.08
5.4.190.0030.04019.02
5.4.180.0030.03719.30
5.4.170.0070.04019.17
5.4.160.0070.03019.00
5.4.150.0070.03319.16
5.4.140.0030.04316.39
5.4.130.0100.06316.38
5.4.120.0030.06716.46
5.4.110.0130.06316.26
5.4.100.0170.05016.51
5.4.90.0100.06316.26
5.4.80.0030.07716.24
5.4.70.0070.07316.40
5.4.60.0070.07016.39
5.4.50.0100.06716.31
5.4.40.0130.07016.50
5.4.30.0030.06716.62
5.4.20.0100.06716.52
5.4.10.0000.04716.53
5.4.00.0170.06315.97
5.3.290.0170.05014.79
5.3.280.0130.06714.59
5.3.270.0100.03714.61
5.3.260.0000.06014.58
5.3.250.0100.04714.58
5.3.240.0030.05714.61
5.3.230.0070.07314.59
5.3.220.0000.08014.60
5.3.210.0030.06014.69
5.3.200.0100.03714.71
5.3.190.0030.07314.64
5.3.180.0000.05014.41
5.3.170.0070.07714.69
5.3.160.0030.04314.54
5.3.150.0170.06314.64
5.3.140.0070.07014.58
5.3.130.0100.06314.57
5.3.120.0100.07014.54
5.3.110.0070.06714.64
5.3.100.0070.07713.90
5.3.90.0030.07014.05
5.3.80.0100.05713.88
5.3.70.0070.07314.05
5.3.60.0030.07313.98
5.3.50.0030.04014.18
5.3.40.0000.04313.91
5.3.30.0030.07313.99
5.3.20.0070.07313.68
5.3.10.0000.04313.74
5.3.00.0070.07013.50
5.2.170.0000.05711.90
5.2.160.0070.05711.90
5.2.150.0070.06311.90
5.2.140.0030.03711.90
5.2.130.0030.04311.90
5.2.120.0000.06311.90
5.2.110.0000.03011.90
5.2.100.0070.06011.90
5.2.90.0100.02711.90
5.2.80.0070.04011.90
5.2.70.0030.03311.90
5.2.60.0070.05711.90
5.2.50.0030.03311.90
5.2.40.0070.05011.90
5.2.30.0030.05311.90
5.2.20.0070.04011.90
5.2.10.0000.03711.90
5.2.00.0000.06011.90
5.1.60.0070.03711.90
5.1.50.0070.04311.90
5.1.40.0070.04011.90
5.1.30.0030.05311.90
5.1.20.0000.05711.90
5.1.10.0100.04311.90
5.1.00.0030.05311.90
5.0.50.0070.02011.90
5.0.40.0030.02711.90
5.0.30.0030.05311.90
5.0.20.0070.04011.90
5.0.10.0070.03311.90
5.0.00.0000.06011.90
4.4.90.0100.03011.90
4.4.80.0000.01711.90
4.4.70.0030.02011.90
4.4.60.0030.03711.90
4.4.50.0030.02711.90
4.4.40.0030.02711.90
4.4.30.0030.03011.90
4.4.20.0030.02011.90
4.4.10.0000.02011.90
4.4.00.0000.05311.90
4.3.110.0030.03311.90
4.3.100.0000.03711.90
4.3.90.0000.02311.90
4.3.80.0070.02311.90
4.3.70.0000.03711.90
4.3.60.0030.02011.90
4.3.50.0000.02711.90
4.3.40.0000.04311.90
4.3.30.0000.02311.90
4.3.20.0000.03711.90
4.3.10.0030.02711.90
4.3.00.0000.03311.90

preferences:
46.92 ms | 401 KiB | 5 Q