3v4l.org

run code in 300+ PHP versions simultaneously
<?php $jsonString = '{"items":[{"label":[b]bx[/b],"value":"by"},{"label":"Długość opakowania","value":bi},{"label":"Wysokość opakowania","value":"3.75 cm"},{"label":"Szerokość opakowania","value":bi},{"label":"Waga brutto","value":"0.891 kg"},{"label":"Wymiary produktu","value":"3,7 x 3,5 x 3,5 cm"}]}'; $jsonString = preg_replace('/":\[\w\]([a-z]+)\[\/\w\]/ui', '":${1}', $jsonString); $jsonString = preg_replace('/":([a-z]+)(,|})/ui', '":"${1}"${2}', $jsonString); var_dump(json_decode($jsonString, true));

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.20.0120.00919.84
8.4.10.0090.00023.79
8.3.160.0060.00916.61
8.3.150.0060.01318.74
8.3.140.0080.00016.88
8.3.130.0030.00618.62
8.3.120.0060.00319.10
8.3.110.0000.01120.94
8.3.100.0080.00024.06
8.3.90.0040.00426.77
8.3.80.0050.00519.36
8.3.70.0090.00616.75
8.3.60.0080.00818.81
8.3.50.0130.00718.62
8.3.40.0040.01120.29
8.3.30.0110.00418.82
8.3.20.0090.00924.18
8.3.10.0000.00824.66
8.3.00.0090.00026.16
8.2.270.0050.00318.48
8.2.260.0070.01120.80
8.2.250.0110.00918.93
8.2.240.0090.00019.23
8.2.230.0090.00022.58
8.2.220.0040.00437.54
8.2.210.0080.00026.77
8.2.200.0090.00018.88
8.2.190.0150.00618.65
8.2.180.0140.01116.88
8.2.170.0090.00618.96
8.2.160.0100.01022.96
8.2.150.0030.00625.66
8.2.140.0030.00624.66
8.2.130.0070.00026.16
8.2.120.0040.00419.76
8.2.110.0070.00321.15
8.2.100.0060.00617.93
8.2.90.0080.00019.21
8.2.80.0040.00417.97
8.2.70.0000.00817.73
8.2.60.0000.00817.80
8.2.50.0030.00618.07
8.2.40.0060.00318.34
8.2.30.0060.00318.08
8.2.20.0040.00719.14
8.2.10.0120.00319.15
8.2.00.0130.00319.14
8.1.310.0070.01118.57
8.1.300.0070.01118.50
8.1.290.0050.00530.84
8.1.280.0090.00925.92
8.1.270.0030.00524.66
8.1.260.0040.01126.35
8.1.250.0000.00928.09
8.1.240.0090.00319.40
8.1.230.0090.00317.64
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0070.00317.48
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0050.00318.41
8.1.160.0040.00418.92
8.1.150.0040.00418.70
8.1.140.0050.01118.67
8.1.130.0120.00418.72
8.1.120.0140.00318.71
8.1.110.0130.00318.69
8.1.100.0090.00618.75
8.1.90.0090.00918.71
8.1.80.0180.00018.73
8.1.70.0110.00418.66
8.1.60.0050.01518.91
8.1.50.0120.00618.89
8.1.40.0150.00318.86
8.1.30.0130.00618.93
8.1.20.0080.01118.95
8.1.10.0150.00418.81
8.1.00.0140.00518.75
8.0.300.0000.00718.77
8.0.290.0000.00916.75
8.0.280.0000.00718.32
8.0.270.0060.00618.07
8.0.260.0060.01118.13
8.0.250.0090.00918.22
8.0.240.0120.00218.23
8.0.230.0080.00418.26
8.0.220.0080.00218.21
8.0.210.0050.00918.22
8.0.200.0030.00818.07
8.0.190.0070.00718.14
8.0.180.0060.00918.02
8.0.170.0080.00418.31
8.0.160.0040.00918.21
8.0.150.0090.00218.17
8.0.140.0110.00218.14
8.0.130.0070.00718.02
8.0.120.0040.01318.24
8.0.110.0130.00318.02
8.0.100.0080.00818.13
8.0.90.0120.00418.08
8.0.80.0160.00018.11
8.0.70.0150.00017.84
8.0.60.0140.00318.08
8.0.50.0070.01018.08
8.0.30.0100.00518.11
8.0.20.0000.01618.29
8.0.10.0120.00318.20

preferences:
30.91 ms | 403 KiB | 5 Q