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']; } }

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.0000.01418.43
8.3.50.0120.00721.15
8.3.40.0070.00718.79
8.3.30.0100.00319.09
8.3.20.0080.00020.29
8.3.10.0040.00422.26
8.3.00.0040.00422.45
8.2.180.0000.01516.63
8.2.170.0080.00822.96
8.2.160.0100.00719.16
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0170.00026.16
8.2.120.0090.00019.36
8.2.110.0060.00320.57
8.2.100.0070.00417.78
8.2.90.0030.00519.34
8.2.80.0000.00818.04
8.2.70.0000.00817.63
8.2.60.0050.00318.05
8.2.50.0050.00318.07
8.2.40.0050.00318.22
8.2.30.0040.00418.17
8.2.20.0080.00017.68
8.2.10.0000.00717.73
8.2.00.0000.00817.73
8.1.280.0140.00025.92
8.1.270.0050.00322.04
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00322.14
8.1.230.0080.00321.90
8.1.220.0050.00317.76
8.1.210.0080.00018.77
8.1.200.0040.00417.36
8.1.190.0000.00817.53
8.1.180.0030.00520.65
8.1.170.0060.00618.49
8.1.160.0000.00822.14
8.1.150.0000.00818.64
8.1.140.0030.00517.51
8.1.130.0000.00717.86
8.1.120.0040.00417.40
8.1.110.0040.00417.44
8.1.100.0040.00317.34
8.1.90.0070.00017.47
8.1.80.0070.00017.43
8.1.70.0000.00717.43
8.1.60.0060.00317.47
8.1.50.0040.00417.45
8.1.40.0000.00817.50
8.1.30.0070.00017.59
8.1.20.0030.00517.70
8.1.10.0050.00217.49
8.1.00.0030.00517.45
8.0.300.0040.00418.77
8.0.290.0070.00017.18
8.0.280.0040.00418.50
8.0.270.0030.00317.26
8.0.260.0030.00316.82
8.0.250.0030.00316.94
8.0.240.0000.00716.98
8.0.230.0030.00317.01
8.0.220.0070.00016.95
8.0.210.0000.00816.77
8.0.200.0000.00616.95
8.0.190.0000.00716.85
8.0.180.0040.00416.88
8.0.170.0030.00616.87
8.0.160.0040.00416.89
8.0.150.0070.00016.92
8.0.140.0000.00716.75
8.0.130.0050.00013.32
8.0.120.0040.00416.84
8.0.110.0040.00416.77
8.0.100.0000.00716.95
8.0.90.0000.00716.86
8.0.80.0120.00616.81
8.0.70.0000.00716.96
8.0.60.0040.00416.84
8.0.50.0070.00016.85
8.0.30.0120.01417.00
8.0.20.0080.01317.40
8.0.10.0070.00017.13
8.0.00.0110.00716.86
7.4.330.0020.00215.00
7.4.320.0000.00616.57
7.4.300.0000.00616.46
7.4.290.0000.00716.61
7.4.280.0050.00216.50
7.4.270.0000.00616.56
7.4.260.0000.00916.56
7.4.250.0050.00216.42
7.4.240.0020.00516.56
7.4.230.0000.00716.51
7.4.220.0090.01016.63
7.4.210.0090.00516.61
7.4.200.0040.00416.41
7.4.190.0080.00016.75
7.4.160.0040.01116.41
7.4.150.0090.00817.40
7.4.140.0110.00817.86
7.4.130.0070.01116.50
7.4.120.0050.01116.48
7.4.110.0040.01916.44
7.4.100.0030.01416.53
7.4.90.0070.01016.59
7.4.80.0130.00319.39
7.4.70.0030.01316.54
7.4.60.0100.00716.50
7.4.50.0030.00616.39
7.4.40.0070.01122.77
7.4.30.0030.01716.48
7.4.00.0040.00415.11
7.3.330.0050.00013.29
7.3.320.0050.00013.36
7.3.310.0000.00716.23
7.3.300.0040.00416.24
7.3.290.0100.00316.30
7.3.280.0090.00816.34
7.3.270.0130.00317.40
7.3.260.0150.00316.48
7.3.250.0080.01116.42
7.3.240.0090.00916.43
7.3.230.0090.00916.44
7.3.210.0090.00916.44
7.3.200.0100.01019.39
7.3.190.0170.00416.27
7.3.180.0030.01216.32
7.3.170.0100.00716.41
7.3.160.0070.01016.48
7.3.120.0070.01014.72
7.3.10.0080.00416.08
7.3.00.0090.00916.39
7.2.330.0130.00616.48
7.2.320.0140.00716.57
7.2.310.0100.00716.84
7.2.300.0130.00316.86
7.2.290.0140.00316.78
7.2.130.0120.00316.92
7.2.120.0100.00316.37
7.2.110.0070.01016.61
7.2.100.0140.00716.66
7.2.90.0070.01016.44
7.2.80.0090.00916.40
7.2.70.0070.01016.82
7.2.60.0080.01016.75
7.2.50.0120.00916.64
7.2.40.0150.00316.30
7.2.30.0100.00316.57
7.2.20.0070.01016.57
7.2.10.0070.01116.47
7.2.00.0060.01018.14
7.1.250.0180.00515.50
7.1.200.0030.01015.79
7.1.100.0000.01017.95
7.1.70.0030.00717.04
7.1.60.0100.00719.82
7.1.50.0080.01117.07
7.1.00.0070.03022.34
7.0.200.0000.01016.86
7.0.140.0030.06721.98
7.0.60.0100.08021.77
7.0.50.0130.05017.96
7.0.40.0130.08020.21
7.0.30.0230.07320.11
7.0.20.0370.07320.31
7.0.10.0000.04720.10
7.0.00.0100.06320.19
5.6.280.0130.06321.05
5.6.210.0170.07020.69
5.6.200.0130.03718.29
5.6.190.0000.04320.45
5.6.180.0300.04720.46
5.6.170.0300.05320.55
5.6.160.0000.07020.54
5.6.150.0070.08018.15
5.6.140.0130.06318.26
5.6.130.0100.04718.11
5.6.120.0130.04321.02
5.6.110.0170.07721.00
5.6.100.0030.08020.97
5.6.90.0030.05021.14
5.6.80.0130.03720.38
5.5.350.0030.08020.34
5.5.340.0070.04017.98
5.5.330.0100.03720.37
5.5.320.0530.06020.31
5.5.310.0070.06720.29
5.5.300.0000.04717.92
5.5.290.0070.04317.99
5.5.280.0070.04720.88
5.5.270.0030.04020.77
5.5.260.0030.04020.93
5.5.250.0030.04320.70
5.5.240.0370.06320.15
5.4.450.4200.04319.37
5.4.440.2830.03719.36
5.4.430.3400.04719.38
5.4.420.2870.04719.31
5.4.410.2470.03019.13
5.4.400.3970.03719.18
5.4.390.4470.03718.95
5.4.380.4570.03319.11
5.4.370.4170.04019.20
5.4.360.4430.04319.23
5.4.350.4530.03719.13
5.4.340.4270.04319.17
5.4.320.4130.04018.99
5.4.310.3930.04319.06
5.4.300.3800.04019.22
5.4.290.3830.03719.13
5.4.280.3800.03719.22
5.4.270.0030.07318.99
5.4.260.0500.05319.20
5.4.250.4870.03719.05
5.4.240.4630.03319.12
5.4.230.4500.03719.16
5.4.220.3930.04019.15
5.4.210.3730.03719.25
5.4.200.3570.03719.06
5.4.190.3730.03719.19
5.4.180.4400.04019.25
5.4.170.0000.07719.23
5.4.160.3970.03719.25
5.4.150.4300.04018.98
5.4.140.4070.03716.54
5.4.130.4600.04016.25
5.4.120.3870.04016.39
5.4.110.3800.04016.46
5.4.100.3800.03716.51
5.4.90.3800.03316.48
5.4.80.3870.04016.23
5.4.70.3800.03316.44
5.4.60.3830.03316.23
5.4.50.3870.03716.42
5.4.40.4500.04016.42
5.4.30.3700.03316.45
5.4.20.4170.04016.29
5.4.10.3630.03316.45
5.4.00.4000.04315.89
5.3.290.4000.03314.82
5.3.280.3730.04314.61
5.3.270.0030.08014.68
5.3.260.4430.03714.64
5.3.250.4030.04314.63
5.3.240.4670.02714.66
5.3.230.3770.04714.60
5.3.220.4000.03714.56
5.3.210.4400.04714.45
5.3.200.4170.03714.56
5.3.190.3900.04314.71
5.3.180.4000.04014.58
5.3.170.3970.04314.65
5.3.160.3800.03714.58
5.3.150.4000.03714.57
5.3.140.4070.03714.56
5.3.130.3700.04014.57
5.3.120.3930.04314.59
5.3.110.3930.02714.55
5.3.100.4470.03014.11
5.3.90.4600.03714.02
5.3.80.4400.03014.16
5.3.70.4170.03314.02
5.3.60.4030.03314.07
5.3.50.4000.03314.11
5.3.40.3270.03314.10
5.3.30.3400.03313.82
5.3.20.3400.03013.58
5.3.10.3200.04013.71
5.3.00.2230.03713.68
5.2.170.3200.03311.21
5.2.160.3400.03711.30
5.2.150.2770.03011.15
5.2.140.1970.03011.11
5.2.130.2970.02711.05
5.2.120.2870.03011.16
5.2.110.2370.02711.11
5.2.100.1800.03011.26
5.2.90.1630.02011.26
5.2.80.2530.03011.09
5.2.70.2170.03311.15
5.2.60.2130.03010.97
5.2.50.1970.03011.04
5.2.40.1300.02310.91
5.2.30.1700.03011.04
5.2.20.1970.02710.92
5.2.10.1500.03010.90
5.2.00.1030.03010.76
5.1.60.1470.02310.02
5.1.50.1830.02310.00
5.1.40.2430.0179.99
5.1.30.2630.02710.40
5.1.20.2430.02310.27
5.1.10.1730.01710.11
5.1.00.3230.01710.04
5.0.50.1570.0208.45
5.0.40.1170.0208.57
5.0.30.1370.0338.27
5.0.20.0970.0238.11
5.0.10.1430.0238.14
5.0.00.1370.0308.22
4.4.90.0400.0176.01
4.4.80.0370.0176.01
4.4.70.1200.0176.01
4.4.60.1300.0136.01
4.4.50.1430.0176.01
4.4.40.0830.0206.01
4.4.30.1130.0136.01
4.4.20.0500.0136.01
4.4.10.1500.0206.01
4.4.00.1430.0306.01
4.3.110.1370.0106.01
4.3.100.1030.0136.01
4.3.90.1170.0136.01
4.3.80.1170.0336.01
4.3.70.1300.0176.01
4.3.60.1130.0176.01
4.3.50.1230.0136.01
4.3.40.1370.0276.01
4.3.30.0770.0106.01
4.3.20.0730.0176.01
4.3.10.0970.0236.01
4.3.00.0770.0176.01

preferences:
42.74 ms | 401 KiB | 5 Q