3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = json_decode('[{"value": "2310", "label": "Root >> test" },{"value": "2314", "label": "Root >> TV >> test" }]', true); $result = []; foreach($x as $y) { $result[$y['value']] = $y['label']; } print_r($result);

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.0100.01018.20
8.3.50.0140.00018.17
8.3.40.0060.01019.02
8.3.30.0080.00818.66
8.3.20.0080.00019.29
8.3.10.0040.00423.66
8.3.00.0040.00420.62
8.2.180.0110.00716.50
8.2.170.0100.00318.89
8.2.160.0130.00622.96
8.2.150.0060.00324.18
8.2.140.0110.00324.66
8.2.130.0130.00719.83
8.2.120.0040.00426.35
8.2.110.0060.00319.33
8.2.100.0080.00317.84
8.2.90.0000.00817.88
8.2.80.0090.00017.97
8.2.70.0040.00418.05
8.2.60.0040.00418.03
8.2.50.0080.00018.10
8.2.40.0000.00819.33
8.2.30.0040.00419.29
8.2.20.0000.00718.11
8.2.10.0050.00218.04
8.2.00.0060.00317.72
8.1.280.0110.00425.92
8.1.270.0040.00420.69
8.1.260.0050.00326.35
8.1.250.0030.00628.09
8.1.240.0090.00022.40
8.1.230.0110.00022.13
8.1.220.0000.00817.77
8.1.210.0030.00618.77
8.1.200.0060.00317.35
8.1.190.0090.00017.13
8.1.180.0040.00418.10
8.1.170.0000.00718.59
8.1.160.0030.00518.89
8.1.150.0070.00018.82
8.1.140.0080.00022.12
8.1.130.0000.00720.13
8.1.120.0000.00717.45
8.1.110.0030.00517.47
8.1.100.0070.00017.47
8.1.90.0000.00717.46
8.1.80.0000.00817.36
8.1.70.0000.00817.42
8.1.60.0000.00817.51
8.1.50.0040.00417.53
8.1.40.0050.00217.48
8.1.30.0040.00417.60
8.1.20.0070.00017.60
8.1.10.0040.00417.50
8.1.00.0080.00017.48
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0040.00418.32
8.0.270.0000.00817.18
8.0.260.0000.00618.50
8.0.250.0040.00416.93
8.0.240.0040.00416.99
8.0.230.0000.00716.95
8.0.220.0030.00316.88
8.0.210.0000.00716.82
8.0.200.0080.00016.95
8.0.190.0000.00716.97
8.0.180.0000.00816.97
8.0.170.0030.00616.95
8.0.160.0000.00716.86
8.0.150.0050.00216.72
8.0.140.0030.00316.77
8.0.130.0030.00313.34
8.0.120.0030.00316.80
8.0.110.0040.00416.80
8.0.100.0000.00716.95
8.0.90.0000.00716.93
8.0.80.0100.00816.84
8.0.70.0000.00716.84
8.0.60.0080.00017.01
8.0.50.0000.00716.91
8.0.30.0090.00917.05
8.0.20.0050.01317.40
8.0.10.0040.00417.00
8.0.00.0140.00516.71
7.4.330.0050.00015.55
7.4.320.0040.00416.46
7.4.300.0000.00716.42
7.4.290.0030.00316.43
7.4.280.0030.00516.61
7.4.270.0000.00816.50
7.4.260.0000.00716.53
7.4.250.0040.00416.61
7.4.240.0000.00716.46
7.4.230.0070.00016.41
7.4.220.0050.00216.62
7.4.210.0090.00816.60
7.4.200.0000.00716.65
7.4.160.0130.00516.50
7.4.140.0120.00517.86
7.4.130.0120.00616.61
7.4.120.0100.00816.55
7.4.110.0140.01016.72
7.4.100.0120.00416.63
7.4.90.0070.01416.59
7.4.80.0160.01019.39
7.4.70.0120.00616.33
7.4.60.0070.01116.48
7.4.50.0090.00616.29
7.4.40.0110.00616.57
7.4.00.0070.01015.23
7.3.330.0020.00213.31
7.3.320.0060.00013.25
7.3.310.0030.00616.27
7.3.300.0000.00716.36
7.3.290.0000.00716.33
7.3.280.0120.00816.36
7.3.260.0150.00516.30
7.3.240.0090.00816.45
7.3.230.0070.01016.71
7.3.210.0000.01516.22
7.3.200.0100.00616.46
7.3.190.0120.00916.41
7.3.180.0060.01216.43
7.3.170.0180.00516.38
7.3.160.0120.00616.53
7.2.330.0070.01016.71
7.2.320.0160.00916.48
7.2.310.0060.01016.78
7.2.300.0080.00816.60
7.2.290.0090.00616.73
7.2.110.0150.00914.74
7.2.100.0220.00314.70
7.2.90.0140.01014.47
7.2.80.0150.00614.70
7.2.70.0180.00715.09
7.2.60.0130.00814.67
7.2.50.0180.00914.75
7.2.40.0130.00914.98
7.2.30.0140.00714.96
7.2.20.0250.00914.93
7.2.10.0180.00714.96
7.2.00.0100.01314.69
7.1.230.0220.00314.16
7.1.220.0160.00613.96
7.1.210.0150.00714.18
7.1.200.0100.01014.09
7.1.190.0130.00713.79
7.1.180.0110.01013.81
7.1.170.0110.00813.65
7.1.160.0150.00914.06
7.1.150.0230.00014.00
7.1.140.0250.00313.60
7.1.130.0100.01313.93
7.1.120.0130.00914.00
7.1.110.0210.01013.90
7.1.100.0260.01013.72
7.1.90.0230.00713.98
7.1.80.0220.00413.76
7.1.70.0160.00613.85
7.1.60.0290.01331.68
7.1.50.0360.00731.51
7.1.40.0380.00931.83
7.1.30.0340.01431.48
7.1.20.0430.00331.86
7.1.10.0190.01013.63
7.1.00.0170.00713.37
5.6.380.0100.00314.41

preferences:
66.66 ms | 400 KiB | 5 Q