3v4l.org

run code in 300+ PHP versions simultaneously
<?php $items = [ "3000mAh battery", "charges 1 smartphone", "input: 5W (5V, 1A) micro USB port", "output: Micro USB cable: 7.5W (5V, 1.5A)", "recharge time 3-4 hours", "includes Micro USB cable", "1-Year Limited Warranty" ]; $result = []; foreach ($items as $item) { $res = explode(':', $item); if (count($res) > 1) { $key = $res[0]; array_shift($res); $result[$key] = implode(':', $res); } elseif (is_numeric($item[0])) { $parts = (explode(' ', $item)); $key = array_pop($parts); $result[$key] = implode(' ', $parts); } elseif (ctype_alpha ($item[0])) { $parts = explode(' ', $item); $key = array_shift($parts); $result[$key] = implode(' ', $parts); } } 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.5.10.0110.00716.43
8.5.00.0110.01420.14
8.4.150.0020.00014.05
8.4.140.0120.00917.43
8.4.130.0110.01017.73
8.4.120.0130.00720.62
8.4.110.0150.00622.59
8.4.100.0080.00817.50
8.4.90.0130.00818.80
8.4.80.0090.01017.90
8.4.70.0110.01118.09
8.4.60.0100.01018.79
8.4.50.0110.00918.86
8.4.40.0100.01019.32
8.4.30.0140.00719.54
8.4.20.0100.00018.62
8.4.10.0080.01218.99
8.3.280.0130.00618.37
8.3.270.0120.00716.55
8.3.260.0100.01016.43
8.3.250.0100.00618.78
8.3.240.0130.00616.42
8.3.230.0050.00316.73
8.3.220.0110.00917.20
8.3.210.0030.00616.76
8.3.200.0030.00516.50
8.3.190.0100.00817.16
8.3.180.0120.00816.62
8.3.170.0130.00718.38
8.3.160.0070.01116.49
8.3.150.0150.00318.77
8.3.140.0120.00316.66
8.3.130.0030.00618.23
8.3.120.0080.01120.77
8.3.110.0090.00020.94
8.3.100.0040.00424.06
8.3.90.0130.00726.77
8.3.80.0060.00318.43
8.3.70.0080.00816.48
8.3.60.0070.00718.15
8.3.50.0110.00617.29
8.3.40.0070.00718.79
8.3.30.0080.00818.71
8.3.20.0040.00421.09
8.3.10.0030.00523.53
8.3.00.0050.00321.81
8.2.290.0070.00320.82
8.2.280.0110.00818.38
8.2.270.0140.00417.32
8.2.260.0060.00318.85
8.2.250.0040.00416.70
8.2.240.0040.01618.69
8.2.230.0030.00622.58
8.2.220.0070.00437.54
8.2.210.0060.00926.77
8.2.200.0030.00618.54
8.2.190.0110.00818.41
8.2.180.0040.01116.50
8.2.170.0070.01422.96
8.2.160.0140.00020.53
8.2.150.0000.00924.18
8.2.140.0040.00424.66
8.2.130.0030.00522.13
8.2.120.0040.00426.35
8.2.110.0070.00320.93
8.2.100.0040.00817.59
8.2.90.0030.00919.21
8.2.80.0030.00617.97
8.2.70.0060.00317.75
8.2.60.0040.00417.93
8.2.50.0050.00318.07
8.2.40.0090.00317.62
8.2.30.0080.00018.00
8.2.20.0080.00018.15
8.2.10.0040.00418.14
8.2.00.0000.00819.35
8.1.330.0110.00821.78
8.1.320.0140.00816.21
8.1.310.0080.00016.52
8.1.300.0000.00916.15
8.1.290.0030.00630.84
8.1.280.0070.01025.92
8.1.270.0080.00022.02
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0090.00021.31
8.1.230.0060.00617.83
8.1.220.0000.00817.79
8.1.210.0080.00018.77
8.1.200.0060.00317.23
8.1.190.0030.00517.22
8.1.180.0000.00818.10
8.1.170.0040.00418.47
8.1.160.0040.00418.86
8.1.150.0000.00818.81
8.1.140.0000.00722.06
8.1.130.0040.00417.45
8.1.120.0040.00417.38
8.1.110.0040.00417.47
8.1.100.0000.00817.35
8.1.90.0040.00417.46
8.1.80.0000.00717.48
8.1.70.0030.00617.41
8.1.60.0030.00617.61
8.1.50.0060.00317.50
8.1.40.0000.00817.44
8.1.30.0000.00917.62
8.1.20.0030.00617.58
8.1.10.0040.00417.58
8.1.00.0060.00317.42
8.0.300.0070.00018.77
8.0.290.0030.00616.63
8.0.280.0000.00820.22
8.0.270.0000.00717.27
8.0.260.0000.00616.88
8.0.250.0000.00717.01
8.0.240.0070.00016.92
8.0.230.0000.00816.87
8.0.220.0030.00616.94
8.0.210.0050.00316.94
8.0.200.0030.00316.95
8.0.190.0030.00516.99
8.0.180.0000.00916.86
8.0.170.0030.00516.93
8.0.160.0000.00716.92
8.0.150.0030.00416.83
8.0.140.0030.00616.84
8.0.130.0060.00013.32
8.0.120.0050.00316.77
8.0.110.0080.00016.77
8.0.100.0050.00316.76
8.0.90.0050.00216.93
8.0.80.0090.01316.95
8.0.70.0000.00716.91
8.0.60.0050.00316.77
8.0.50.0000.00816.87
8.0.30.0100.00916.99
8.0.20.0150.00617.40
8.0.10.0030.00716.99
8.0.00.0090.01016.77
7.4.330.0030.00316.70
7.4.320.0060.00316.61
7.4.300.0030.00316.53
7.4.290.0000.00716.61
7.4.280.0050.00316.64
7.4.270.0080.00016.59
7.4.260.0000.00716.62
7.4.250.0000.00716.57
7.4.240.0000.00716.60
7.4.230.0070.00016.63
7.4.220.0000.00716.35
7.4.210.0030.01416.65
7.4.200.0000.00716.56
7.4.160.0110.00716.48
7.4.140.0080.01017.86
7.4.130.0070.01016.48
7.4.120.0100.00816.52
7.4.110.0110.00816.43
7.4.100.0070.01116.54
7.4.90.0120.00616.50
7.4.80.0100.00619.39
7.4.70.0070.01016.47
7.4.60.0080.01116.66
7.4.50.0030.01016.63
7.4.40.0130.00316.67
7.4.00.0000.01114.84
7.3.330.0000.00513.14
7.3.320.0030.00313.07
7.3.310.0000.00716.47
7.3.300.0050.00216.26
7.3.290.0000.00716.32
7.3.280.0110.00616.33
7.3.260.0100.00716.38
7.3.240.0110.00716.51
7.3.230.0090.01216.38
7.3.210.0080.01416.64
7.3.200.0080.00916.67
7.3.190.0100.01316.41
7.3.180.0090.00616.45
7.3.170.0120.00416.35
7.3.160.0090.00616.57
7.2.330.0070.01016.51
7.2.320.0090.01216.64
7.2.310.0160.00716.59
7.2.300.0090.00916.79
7.2.290.0100.00716.80
7.2.120.0100.00716.43
7.2.110.0100.00616.70
7.2.100.0030.01316.60
7.2.90.0130.00316.66
7.2.80.0060.00916.63
7.2.70.0040.00816.74
7.2.60.0030.01017.11
7.2.50.0090.00916.57
7.2.40.0030.01016.82
7.2.30.0070.01116.80
7.2.20.0000.01516.66
7.2.10.0090.00316.61
7.2.00.0040.00817.02
7.1.240.0070.00715.65
7.1.230.0060.00915.54
7.1.220.0100.00315.49
7.1.210.0150.00015.73
7.1.200.0030.01015.76
7.1.190.0090.00615.71
7.1.180.0030.00915.86
7.1.170.0000.01415.87
7.1.160.0080.00315.76
7.1.150.0090.00615.46
7.1.140.0110.00415.52
7.1.130.0100.00315.69
7.1.120.0080.00415.89
7.1.110.0070.00715.82
7.1.100.0060.00915.66
7.1.90.0040.01115.91
7.1.80.0040.00815.82
7.1.70.0000.01415.71
7.1.60.0090.00615.66
7.1.50.0090.00615.73
7.1.40.0030.01015.63
7.1.30.0070.00415.82
7.1.20.0070.00415.73
7.1.10.0060.01115.69
7.1.00.0070.00715.71
5.6.380.0070.00714.70

preferences:
157.56 ms | 403 KiB | 5 Q