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.0070.00718.55
8.3.50.0110.00521.14
8.3.40.0100.01018.70
8.3.30.0070.00719.21
8.3.20.0040.00420.21
8.3.10.0040.00421.92
8.3.00.0070.00020.82
8.2.180.0130.00316.36
8.2.170.0140.00722.96
8.2.160.0140.00019.19
8.2.150.0030.00624.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00319.36
8.2.110.0060.00322.19
8.2.100.0070.00418.22
8.2.90.0070.00019.39
8.2.80.0000.00818.03
8.2.70.0000.00817.75
8.2.60.0040.00418.05
8.2.50.0040.00418.07
8.2.40.0000.00818.34
8.2.30.0030.00618.02
8.2.20.0030.00617.76
8.2.10.0040.00417.73
8.2.00.0030.00617.80
8.1.280.0140.00925.92
8.1.270.0000.00822.05
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0000.00923.80
8.1.230.0030.00918.94
8.1.220.0000.00917.79
8.1.210.0000.00818.77
8.1.200.0000.00817.35
8.1.190.0050.00317.43
8.1.180.0060.00320.53
8.1.170.0000.00918.50
8.1.160.0040.00422.15
8.1.150.0050.00318.65
8.1.140.0060.00317.43
8.1.130.0070.00017.87
8.1.120.0070.00017.51
8.1.110.0070.00017.36
8.1.100.0000.00717.46
8.1.90.0040.00317.49
8.1.80.0070.00017.50
8.1.70.0070.00017.35
8.1.60.0070.00017.47
8.1.50.0000.00817.55
8.1.40.0040.00417.51
8.1.30.0000.00817.58
8.1.20.0000.00817.66
8.1.10.0030.00517.40
8.1.00.0040.00417.49
8.0.300.0000.00818.77
8.0.290.0050.00217.18
8.0.280.0040.00418.31
8.0.270.0030.00317.25
8.0.260.0060.00016.82
8.0.250.0000.00716.95
8.0.240.0050.00316.84
8.0.230.0040.00416.86
8.0.220.0000.00716.79
8.0.210.0050.00316.88
8.0.200.0040.00416.99
8.0.190.0050.00216.91
8.0.180.0040.00416.95
8.0.170.0050.00316.89
8.0.160.0000.00716.86
8.0.150.0050.00216.87
8.0.140.0000.00716.87
8.0.130.0060.00013.39
8.0.120.0040.00416.74
8.0.110.0080.00016.89
8.0.100.0030.00516.80
8.0.90.0080.00016.96
8.0.80.0090.00616.80
8.0.70.0030.00516.92
8.0.60.0040.00416.96
8.0.50.0050.00316.72
8.0.30.0120.00717.12
8.0.20.0100.00917.40
8.0.10.0070.00017.01
8.0.00.0100.01216.78
7.4.330.0020.00215.00
7.4.320.0030.00316.42
7.4.300.0070.00016.55
7.4.290.0000.00816.41
7.4.280.0040.00416.50
7.4.270.0070.00016.49
7.4.260.0030.00616.35
7.4.250.0050.00316.37
7.4.240.0030.00316.54
7.4.230.0070.00016.36
7.4.220.0030.01416.57
7.4.210.0070.01016.55
7.4.200.0000.00716.44
7.4.190.0030.00316.77
7.4.160.0080.00816.43
7.4.150.0100.00717.40
7.4.140.0120.00617.86
7.4.130.0120.00916.55
7.4.120.0100.00616.43
7.4.110.0110.01216.33
7.4.100.0090.00916.67
7.4.90.0100.00716.60
7.4.80.0130.00319.39
7.4.70.0060.01016.50
7.4.60.0110.00716.42
7.4.50.0040.00416.32
7.4.40.0090.00922.77
7.4.30.0130.00916.61
7.4.00.0000.01314.68
7.3.330.0060.00013.32
7.3.320.0050.00013.23
7.3.310.0000.00716.35
7.3.300.0030.00316.23
7.3.290.0100.01016.36
7.3.280.0090.00516.36
7.3.270.0140.00317.40
7.3.260.0100.00616.22
7.3.250.0090.00716.50
7.3.240.0090.00916.36
7.3.230.0110.01116.55
7.3.210.0070.01116.48
7.3.200.0120.00416.54
7.3.190.0110.01116.56
7.3.180.0120.00316.24
7.3.170.0060.00916.32
7.3.160.0100.00716.44
7.3.120.0090.00614.97
7.3.00.0060.00316.61
7.2.330.0150.00316.46
7.2.320.0120.00616.57
7.2.310.0090.01216.41
7.2.300.0070.01016.78
7.2.290.0180.00716.57
7.2.130.0040.01116.72
7.2.120.0080.00416.93
7.2.110.0070.00716.88
7.2.100.0000.01717.03
7.2.90.0110.00016.99
7.2.80.0070.00717.00
7.2.70.0030.00616.72
7.2.60.0080.00416.96
7.2.50.0030.00716.87
7.2.40.0000.01616.80
7.2.30.0000.01016.81
7.2.20.0070.01017.01
7.2.10.0070.00317.11
7.2.00.0080.00818.21
7.1.250.0090.00615.39
7.1.240.0060.00615.91
7.1.230.0090.00615.72
7.1.220.0090.00615.55
7.1.210.0060.00315.82
7.1.200.0030.00615.70
7.1.190.0070.00715.90
7.1.180.0080.00615.62
7.1.170.0000.01215.80
7.1.160.0040.01115.60
7.1.150.0030.00615.89
7.1.140.0070.01015.75
7.1.130.0040.00715.76
7.1.120.0090.00615.89
7.1.110.0060.00615.82
7.1.100.0020.00916.88
7.1.90.0070.00415.70
7.1.80.0000.01315.57
7.1.70.0020.00616.51
7.1.60.0030.01217.90
7.1.50.0040.00816.24
7.1.40.0060.00615.65
7.1.30.0030.00615.78
7.1.20.0030.00615.68
7.1.10.0060.00315.47
7.1.00.0020.03418.85
7.0.330.0000.01215.36
7.0.320.0090.00615.24
7.0.310.0000.00915.46
7.0.300.0030.00615.45
7.0.290.0040.00715.14
7.0.280.0060.00615.45
7.0.270.0000.01415.22
7.0.260.0030.01015.46
7.0.250.0070.00715.60
7.0.240.0060.00915.52
7.0.230.0080.00015.51
7.0.220.0070.00715.47
7.0.210.0100.00315.63
7.0.200.0070.00716.18
7.0.190.0070.01015.39
7.0.180.0040.01215.52
7.0.170.0100.00315.33
7.0.160.0000.01315.41
7.0.150.0070.00315.10
7.0.140.0070.03718.63
7.0.130.0040.00815.40
7.0.120.0040.00815.41
7.0.110.0030.00615.33
7.0.100.0050.04817.75
7.0.90.0030.04817.65
7.0.80.0010.02917.52
7.0.70.0080.04317.62
7.0.60.0070.04517.78
7.0.50.0290.04418.01
7.0.40.0030.04816.79
7.0.30.0140.03816.70
7.0.20.0080.03316.82
7.0.10.0040.04216.79
7.0.00.0060.04816.78
5.6.380.0070.00714.49
5.6.370.0030.00914.43
5.6.360.0000.01314.36
5.6.350.0100.00714.57
5.6.340.0060.00813.99
5.6.330.0070.00314.52
5.6.320.0000.00914.22
5.6.310.0070.00714.43
5.6.300.0040.00714.37
5.6.290.0030.00914.71
5.6.280.0040.00414.27
5.6.270.0060.00614.38
5.6.260.0000.01514.39
5.6.250.0030.03217.48
5.6.240.0050.03317.57
5.6.230.0070.04217.63
5.6.220.0070.03017.52
5.6.210.0090.04517.48
5.6.200.0030.04417.71
5.6.190.0110.03317.61
5.6.180.0050.04817.62
5.6.170.0050.04717.56
5.6.160.0070.04317.55
5.6.150.0070.04217.69
5.6.140.0120.02317.86
5.6.130.0040.04117.63
5.6.120.0080.04517.89
5.6.110.0100.03817.65
5.6.100.0130.03617.90
5.6.90.0120.03917.56
5.6.80.0080.04217.31
5.6.70.0110.03317.23
5.6.60.0050.04517.41
5.6.50.0090.04217.37
5.6.40.0070.04417.56
5.6.30.0080.04017.45
5.6.20.0100.03717.32
5.6.10.0050.04417.38
5.6.00.0080.04017.41
5.5.380.0080.04215.76
5.5.370.0070.04215.93
5.5.360.0110.03715.78
5.5.350.0030.04115.88
5.5.340.0050.04016.10
5.5.330.0050.04716.07
5.5.320.0080.04016.07
5.5.310.0120.04015.99
5.5.300.0050.03015.98
5.5.290.0030.04615.95
5.5.280.0080.03316.09
5.5.270.0070.04616.13
5.5.260.0110.03616.00
5.5.250.0050.04415.85
5.5.240.0050.04315.66
5.5.230.0050.03515.75
5.5.220.0070.04015.65
5.5.210.0020.04515.75
5.5.200.0030.04515.72
5.5.190.0090.03815.73
5.5.180.0020.03715.73
5.5.170.0040.00411.18
5.5.160.0040.04415.71
5.5.150.0080.04015.58
5.5.140.0140.02815.63
5.5.130.0110.03815.64
5.5.120.0070.03215.72
5.5.110.0090.03715.71
5.5.100.0040.04115.63
5.5.90.0080.03715.56
5.5.80.0000.03215.71
5.5.70.0080.04315.61
5.5.60.0080.02315.66
5.5.50.0080.03515.67
5.5.40.0090.03415.72
5.5.30.0070.04015.62
5.5.20.0070.02515.63
5.5.10.0040.03015.73
5.5.00.0080.04315.55
5.4.450.0050.03815.34
5.4.440.0110.03815.25
5.4.430.0070.04015.27
5.4.420.0050.04415.27
5.4.410.0070.03815.28
5.4.400.0040.04115.06
5.4.390.0030.04615.11
5.4.380.0100.03715.20
5.4.370.0030.04215.16
5.4.360.0110.02415.18
5.4.350.0100.03815.18
5.4.340.0020.04215.11
5.4.330.0000.00611.18
5.4.320.0050.03015.20
5.4.310.0080.03515.18
5.4.300.0050.04015.04
5.4.290.0050.04015.16
5.4.280.0100.04115.10
5.4.270.0080.03815.17
5.4.260.0000.03315.28
5.4.250.0050.03815.11
5.4.240.0090.04015.11
5.4.230.0070.03815.15
5.4.220.0100.03515.15
5.4.210.0100.03515.15
5.4.200.0110.03515.04
5.4.190.0050.04115.13
5.4.180.0080.03615.10
5.4.170.0000.04515.03
5.4.160.0030.04215.17
5.4.150.0050.03715.10
5.4.140.0120.02213.76
5.4.130.0100.03513.75
5.4.120.0080.03313.75
5.4.110.0100.03513.87
5.4.100.0100.01913.77
5.4.90.0110.03413.76
5.4.80.0020.04513.78
5.4.70.0070.03013.83
5.4.60.0070.04013.76
5.4.50.0110.03313.74
5.4.40.0070.03713.82
5.4.30.0050.03813.75
5.4.20.0040.03913.79
5.4.10.0030.03813.78
5.4.00.0030.04413.53
5.3.290.0070.03712.95
5.3.280.0060.03612.88
5.3.270.0020.04312.92
5.3.260.0030.04312.88
5.3.250.0070.03512.92
5.3.240.0050.03612.87
5.3.230.0100.03812.92
5.3.220.0050.04012.94
5.3.210.0040.02712.88
5.3.200.0040.04012.90
5.3.190.0050.03812.86
5.3.180.0070.03412.87
5.3.170.0110.03012.83
5.3.160.0110.03612.86
5.3.150.0090.03312.84
5.3.140.0080.03812.93
5.3.130.0030.04112.88
5.3.120.0020.04012.85
5.3.110.0030.03512.85
5.3.100.0050.04012.58
5.3.90.0050.03712.59
5.3.80.0020.03712.56
5.3.70.0070.03312.63
5.3.60.0050.04112.58
5.3.50.0090.02512.62
5.3.40.0070.03812.51
5.3.30.0060.03812.50
5.3.20.0030.03712.39
5.3.10.0050.04012.48
5.3.00.0060.02412.42
5.2.170.0080.03111.40
5.2.160.0030.02811.40
5.2.150.0070.03011.40
5.2.140.0030.03311.40
5.2.130.0030.03111.40
5.2.120.0060.01811.40
5.2.110.0050.03011.40
5.2.100.0030.03111.40
5.2.90.0040.03111.40
5.2.80.0070.03211.40
5.2.70.0050.02811.40
5.2.60.0070.02311.40
5.2.50.0050.03011.40
5.2.40.0030.02111.40
5.2.30.0050.02611.40
5.2.20.0070.03211.40
5.2.10.0070.01311.40
5.2.00.0070.01511.40
5.1.60.0000.02111.40
5.1.50.0060.02011.40
5.1.40.0020.01411.40
5.1.30.0050.01811.40
5.1.20.0050.01211.40
5.1.10.0010.02511.40
5.1.00.0020.01711.40
5.0.50.0010.01811.40
5.0.40.0020.01211.40
5.0.30.0040.01311.40
5.0.20.0030.01011.40
5.0.10.0020.01211.40
5.0.00.0000.01811.40
4.4.90.0020.01811.40
4.4.80.0020.01211.40
4.4.70.0040.01811.40
4.4.60.0010.02111.40
4.4.50.0050.01211.40
4.4.40.0020.01311.40
4.4.30.0000.01111.40
4.4.20.0020.01611.40
4.4.10.0000.01511.40
4.4.00.0010.01311.40
4.3.110.0030.00811.40
4.3.100.0000.01111.40
4.3.90.0020.00711.40
4.3.80.0000.02411.40
4.3.70.0050.01111.40
4.3.60.0020.01911.40
4.3.50.0050.01511.40
4.3.40.0030.02511.40
4.3.30.0020.01411.40
4.3.20.0020.00911.40
4.3.10.0020.01711.40
4.3.00.0020.01911.40

preferences:
45.36 ms | 401 KiB | 5 Q