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: " . $$lName[$i]; } print_r($lName); }

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.40.0110.00418.66
8.3.30.0140.00319.21
8.3.20.0030.00620.16
8.3.10.0000.00822.09
8.3.00.0000.00820.38
8.2.170.0100.00322.96
8.2.160.0110.00319.34
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00926.16
8.2.120.0080.00019.23
8.2.110.0060.00320.55
8.2.100.0040.00818.22
8.2.90.0030.00619.40
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0040.00417.91
8.2.50.0050.00318.07
8.2.40.0030.00618.22
8.2.30.0050.00218.21
8.2.20.0040.00417.59
8.2.10.0070.00017.76
8.2.00.0050.00317.62
8.1.270.0000.00722.21
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0030.00623.82
8.1.230.0070.00418.75
8.1.220.0060.00317.91
8.1.210.0000.00818.77
8.1.200.0060.00317.47
8.1.190.0040.00417.53
8.1.180.0000.00718.82
8.1.170.0000.00918.51
8.1.160.0040.00422.20
8.1.150.0040.00418.51
8.1.140.0030.00617.50
8.1.130.0030.00517.74
8.1.120.0000.00717.51
8.1.110.0040.00417.47
8.1.100.0000.00817.38
8.1.90.0070.00017.34
8.1.80.0040.00417.41
8.1.70.0030.00317.46
8.1.60.0030.00617.46
8.1.50.0000.00817.40
8.1.40.0050.00217.50
8.1.30.0080.00017.63
8.1.20.0060.00317.66
8.1.10.0000.00817.43
8.1.00.0060.00317.39
8.0.300.0040.00418.77
8.0.290.0000.00717.16
8.0.280.0000.00718.44
8.0.270.0030.00317.26
8.0.260.0030.00318.39
8.0.250.0030.00316.96
8.0.240.0070.00016.99
8.0.230.0000.00716.86
8.0.220.0000.00716.86
8.0.210.0040.00416.79
8.0.200.0000.00616.94
8.0.190.0000.00816.84
8.0.180.0050.00316.87
8.0.170.0000.00716.85
8.0.160.0030.00616.92
8.0.150.0060.00316.74
8.0.140.0030.00316.89
8.0.130.0050.00013.31
8.0.120.0000.00816.89
8.0.110.0070.00016.78
8.0.100.0040.00416.77
8.0.90.0040.00416.84
8.0.80.0120.00916.77
8.0.70.0040.00416.92
8.0.60.0040.00416.78
8.0.50.0040.00416.97
8.0.30.0110.00717.16
8.0.20.0120.00717.40
8.0.10.0000.00717.02
8.0.00.0120.00516.82
7.4.330.0020.00215.00
7.4.320.0060.00016.49
7.4.300.0030.00316.41
7.4.290.0070.00016.40
7.4.280.0040.00416.58
7.4.270.0030.00316.50
7.4.260.0050.00316.46
7.4.250.0000.00716.49
7.4.240.0050.00216.53
7.4.230.0040.00416.57
7.4.220.0080.00916.46
7.4.210.0090.00716.52
7.4.200.0030.00316.41
7.4.190.0000.00716.61
7.4.160.0090.00616.39
7.4.150.0120.00417.40
7.4.140.0090.00917.86
7.4.130.0070.01016.55
7.4.120.0060.00916.50
7.4.110.0040.01316.51
7.4.100.0090.01316.54
7.4.90.0030.01516.48
7.4.80.0200.00319.39
7.4.70.0140.00316.49
7.4.60.0100.00616.66
7.4.50.0040.00416.19
7.4.40.0100.00222.77
7.4.30.0070.01016.44
7.4.10.0070.00415.25
7.4.00.0050.01315.14
7.3.330.0050.00013.22
7.3.320.0030.00313.36
7.3.310.0000.00716.36
7.3.300.0050.00216.32
7.3.290.0070.00716.37
7.3.280.0070.01016.36
7.3.270.0100.00617.40
7.3.260.0100.00716.38
7.3.250.0070.00916.47
7.3.240.0100.00716.48
7.3.230.0040.01416.40
7.3.210.0050.01316.32
7.3.200.0110.00419.39
7.3.190.0030.01316.22
7.3.180.0060.00916.40
7.3.170.0060.01316.53
7.3.160.0110.00616.30
7.3.130.0130.00314.80
7.3.120.0060.00814.81
7.3.110.0070.01114.53
7.3.100.0070.01014.61
7.3.90.0110.00315.04
7.3.80.0040.00714.93
7.3.70.0090.00314.68
7.3.60.0000.01514.90
7.3.50.0000.01314.71
7.3.40.0110.00414.83
7.3.30.0030.00614.91
7.3.20.0060.00316.93
7.3.10.0040.00716.67
7.3.00.0030.00916.59
7.2.330.0070.01816.69
7.2.320.0130.00816.78
7.2.310.0130.00316.75
7.2.300.0060.01116.52
7.2.290.0100.00616.86
7.2.260.0000.01914.96
7.2.250.0110.00615.06
7.2.240.0060.01114.91
7.2.230.0100.01014.86
7.2.220.0090.01015.23
7.2.210.0070.00715.28
7.2.200.0030.01315.13
7.2.190.0040.01115.20
7.2.180.0090.00614.91
7.2.170.0060.00914.77
7.2.160.0060.00614.94
7.2.150.0000.01117.07
7.2.140.0070.00717.02
7.2.130.0040.01116.71
7.2.120.0070.01116.60
7.2.110.0000.01017.00
7.2.100.0030.01016.85
7.2.90.0070.00717.02
7.2.80.0050.00516.99
7.2.70.0060.00916.89
7.2.60.0030.01017.06
7.2.50.0060.00916.78
7.2.40.0060.00316.73
7.2.30.0130.00317.15
7.2.20.0100.00716.96
7.2.10.0030.00716.77
7.2.00.0030.01118.14
7.1.330.0130.00315.86
7.1.320.0030.01015.72
7.1.310.0030.01015.89
7.1.300.0030.01415.96
7.1.290.0100.00715.90
7.1.280.0000.00815.82
7.1.270.0000.01316.02
7.1.260.0030.00915.82
7.1.250.0060.01015.57
7.1.240.0040.00415.82
7.1.230.0080.00415.68
7.1.220.0110.00015.89
7.1.210.0040.00715.82
7.1.200.0080.00715.89
7.1.190.0040.00815.77
7.1.180.0070.00715.61
7.1.170.0030.01015.73
7.1.160.0060.00315.68
7.1.150.0030.00915.92
7.1.140.0030.00615.80
7.1.130.0040.01115.80
7.1.120.0070.00715.79
7.1.110.0060.00615.64
7.1.100.0060.00517.07
7.1.90.0040.01115.75
7.1.80.0030.00916.03
7.1.70.0060.00516.38
7.1.60.0080.01117.83
7.1.50.0120.00516.42
7.1.40.0040.00815.66
7.1.30.0070.00715.74
7.1.20.0070.00315.70
7.1.10.0130.00315.87
7.1.00.0050.03619.24
7.0.330.0060.00315.47
7.0.320.0040.00715.19
7.0.310.0120.00315.50
7.0.300.0100.00315.44
7.0.290.0030.00915.25
7.0.280.0000.01315.37
7.0.270.0090.00615.45
7.0.260.0070.00315.50
7.0.250.0000.01315.62
7.0.240.0120.00015.55
7.0.230.0110.00315.58
7.0.220.0040.01115.41
7.0.210.0030.00915.31
7.0.200.0030.00815.88
7.0.190.0030.00915.39
7.0.180.0000.01015.33
7.0.170.0090.00615.23
7.0.160.0000.01515.25
7.0.150.0040.00715.45
7.0.140.0030.04018.80
7.0.130.0070.00715.43
7.0.120.0080.00815.33
7.0.110.0040.00815.48
7.0.100.0030.00715.61
7.0.90.0070.00715.46
7.0.80.0070.00715.45
7.0.70.0080.00815.35
7.0.60.0150.02317.84
7.0.50.0030.02316.81
7.0.40.0080.04616.93
7.0.30.0200.03816.85
7.0.20.0170.04016.89
7.0.10.0100.02816.76
7.0.00.0030.04016.79
5.6.400.0000.00914.24
5.6.390.0110.00314.53
5.6.380.0030.00914.60
5.6.370.0090.00614.24
5.6.360.0130.00014.22
5.6.350.0080.00814.59
5.6.340.0070.00314.34
5.6.330.0140.00314.21
5.6.320.0070.00714.42
5.6.310.0000.01514.53
5.6.300.0080.00414.27
5.6.290.0120.00314.59
5.6.280.0050.04017.60
5.6.270.0060.00314.18
5.6.260.0070.00714.47
5.6.250.0040.01114.35
5.6.240.0030.01314.18
5.6.230.0000.00914.14
5.6.220.0060.00314.32
5.6.210.0120.03317.43
5.6.200.0080.04016.34
5.6.190.0040.03817.55
5.6.180.1650.02017.35
5.6.170.0160.03217.25
5.6.160.0100.04717.53
5.6.150.0050.03016.33
5.6.140.0060.02416.37
5.6.130.0050.04516.29
5.6.120.0100.04017.92
5.6.110.0080.03717.74
5.6.100.0130.04017.70
5.6.90.0050.02217.68
5.6.80.0050.02217.59
5.6.70.0050.03717.39
5.6.60.0080.00814.35
5.6.50.0030.00514.55
5.6.40.0060.01014.45
5.6.30.0030.01314.42
5.6.20.0090.00914.31
5.6.10.0080.00614.35
5.6.00.0000.00914.41
5.5.380.0060.00814.12
5.5.370.0030.00814.46
5.5.360.0110.00714.34
5.5.350.0040.03317.30
5.5.340.0030.02316.08
5.5.330.0010.02617.43
5.5.320.0200.03917.44
5.5.310.0120.02617.28
5.5.300.0020.04616.09
5.5.290.0070.02016.26
5.5.280.0080.02217.65
5.5.270.0050.03817.50
5.5.260.0080.04017.58
5.5.250.0120.03517.53
5.5.240.0080.04017.29
5.5.230.0060.00314.12
5.5.220.0080.00814.03
5.5.210.0030.01114.13
5.5.200.0060.01014.10
5.5.190.0090.00614.36
5.5.180.0110.00314.36
5.5.170.0060.00614.38
5.5.160.0070.00314.16
5.5.150.0080.00414.22
5.5.140.0030.00714.13
5.5.130.0040.01114.02
5.5.120.0130.00314.11
5.5.110.0030.01014.47
5.5.100.0080.00613.86
5.5.90.0070.00714.25
5.5.80.0040.00814.37
5.5.70.0030.01013.98
5.5.60.0110.00414.02
5.5.50.0090.00314.10
5.5.40.0000.01514.16
5.5.30.0090.00614.15
5.5.20.0080.00613.79
5.5.10.0060.00314.46
5.5.00.0000.01314.20
5.4.450.0380.03215.32
5.4.440.0370.03415.34
5.4.430.0400.03315.24
5.4.420.0050.03215.27
5.4.410.0350.03015.10
5.4.400.0220.03214.88
5.4.390.0180.03914.81
5.4.380.0100.04214.77
5.4.370.0130.02514.85
5.4.360.0120.02714.65
5.4.350.0080.02814.69
5.4.340.0100.03114.92
5.4.330.0070.00311.02
5.4.320.0030.02311.75
5.4.310.0070.02411.75
5.4.300.0070.02611.79
5.4.290.0080.02311.68
5.4.280.0030.02311.70
5.4.270.0020.02711.52
5.4.260.0060.02814.87
5.4.250.0030.03414.71
5.4.240.0040.03014.98
5.4.230.0040.03314.85
5.4.220.0060.03514.97
5.4.210.0070.02714.69
5.4.200.0030.03214.99
5.4.190.0050.03614.96
5.4.180.0020.03014.84
5.4.170.0030.03514.89
5.4.160.0070.03314.74
5.4.150.0030.03114.89
5.4.140.0070.03213.47
5.4.130.0070.02813.73
5.4.120.0050.02813.74
5.4.110.0050.03313.64
5.4.100.0020.04213.73
5.4.90.0090.03613.49
5.4.80.0110.02413.63
5.4.70.0130.03213.70
5.4.60.0080.03013.46
5.4.50.0070.03513.63
5.4.40.0030.03713.61
5.4.30.0070.02513.72
5.4.20.0030.03113.60
5.4.10.0100.03013.80
5.4.00.0050.02713.53
5.3.290.0060.02311.75
5.3.280.0090.02412.56
5.3.270.0030.03012.63
5.3.260.0100.03212.60
5.3.250.0070.03512.60
5.3.240.0030.03212.53
5.3.230.0050.03012.52
5.3.220.0050.03612.53
5.3.210.0020.03212.62
5.3.200.0030.03312.47
5.3.190.0070.02912.49
5.3.180.0030.04212.70
5.3.170.0050.03812.52
5.3.160.0080.03512.60
5.3.150.0080.02512.64
5.3.140.0050.03812.59
5.3.130.0060.03612.64
5.3.120.0090.03012.50
5.3.110.0030.03412.37
5.3.100.0080.03312.38
5.3.90.0070.02812.23
5.3.80.0030.02912.27
5.3.70.0040.03412.38
5.3.60.0030.02712.22
5.3.50.0070.02312.36
5.3.40.0100.02312.28
5.3.30.0030.02812.25
5.3.20.0010.03612.11
5.3.10.0070.02712.03
5.3.00.0020.03011.96
5.2.170.0070.04011.23
5.2.160.0070.05011.11
5.2.150.0030.04011.23
5.2.140.0000.04311.23
5.2.130.0000.04311.26
5.2.120.0030.04011.18
5.2.110.0030.04011.10
5.2.100.0000.04311.10
5.2.90.0030.04011.10
5.2.80.0070.06011.26
5.2.70.0130.03311.06
5.2.60.0000.04711.12
5.2.50.0000.04311.20
5.2.40.0070.03710.99
5.2.30.0030.04711.05
5.2.20.0070.04010.77
5.2.10.0070.03710.95
5.2.00.0070.03710.72
5.1.60.0070.04010.01
5.1.50.0000.04010.06
5.1.40.0100.03010.07
5.1.30.0030.03710.30
5.1.20.0030.05310.45
5.1.10.0000.05310.04
5.1.00.0100.04310.07
5.0.50.0000.0309.07
5.0.40.0030.0279.07
5.0.30.0000.0439.07
5.0.20.0030.0279.07
5.0.10.0000.0409.07
5.0.00.0000.0509.07
4.4.90.0000.0309.07
4.4.80.0030.0239.07
4.4.70.0100.0139.07
4.4.60.0030.0209.07
4.4.50.0070.0139.07
4.4.40.0030.0339.07
4.4.30.0000.0239.07
4.4.20.0100.0209.07
4.4.10.0030.0209.07
4.4.00.0000.0379.07
4.3.110.0030.0239.07
4.3.100.0070.0139.07
4.3.90.0030.0179.07
4.3.80.0000.0379.07
4.3.70.0000.0209.07
4.3.60.0000.0209.07
4.3.50.0070.0239.07
4.3.40.0000.0339.07
4.3.30.0000.0239.07
4.3.20.0000.0239.07
4.3.10.0000.0309.07
4.3.00.0000.0237.70

preferences:
41.57 ms | 400 KiB | 5 Q