3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = "123, 123, 456, 456, 123, 123"; $arr = explode(",", $s); $str =""; Foreach(array_chunk($arr,2) as $sub){ $str .= trim(implode(",",$sub)) .",<br>\n"; } Echo $str;

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.80.0090.00017.97
8.3.70.0150.00618.42
8.3.60.0120.00918.40
8.3.50.0120.00719.21
8.3.40.0070.01118.67
8.3.30.0140.00018.55
8.3.20.0130.00020.34
8.3.10.0040.00423.52
8.3.00.0050.00319.85
8.2.200.0090.00018.04
8.2.190.0180.00716.58
8.2.180.0040.01518.28
8.2.170.0100.01022.96
8.2.160.0080.00518.96
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00020.95
8.2.120.0040.00426.35
8.2.110.0060.00322.20
8.2.100.0080.00817.78
8.2.90.0080.00018.16
8.2.80.0000.00818.22
8.2.70.0000.00817.63
8.2.60.0000.00717.63
8.2.50.0000.00817.63
8.2.40.0030.00619.35
8.2.30.0000.00719.27
8.2.20.0050.00218.08
8.2.10.0030.00618.02
8.2.00.0050.00218.30
8.1.290.0040.00418.88
8.1.280.0140.00325.92
8.1.270.0040.00421.89
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00324.02
8.1.230.0120.00019.10
8.1.220.0000.00817.91
8.1.210.0050.00318.77
8.1.200.0030.00517.35
8.1.190.0060.00317.23
8.1.180.0090.00018.10
8.1.170.0070.00019.03
8.1.160.0000.00718.80
8.1.150.0000.00720.22
8.1.140.0040.00417.66
8.1.130.0000.00719.04
8.1.120.0060.00317.38
8.1.110.0040.00417.40
8.1.100.0000.00817.36
8.1.90.0030.00517.45
8.1.80.0000.00817.46
8.1.70.0070.00017.48
8.1.60.0000.00817.58
8.1.50.0030.00617.52
8.1.40.0040.00417.53
8.1.30.0040.00417.51
8.1.20.0000.00917.66
8.1.10.0080.00017.52
8.1.00.0000.00817.30
8.0.300.0040.00420.04
8.0.290.0070.00016.63
8.0.280.0030.00318.40
8.0.270.0000.00717.23
8.0.260.0060.00316.70
8.0.250.0050.00316.90
8.0.240.0000.00816.84
8.0.230.0070.00016.91
8.0.220.0000.00716.84
8.0.210.0000.00716.95
8.0.200.0070.00016.91
8.0.190.0040.00416.94
8.0.180.0040.00416.89
8.0.170.0030.00616.87
8.0.160.0000.00716.88
8.0.150.0070.00016.81
8.0.140.0060.00316.80
8.0.130.0000.00613.27
8.0.120.0040.00416.91
8.0.110.0040.00416.88
8.0.100.0000.00716.82
8.0.90.0000.00716.94
8.0.80.0120.00816.88
8.0.70.0020.00516.95
8.0.60.0030.00316.87
8.0.50.0080.00016.84
8.0.30.0090.00717.07
8.0.20.0140.00717.40
8.0.10.0000.00717.07
8.0.00.0140.00716.76
7.4.330.0000.00516.77
7.4.320.0060.00016.52
7.4.300.0030.00316.57
7.4.290.0000.00716.56
7.4.280.0090.00016.46
7.4.270.0070.00316.60
7.4.260.0000.00816.59
7.4.250.0040.00416.54
7.4.240.0000.00716.64
7.4.230.0040.00416.62
7.4.220.0030.00316.48
7.4.210.0050.01116.54
7.4.200.0040.00416.50
7.4.150.0110.00717.40
7.4.140.0100.00917.86
7.4.130.0120.00616.49
7.4.120.0110.00816.47
7.4.110.0070.01016.50
7.4.100.0100.01016.52
7.4.90.0130.01016.38
7.4.80.0110.00619.39
7.4.70.0030.01516.41
7.4.60.0130.00316.25
7.4.50.0060.00916.24
7.4.40.0130.01016.30
7.4.00.0070.01014.88
7.3.330.0000.00513.18
7.3.320.0000.00513.20
7.3.310.0070.00016.33
7.3.300.0030.00316.31
7.3.290.0000.00716.29
7.3.280.0030.01616.24
7.3.270.0140.00517.40
7.3.260.0100.01016.44
7.3.250.0120.00916.49
7.3.240.0130.01016.33
7.3.230.0060.00916.34
7.3.210.0040.01916.30
7.3.200.0120.00416.29
7.3.190.0060.00916.44
7.3.180.0060.01016.42
7.3.170.0120.00316.51
7.3.160.0100.00616.63
7.3.120.0060.00914.88
7.3.110.0030.01514.57
7.3.100.0040.01114.88
7.3.90.0100.00314.75
7.3.80.0040.01514.89
7.3.70.0150.00014.63
7.3.60.0000.01314.83
7.3.50.0070.00714.59
7.3.40.0090.00914.71
7.3.30.0040.00914.88
7.3.20.0000.01416.63
7.3.10.0120.00316.47
7.3.00.0070.00716.82
7.2.330.0140.00316.68
7.2.320.0000.01516.62
7.2.310.0110.00716.85
7.2.300.0110.00716.57
7.2.290.0100.00716.39
7.2.250.0070.01015.18
7.2.240.0070.01114.64
7.2.230.0000.01515.07
7.2.220.0030.01014.78
7.2.210.0080.00414.86
7.2.200.0070.00714.78
7.2.190.0070.00314.88
7.2.180.0030.01414.90
7.2.170.0050.00814.99
7.2.60.0040.00817.06
7.2.20.0410.01017.81
7.2.10.0510.01018.08
7.2.00.0170.01417.89
7.1.330.0080.00815.82
7.1.320.0070.00415.72
7.1.310.0000.01415.92
7.1.300.0080.00715.41
7.1.290.0060.00915.58
7.1.280.0030.01015.77
7.1.270.0100.00615.91
7.1.260.0170.00015.99
7.1.200.0100.00315.71
7.1.140.0430.00917.04
7.1.130.0370.00916.78
7.1.120.0220.01416.35
7.1.110.0290.01716.30
7.1.100.0280.01216.35
7.1.90.0690.01616.29
7.1.80.0410.01016.23
7.1.70.0470.00615.46
7.1.60.0690.01333.03
7.1.50.0410.01632.77
7.1.40.0560.02332.63
7.1.30.0840.00932.62
7.1.20.0550.01332.71
7.1.10.0340.01614.80
7.1.00.0360.00714.90

preferences:
29.9 ms | 401 KiB | 5 Q