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; echo $$lName[$key]; } 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.60.0070.00718.68
8.3.50.0080.01021.14
8.3.40.0090.00618.92
8.3.30.0100.00718.87
8.3.20.0050.00220.26
8.3.10.0040.00421.97
8.3.00.0030.00522.45
8.2.180.0130.00316.50
8.2.170.0110.00322.96
8.2.160.0170.00019.07
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0060.00326.16
8.2.120.0050.00319.36
8.2.110.0050.00522.07
8.2.100.0090.00317.99
8.2.90.0030.00619.21
8.2.80.0080.00018.04
8.2.70.0040.00417.50
8.2.60.0080.00018.05
8.2.50.0050.00318.07
8.2.40.0040.00418.34
8.2.30.0030.00518.09
8.2.20.0000.00717.76
8.2.10.0040.00417.68
8.2.00.0000.00817.80
8.1.280.0070.00725.92
8.1.270.0080.00022.19
8.1.260.0040.00426.35
8.1.250.0020.00528.09
8.1.240.0030.00623.79
8.1.230.0030.00719.02
8.1.220.0060.00317.74
8.1.210.0080.00018.77
8.1.200.0030.00617.38
8.1.190.0030.00517.63
8.1.180.0040.00418.61
8.1.170.0040.00418.66
8.1.160.0040.00422.04
8.1.150.0040.00418.64
8.1.140.0040.00417.44
8.1.130.0000.00717.82
8.1.120.0040.00417.45
8.1.110.0030.00617.46
8.1.100.0070.00017.48
8.1.90.0070.00017.52
8.1.80.0040.00417.53
8.1.70.0070.00017.41
8.1.60.0060.00317.42
8.1.50.0000.00917.41
8.1.40.0050.00317.57
8.1.30.0040.00417.54
8.1.20.0030.00517.70
8.1.10.0020.00517.44
8.1.00.0040.00417.48
8.0.300.0040.00418.77
8.0.290.0000.00717.16
8.0.280.0030.00318.42
8.0.270.0000.00717.14
8.0.260.0030.00516.83
8.0.250.0030.00316.97
8.0.240.0040.00417.01
8.0.230.0030.00316.94
8.0.220.0040.00416.97
8.0.210.0040.00316.90
8.0.200.0000.00717.05
8.0.190.0050.00216.89
8.0.180.0070.00017.01
8.0.170.0050.00216.98
8.0.160.0040.00416.96
8.0.150.0000.00816.80
8.0.140.0040.00416.89
8.0.130.0000.00613.33
8.0.120.0040.00416.91
8.0.110.0070.00016.78
8.0.100.0040.00416.82
8.0.90.0040.00416.80
8.0.80.0060.00916.92
8.0.70.0040.00416.98
8.0.60.0040.00417.01
8.0.50.0000.00816.82
8.0.30.0080.01017.01
8.0.20.0090.01017.40
8.0.10.0040.00416.92
8.0.00.0090.01116.81
7.4.330.0030.00315.00
7.4.320.0030.00316.41
7.4.300.0030.00316.60
7.4.290.0050.00316.57
7.4.280.0000.00716.52
7.4.270.0000.00816.51
7.4.260.0080.00016.46
7.4.250.0070.00016.36
7.4.240.0020.00516.50
7.4.230.0070.00016.48
7.4.220.0110.01416.40
7.4.210.0120.00416.56
7.4.200.0000.00716.51
7.4.190.0000.00716.76
7.4.160.0130.00316.72
7.4.150.0060.01117.40
7.4.140.0150.00617.86
7.4.130.0030.01316.46
7.4.120.0060.01116.62
7.4.110.0070.01016.61
7.4.100.0070.01616.69
7.4.90.0160.00716.49
7.4.80.0030.01419.39
7.4.70.0100.00716.43
7.4.60.0030.01716.61
7.4.50.0050.00316.45
7.4.40.0100.00322.77
7.4.30.0100.01416.57
7.4.10.0080.00814.83
7.4.00.0090.00815.06
7.3.330.0000.00713.52
7.3.320.0030.00313.38
7.3.310.0030.00316.18
7.3.300.0050.00216.34
7.3.290.0030.01216.34
7.3.280.0090.00816.34
7.3.270.0170.00417.40
7.3.260.0140.00716.63
7.3.250.0090.00916.63
7.3.240.0120.00916.59
7.3.230.0090.00916.39
7.3.210.0030.01316.61
7.3.200.0030.01319.39
7.3.190.0180.00316.50
7.3.180.0070.01016.54
7.3.170.0100.00616.41
7.3.160.0150.00416.45
7.3.130.0100.00715.14
7.3.120.0050.01114.82
7.3.110.0060.01114.79
7.3.100.0030.01114.88
7.3.90.0050.00814.82
7.3.80.0060.00614.89
7.3.70.0070.00514.79
7.3.60.0040.00814.81
7.3.50.0080.00614.81
7.3.40.0060.00614.76
7.3.30.0050.00814.75
7.3.20.0080.00616.67
7.3.10.0060.00716.59
7.3.00.0060.00716.67
7.2.330.0200.00016.74
7.2.320.0160.00316.85
7.2.310.0130.00916.68
7.2.300.0100.00716.87
7.2.290.0070.01116.65
7.2.260.0110.00715.00
7.2.250.0080.00915.07
7.2.240.0080.00914.99
7.2.230.0070.00915.07
7.2.220.0050.00914.94
7.2.210.0030.01114.95
7.2.200.0050.00914.96
7.2.190.0050.00815.06
7.2.180.0030.01015.10
7.2.170.0070.00815.16
7.2.160.0000.01315.01
7.2.150.0100.00317.04
7.2.140.0030.00616.98
7.2.130.0080.00617.05
7.2.120.0070.00516.96
7.2.110.0030.00816.86
7.2.100.0090.00316.90
7.2.90.0070.00716.94
7.2.80.0070.00916.88
7.2.70.0030.01116.96
7.2.60.0080.00516.76
7.2.50.0050.01216.87
7.2.40.0060.00916.75
7.2.30.0070.00916.82
7.2.20.0090.00617.02
7.2.10.0060.00616.93
7.2.00.0060.00917.72
7.1.330.0040.01016.01
7.1.320.0070.00515.88
7.1.310.0050.00715.85
7.1.300.0090.00315.66
7.1.290.0060.00715.71
7.1.280.0040.01115.70
7.1.270.0040.00815.86
7.1.260.0070.00515.78
7.1.250.0080.00515.77
7.1.240.0020.00815.77
7.1.230.0040.00915.62
7.1.220.0050.00615.80
7.1.210.0080.00815.64
7.1.200.0070.00715.79
7.1.190.0060.00615.55
7.1.180.0110.00315.93
7.1.170.0090.00615.89
7.1.160.0050.00615.79
7.1.150.0060.00615.73
7.1.140.0070.00615.72
7.1.130.0080.00415.87
7.1.120.0030.01115.79
7.1.110.0100.00615.85
7.1.100.0060.00916.66
7.1.90.0040.00715.67
7.1.80.0060.00415.77
7.1.70.0080.00616.07
7.1.60.0050.01217.18
7.1.50.0060.00916.17
7.1.40.0030.00815.67
7.1.30.0050.00815.65
7.1.20.0080.00615.73
7.1.10.0050.00515.61
7.1.00.0020.02317.97
7.0.330.0000.01215.45
7.0.320.0030.00815.25
7.0.310.0010.01015.35
7.0.300.0080.00715.51
7.0.290.0110.00315.49
7.0.280.0110.00315.33
7.0.270.0060.00315.30
7.0.260.0040.00415.32
7.0.250.0030.01015.51
7.0.240.0120.00215.47
7.0.230.0060.01015.33
7.0.220.0070.00815.53
7.0.210.0090.00315.39
7.0.200.0020.01115.96
7.0.190.0060.00715.54
7.0.180.0060.00715.47
7.0.170.0060.00615.35
7.0.160.0000.01215.11
7.0.150.0040.01115.53
7.0.140.0070.02817.58
7.0.130.0050.00515.37
7.0.120.0040.00615.23
7.0.110.0040.00915.19
7.0.100.0050.00915.32
7.0.90.0070.00115.37
7.0.80.0080.00515.45
7.0.70.0020.01115.46
7.0.60.0030.01916.91
7.0.50.0080.03116.33
7.0.40.0060.03115.63
7.0.30.0080.02115.72
7.0.20.0110.03315.69
7.0.10.0070.01915.65
7.0.00.0100.02915.71
5.6.400.0080.00614.21
5.6.390.0060.01214.44
5.6.380.0050.01114.52
5.6.370.0100.00314.64
5.6.360.0070.00914.51
5.6.350.0050.00614.13
5.6.340.0070.00514.37
5.6.330.0060.00814.18
5.6.320.0070.00914.42
5.6.310.0040.01114.07
5.6.300.0040.00414.19
5.6.290.0050.00814.49
5.6.280.0030.00814.52
5.6.270.0020.01214.35
5.6.260.0050.01014.63
5.6.250.0040.00914.36
5.6.240.0030.01114.43
5.6.230.0100.00214.42
5.6.220.0050.00914.30
5.6.210.0060.03016.36
5.6.200.0070.03215.71
5.6.190.0030.03716.45
5.6.180.0170.01616.31
5.6.170.0080.01716.34
5.6.160.0060.03516.33
5.6.150.0110.03015.53
5.6.140.0050.02315.54
5.6.130.0050.03415.78
5.6.120.0050.02416.65
5.6.110.0070.03016.54
5.6.100.0080.01516.50
5.6.90.0080.03016.61
5.6.80.0040.03516.22
5.6.70.0050.00514.09
5.6.60.0050.00514.42
5.6.50.0050.00314.43
5.6.40.0030.01114.14
5.6.30.0100.00514.23
5.6.20.0030.00714.25
5.6.10.0050.00814.33
5.6.00.0080.00814.29
5.5.380.0030.00912.72
5.5.370.0060.00612.66
5.5.360.0040.00612.76
5.5.350.0090.01615.29
5.5.340.0040.01914.45
5.5.330.0050.02115.38
5.5.320.0120.02815.19
5.5.310.0120.03115.24
5.5.300.0080.02914.71
5.5.290.0030.02514.61
5.5.280.0080.03115.50
5.5.270.0040.01915.37
5.5.260.0050.03515.29
5.5.250.0110.02515.37
5.5.240.0080.02315.16
5.5.230.0030.00612.72
5.5.220.0040.00812.64
5.5.210.0040.00712.65
5.5.200.0050.00912.97
5.5.190.0090.00612.83
5.5.180.0040.00712.48
5.5.170.0030.00812.61
5.5.160.0060.00612.48
5.5.150.0050.00312.76
5.5.140.0030.00912.80
5.5.130.0100.00312.53
5.5.120.0050.00712.49
5.5.110.0030.00912.65
5.5.100.0020.00912.70
5.5.90.0030.00512.78
5.5.80.0060.00512.84
5.5.70.0030.00812.53
5.5.60.0090.00112.79
5.5.50.0050.00412.75
5.5.40.0020.00712.80
5.5.30.0030.00912.86
5.5.20.0080.00312.86
5.5.10.0050.00212.86
5.5.00.0050.00812.64
5.4.450.0320.02314.71
5.4.440.0080.03014.54
5.4.430.0050.02414.61
5.4.420.0050.02214.56
5.4.410.0060.02214.35
5.4.400.0070.01914.34
5.4.390.0080.01914.28
5.4.380.0080.01914.23
5.4.370.0080.02114.26
5.4.360.0070.02414.30
5.4.350.0050.02414.32
5.4.340.0080.02114.32
5.4.330.0040.00611.94
5.4.320.0080.01412.13
5.4.310.0050.01512.13
5.4.300.0040.01812.29
5.4.290.0040.01812.13
5.4.280.0050.01512.24
5.4.270.0060.01712.26
5.4.260.0060.02214.30
5.4.250.0040.02614.37
5.4.240.0030.02614.42
5.4.230.0060.02014.36
5.4.220.0050.02114.27
5.4.210.0040.02814.22
5.4.200.0020.02914.28
5.4.190.0030.02014.31
5.4.180.0020.02414.32
5.4.170.0070.02114.27
5.4.160.0060.02014.36
5.4.150.0070.02614.31
5.4.140.0050.02113.57
5.4.130.0010.02213.55
5.4.120.0030.02013.46
5.4.110.0040.01913.53
5.4.100.0020.02713.44
5.4.90.0050.01813.53
5.4.80.0070.01713.61
5.4.70.0040.02013.43
5.4.60.0020.02813.43
5.4.50.0040.02113.59
5.4.40.0040.01913.55
5.4.30.0080.01413.50
5.4.20.0010.02513.44
5.4.10.0020.02013.65
5.4.00.0090.01813.29
5.3.290.0020.01812.12
5.3.280.0050.02512.76
5.3.270.0050.02412.82
5.3.260.0030.02212.79
5.3.250.0050.01812.82
5.3.240.0010.02112.70
5.3.230.0020.02912.71
5.3.220.0020.02212.72
5.3.210.0030.02312.67
5.3.200.0060.02112.70
5.3.190.0060.01712.75
5.3.180.0050.01812.79
5.3.170.0020.02212.71
5.3.160.0040.02012.82
5.3.150.0050.02612.73
5.3.140.0070.02612.69
5.3.130.0030.02012.76
5.3.120.0040.02112.74
5.3.110.0040.02312.68
5.3.100.0030.02012.60
5.3.90.0070.02012.52
5.3.80.0040.01912.54
5.3.70.0050.01812.53
5.3.60.0040.02012.61
5.3.50.0040.02012.49
5.3.40.0040.02012.51
5.3.30.0050.02012.55
5.3.20.0080.02212.40
5.3.10.0080.01512.40
5.3.00.0040.02412.38
5.2.170.0060.03010.26
5.2.160.0030.02410.42
5.2.150.0100.02510.32
5.2.140.0070.02410.33
5.2.130.0030.02310.26
5.2.120.0050.02810.30
5.2.110.0070.02710.21
5.2.100.0030.02310.42
5.2.90.0070.02010.23
5.2.80.0030.02910.16
5.2.70.0050.02210.24
5.2.60.0050.02810.33
5.2.50.0020.02410.33
5.2.40.0050.02210.22
5.2.30.0070.02510.18
5.2.20.0030.02910.23
5.2.10.0020.02410.18
5.2.00.0050.02310.06
5.1.60.0040.0209.75
5.1.50.0020.0269.73
5.1.40.0060.0219.74
5.1.30.0020.0209.82
5.1.20.0020.0219.92
5.1.10.0000.0239.76
5.1.00.0020.0209.74
5.0.50.0050.0159.24
5.0.40.0030.0159.24
5.0.30.0050.0299.24
5.0.20.0030.0159.24
5.0.10.0070.0189.24
5.0.00.0030.0229.24
4.4.90.0000.0189.24
4.4.80.0020.0129.24
4.4.70.0020.0179.24
4.4.60.0050.0129.24
4.4.50.0030.0159.24
4.4.40.0020.0189.24
4.4.30.0020.0129.24
4.4.20.0070.0089.24
4.4.10.0030.0159.24
4.4.00.0000.0209.24
4.3.110.0000.0149.24
4.3.100.0020.0139.24
4.3.90.0040.0139.24
4.3.80.0020.0209.24
4.3.70.0000.0139.24
4.3.60.0020.0139.24
4.3.50.0010.0149.24
4.3.40.0000.0199.24
4.3.30.0020.0129.24
4.3.20.0020.0139.24
4.3.10.0040.0109.24
4.3.00.0050.0178.09

preferences:
63.24 ms | 401 KiB | 5 Q