3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( array("url" => "http://google.com", "priority" => 2), array("url" => "http://facebook.com", "priority" => 2), array("url" => "http://youtube.com", "priority" => 2), array("url" => "http://stackoverflow.com", "priority" => 1), array("url" => "http://kickass.to", "priority" => 1), array("url" => "http://twitter.com", "priority" => 1), array("url" => "http://example.com", "priority" => 1), ); // Recreate another array where we have multiple occurence of the same value (nb_of_occurence = priority) $listOfUrl = array(); foreach ($arr as $url) { $nbOfOccurence = $url['priority']; for($i = 0 ; $i < $nbOfOccurence ; $i++) { $listOfUrl[] = $url['url']; } } echo '<pre>'; die(print_r($listOfUrl));

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.0150.00618.43
8.3.50.0050.01021.27
8.3.40.0150.00018.98
8.3.30.0040.01119.09
8.3.20.0070.00020.29
8.3.10.0080.00021.98
8.3.00.0060.00320.57
8.2.180.0190.00016.50
8.2.170.0070.01422.96
8.2.160.0150.00019.16
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0040.01426.16
8.2.120.0090.00019.14
8.2.110.0060.00320.39
8.2.100.0000.01017.84
8.2.90.0040.00419.36
8.2.80.0050.00317.97
8.2.70.0080.00017.63
8.2.60.0000.00817.91
8.2.50.0040.00418.10
8.2.40.0000.00820.50
8.2.30.0050.00319.25
8.2.20.0040.00417.84
8.2.10.0060.00317.68
8.2.00.0040.00417.79
8.1.280.0100.00725.92
8.1.270.0040.00422.14
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0030.00623.91
8.1.230.0130.00019.00
8.1.220.0030.00617.88
8.1.210.0050.00318.77
8.1.200.0030.00617.48
8.1.190.0060.00317.36
8.1.180.0030.00618.10
8.1.170.0060.00318.51
8.1.160.0080.00018.77
8.1.150.0070.00020.19
8.1.140.0060.00317.41
8.1.130.0030.00317.74
8.1.120.0000.00717.37
8.1.110.0000.01017.36
8.1.100.0040.00417.50
8.1.90.0000.00717.46
8.1.80.0000.00717.51
8.1.70.0050.00217.47
8.1.60.0060.00317.47
8.1.50.0000.00717.57
8.1.40.0030.00617.51
8.1.30.0020.00517.68
8.1.20.0030.00517.64
8.1.10.0040.00417.47
8.1.00.0030.00517.46
8.0.300.0030.00618.77
8.0.290.0030.00616.75
8.0.280.0030.00318.44
8.0.270.0040.00417.16
8.0.260.0000.00616.98
8.0.250.0030.00317.02
8.0.240.0030.00317.02
8.0.230.0030.00317.05
8.0.220.0040.00416.93
8.0.210.0070.00016.92
8.0.200.0040.00417.02
8.0.190.0080.00017.02
8.0.180.0030.00516.95
8.0.170.0040.00416.97
8.0.160.0050.00316.90
8.0.150.0000.00716.90
8.0.140.0070.00016.94
8.0.130.0050.00013.39
8.0.120.0040.00416.87
8.0.110.0070.00016.87
8.0.100.0000.00716.82
8.0.90.0050.00216.86
8.0.80.0120.00416.90
8.0.70.0030.00416.80
8.0.60.0040.00416.96
8.0.50.0050.00216.95
8.0.30.0110.00817.03
8.0.20.0080.01017.40
8.0.10.0040.00417.14
8.0.00.0080.01316.87
7.4.330.0050.00015.09
7.4.320.0000.00616.46
7.4.300.0030.00316.57
7.4.290.0050.00316.57
7.4.280.0070.00016.48
7.4.270.0040.00416.52
7.4.260.0040.00416.35
7.4.250.0040.00416.51
7.4.240.0020.00516.47
7.4.230.0000.00616.25
7.4.220.0110.00716.42
7.4.210.0100.00616.58
7.4.200.0000.00716.41
7.4.190.0000.00716.47
7.4.160.0060.00916.59
7.4.150.0070.01117.40
7.4.140.0130.00617.86
7.4.130.0090.00816.57
7.4.120.0080.01016.57
7.4.110.0120.00816.43
7.4.100.0090.00816.39
7.4.90.0130.00316.54
7.4.80.0140.00619.39
7.4.70.0100.00716.38
7.4.60.0140.00316.50
7.4.50.0030.00516.57
7.4.40.0120.00222.77
7.4.30.0120.00416.59
7.4.00.0130.00314.93
7.3.330.0050.00013.14
7.3.320.0050.00013.10
7.3.310.0040.00416.40
7.3.300.0000.00716.38
7.3.290.0030.01016.33
7.3.280.0080.00816.34
7.3.270.0140.00517.40
7.3.260.0040.01316.40
7.3.250.0110.01016.48
7.3.240.0120.00816.53
7.3.230.0060.01516.51
7.3.210.0110.00616.30
7.3.200.0080.00916.45
7.3.190.0120.00616.55
7.3.180.0080.01216.56
7.3.170.0030.01316.55
7.3.160.0030.01216.45
7.3.120.0040.01214.85
7.2.330.0090.00916.84
7.2.320.0110.00816.58
7.2.310.0120.00916.73
7.2.300.0060.01516.78
7.2.290.0130.00316.57
7.2.60.0070.00716.92
7.1.200.0070.00415.88
7.1.70.0000.00817.20
7.1.60.0030.01219.82
7.1.50.0130.01017.05
7.1.00.0000.08022.24
7.0.200.0030.00716.89
7.0.140.0070.07022.07
7.0.60.0070.04320.04
7.0.50.0030.06717.83
7.0.40.0000.05320.26
7.0.30.0270.06020.26
7.0.20.0330.07020.06
7.0.10.0200.04720.27
7.0.00.0100.04320.25
5.6.280.0030.07321.09
5.6.210.0070.06020.54
5.6.200.0070.04318.16
5.6.190.0030.09020.50
5.6.180.4370.03020.64
5.6.170.0230.04320.71
5.6.160.0070.04020.48
5.6.150.0100.06718.15
5.6.140.0030.04018.18
5.6.130.0200.03318.18
5.6.120.0070.08721.09
5.6.110.0100.07721.13
5.6.100.0100.06020.99
5.6.90.0130.05721.02
5.6.80.0130.03020.53
5.6.70.0230.07320.52
5.5.350.0230.07320.42
5.5.340.0030.05018.09
5.5.330.0000.06020.37
5.5.320.0170.07020.19
5.5.310.0300.08320.27
5.5.300.0030.04017.95
5.5.290.0070.08017.95
5.5.280.0100.07320.98
5.5.270.0030.06720.67
5.5.260.0100.07720.95
5.5.250.0000.04320.66
5.5.240.0170.07020.11
5.4.450.4130.04319.49
5.4.440.0100.04019.49
5.4.430.1630.04719.54
5.4.420.4300.04019.55
5.4.410.4730.04719.45
5.4.400.4500.04019.22
5.4.390.0070.07318.96
5.4.380.5600.03018.96
5.4.370.4300.04019.23
5.4.360.3230.04018.96
5.4.350.3730.04319.04
5.4.340.3830.03319.15
5.4.320.0000.05019.12
5.4.310.0170.03718.95
5.4.300.4830.04318.98
5.4.290.3870.04019.16
5.4.280.4630.03719.16
5.4.270.4330.03719.12
5.4.260.4100.03718.94
5.4.250.4700.04018.94
5.4.240.4730.03719.22
5.4.230.4230.03319.15
5.4.220.4870.03719.05
5.4.210.4600.04018.93
5.4.200.4400.04018.94
5.4.190.4070.03719.05
5.4.180.4000.03719.19
5.4.170.4770.04018.99
5.4.160.4600.04319.18
5.4.150.4200.03719.10
5.4.140.4430.03716.51
5.4.130.3530.03716.46
5.4.120.3630.03016.39
5.4.110.3700.04016.23
5.4.100.2370.03716.52
5.4.90.2170.03716.52
5.4.80.3330.03716.50
5.4.70.2830.03716.43
5.4.60.2470.03716.20
5.4.50.3530.04016.52
5.4.40.3800.03716.32
5.4.30.4070.04016.60
5.4.20.3230.03016.62
5.4.10.3970.03716.47
5.4.00.4230.03315.89
5.3.290.0100.03314.73
5.3.280.5030.03714.64
5.3.270.4630.04314.62
5.3.260.4730.04014.66
5.3.250.4300.03314.76
5.3.240.3430.03314.64
5.3.230.3600.04014.60
5.3.220.4000.03314.56
5.3.210.4370.03314.57
5.3.200.2030.03714.58
5.3.190.2470.03314.64
5.3.180.2430.03714.59
5.3.170.3670.04014.54
5.3.160.2730.04314.62
5.3.150.3170.04014.61
5.3.140.3130.04014.56
5.3.130.3100.04014.54
5.3.120.2600.03014.55
5.3.110.3700.04014.43
5.3.100.4030.03014.03
5.3.90.4400.03314.02
5.3.80.4600.03314.03
5.3.70.3900.03314.02
5.3.60.4900.02714.07
5.3.50.4870.03713.86
5.3.40.4130.03714.03
5.3.30.4430.04013.96
5.3.20.4070.03713.72
5.3.10.4670.04013.70
5.3.00.4200.04013.55
5.2.170.4200.02711.07
5.2.160.4200.03311.22
5.2.150.4270.02711.10
5.2.140.3430.03011.17
5.2.130.3870.03011.16
5.2.120.4130.03011.27
5.2.110.4200.02711.11
5.2.100.3830.02311.26
5.2.90.4170.03011.18
5.2.80.4000.03311.15
5.2.70.4230.03311.25
5.2.60.4270.03011.12
5.2.50.4070.02711.07
5.2.40.3930.03011.16
5.2.30.3430.02711.13
5.2.20.3530.02711.01
5.2.10.3470.02710.84
5.2.00.3400.02710.86
5.1.60.3470.02310.01
5.1.50.3430.0309.90
5.1.40.3230.0239.97
5.1.30.3500.02710.34
5.1.20.3330.02710.36
5.1.10.3070.03010.05
5.1.00.3270.03010.11
5.0.50.1730.0238.61
5.0.40.1630.0178.41
5.0.30.1270.0308.24
5.0.20.1630.0208.11
5.0.10.1570.0208.31
5.0.00.1570.0308.20
4.4.90.1730.0135.89
4.4.80.1930.0135.83
4.4.70.1830.0175.87
4.4.60.1900.0235.82
4.4.50.1930.0105.89
4.4.40.1700.0275.78
4.4.30.1930.0135.83
4.4.20.1930.0175.87
4.4.10.1700.0175.86
4.4.00.1870.0275.86
4.3.110.1670.0175.75
4.3.100.1700.0175.75
4.3.90.1570.0175.75
4.3.80.1930.0275.73
4.3.70.1930.0135.78
4.3.60.1730.0175.75
4.3.50.1630.0135.80
4.3.40.1870.0235.76
4.3.30.1070.0205.06
4.3.20.1070.0235.06
4.3.10.0930.0205.06
4.3.00.0600.0205.06

preferences:
51.97 ms | 401 KiB | 5 Q