3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '33|ts|6|ank|5|ist|4|bjk|2|fb|1|gs'; $explode = explode('|', $str); $parcala = array_chunk($explode, 2); $arr = []; foreach ($parcala as $item) { $arr[$item[0]] = $item[1]; } print_r($arr);

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.4.10.0060.00317.55
8.3.140.0070.01120.83
8.3.130.0040.00418.26
8.3.120.0080.00018.91
8.3.110.0070.01316.75
8.3.100.0090.00016.51
8.3.90.0040.00426.77
8.3.80.0070.00416.38
8.3.70.0040.01216.58
8.3.60.0180.00416.63
8.3.50.0100.00718.27
8.3.40.0110.00421.03
8.3.30.0100.01018.71
8.3.20.0080.00024.18
8.3.10.0050.00224.66
8.3.00.0060.00326.16
8.2.260.0040.00416.35
8.2.250.0110.00816.48
8.2.240.0000.00818.43
8.2.230.0000.00820.94
8.2.220.0030.00624.06
8.2.210.0070.00726.77
8.2.200.0100.00316.50
8.2.190.0110.01116.75
8.2.180.0030.01225.92
8.2.170.0160.00318.95
8.2.160.0110.00322.96
8.2.150.0000.00725.66
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0080.00026.16
8.2.110.0040.00419.39
8.2.100.0000.01217.91
8.2.90.0000.00817.84
8.2.80.0110.00018.05
8.2.70.0000.00917.63
8.2.60.0040.00418.05
8.2.50.0000.00818.07
8.2.40.0050.00320.10
8.2.30.0080.00018.18
8.2.20.0040.00418.17
8.2.10.0050.00218.85
8.2.00.0040.00419.18
8.1.310.0030.00615.98
8.1.300.0000.00818.43
8.1.290.0040.00730.84
8.1.280.0090.00625.92
8.1.270.0040.00424.66
8.1.260.0080.00826.35
8.1.250.0000.00728.09
8.1.240.0060.00322.66
8.1.230.0040.00820.93
8.1.220.0040.00417.74
8.1.210.0050.00319.01
8.1.200.0040.00717.35
8.1.190.0080.00017.35
8.1.180.0050.00318.10
8.1.170.0050.00318.61
8.1.160.0030.00318.80
8.1.150.0040.00418.60
8.1.140.0000.00717.43
8.1.130.0040.00418.86
8.1.120.0050.00317.47
8.1.110.0000.00717.45
8.1.100.0020.00517.42
8.1.90.0000.00717.45
8.1.80.0040.00417.43
8.1.70.0080.00017.43
8.1.60.0050.00517.61
8.1.50.0040.00417.50
8.1.40.0050.00517.50
8.1.30.0000.00817.65
8.1.20.0040.00417.52
8.1.10.0080.00017.51
8.1.00.0090.00017.33
8.0.300.0060.00320.04
8.0.290.0090.00016.75
8.0.280.0060.00318.44
8.0.270.0070.00017.88
8.0.260.0030.00318.46
8.0.250.0000.00616.96
8.0.240.0030.00316.95
8.0.230.0070.00016.98
8.0.220.0000.00716.76
8.0.210.0000.00616.82
8.0.200.0000.00616.95
8.0.190.0040.00416.91
8.0.180.0040.00416.88
8.0.170.0040.00416.82
8.0.160.0000.00716.80
8.0.150.0000.00716.71
8.0.140.0000.00716.82
8.0.130.0030.00313.28
8.0.120.0050.00316.88
8.0.110.0040.00516.82
8.0.100.0080.00116.87
8.0.90.0020.00816.83
8.0.80.0030.00616.80
8.0.70.0020.00716.87
8.0.60.0030.00716.73
8.0.50.0050.00716.79
8.0.30.0040.00616.94
8.0.20.0050.00416.88
8.0.10.0060.00316.94
8.0.00.0050.00416.98
7.4.330.0000.00515.55
7.4.320.0040.00416.59
7.4.300.0060.00016.65
7.4.290.0000.00716.60
7.4.280.0030.00516.62
7.4.270.0090.00016.59
7.4.260.0000.00613.29
7.4.250.0030.00316.57
7.4.240.0030.00616.44
7.4.230.0030.00516.71
7.4.220.0070.00216.46
7.4.210.0000.00816.51
7.4.200.0030.00616.67
7.4.190.0030.00616.64
7.4.180.0070.00216.45
7.4.160.0020.00816.47
7.4.150.0060.00416.56
7.4.140.0040.00516.36
7.4.130.0000.00916.14
7.4.120.0030.00716.35
7.4.110.0070.00316.37
7.4.100.0060.00216.60
7.4.90.0060.00216.37
7.4.80.0040.00516.30
7.4.70.0040.00416.23
7.4.60.0070.00116.29
7.4.50.0050.00316.33
7.4.40.0040.00416.30
7.4.30.0030.00516.34
7.4.20.0040.00516.51
7.4.10.0030.00216.37
7.4.00.0050.00316.44
7.3.330.0080.00016.11
7.3.320.0000.00613.00
7.3.310.0030.00416.32
7.3.300.0040.00416.27
7.3.290.0050.00316.27
7.3.280.0040.00416.28
7.3.270.0040.00516.24
7.3.260.0020.00516.32
7.3.250.0030.00516.33
7.3.240.0030.00516.35
7.3.230.0050.00316.30
7.3.220.0040.00416.23
7.3.210.0040.00416.13
7.3.200.0020.00616.22
7.3.190.0020.00616.25
7.3.180.0020.00616.24
7.3.170.0020.00516.17
7.3.160.0080.00016.08
7.3.150.0030.00516.28
7.3.140.0050.00316.25
7.3.130.0040.00416.29
7.3.120.0020.00616.20
7.3.110.0040.00416.14
7.3.100.0010.00716.14
7.3.90.0030.00516.40
7.3.80.0030.00516.24
7.3.70.0060.00316.38
7.3.60.0030.00416.38
7.3.50.0020.00616.35
7.3.40.0060.00316.27
7.3.30.0030.00516.40
7.3.20.0080.00017.31
7.3.10.0080.00017.18
7.3.00.0060.00917.21

preferences:
69.36 ms | 403 KiB | 5 Q