3v4l.org

run code in 300+ PHP versions simultaneously
<?php $jsonString = '{"items":[{"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('/"value":([a-z]+)}/ui', '"value":"${1}"}', $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.130.0080.00417.96
8.4.120.0150.00720.80
8.4.110.0100.01018.02
8.4.100.0130.00918.09
8.4.90.0100.01020.53
8.4.80.0130.00918.83
8.4.70.0120.00818.97
8.4.60.0120.00918.94
8.4.50.0080.00918.73
8.4.40.0130.00619.67
8.4.30.0140.00720.51
8.4.20.0100.00720.10
8.4.10.0040.00423.65
8.3.260.0090.00416.43
8.3.250.0060.00418.75
8.3.240.0090.00816.72
8.3.230.0120.00817.05
8.3.220.0090.00919.02
8.3.210.0070.00816.73
8.3.200.0070.01016.64
8.3.190.0090.01117.36
8.3.180.0050.00318.84
8.3.170.0060.00320.64
8.3.160.0190.00016.74
8.3.150.0090.00916.82
8.3.140.0050.00318.63
8.3.130.0110.00616.68
8.3.120.0150.00018.74
8.3.110.0040.00416.63
8.3.100.0040.00424.06
8.3.90.0050.00326.77
8.3.80.0100.00316.73
8.3.70.0120.00916.50
8.3.60.0100.00618.68
8.3.50.0110.00418.62
8.3.40.0130.00720.30
8.3.30.0090.00619.02
8.3.20.0070.00024.18
8.3.10.0000.00824.66
8.3.00.0030.00626.16
8.2.290.0100.00917.16
8.2.280.0130.00720.40
8.2.270.0160.00317.46
8.2.260.0080.00016.70
8.2.250.0090.00918.48
8.2.240.0030.00719.00
8.2.230.0050.00520.94
8.2.220.0040.00437.54
8.2.210.0030.00526.77
8.2.200.0030.00616.63
8.2.190.0070.01416.88
8.2.180.0140.00716.88
8.2.170.0070.00718.91
8.2.160.0070.00722.96
8.2.150.0060.00325.66
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0040.00420.93
8.2.110.0030.00620.34
8.2.100.0040.00817.84
8.2.90.0100.00017.87
8.2.80.0090.00018.86
8.2.70.0040.00417.63
8.2.60.0050.00317.75
8.2.50.0050.00317.61
8.2.40.0050.00317.93
8.2.30.0000.00819.29
8.2.20.0000.00818.00
8.2.10.0160.00317.88
8.2.00.0160.00317.94
8.1.330.0090.01016.44
8.1.320.0140.00616.46
8.1.310.0130.00616.32
8.1.300.0160.00019.90
8.1.290.0090.00018.88
8.1.280.0090.00925.92
8.1.270.0080.00024.66
8.1.260.0000.00826.35
8.1.250.0050.00328.09
8.1.240.0000.00918.89
8.1.230.0040.00717.89
8.1.220.0040.00417.79
8.1.210.0080.00018.77
8.1.200.0040.00417.48
8.1.190.0080.00017.23
8.1.180.0030.00518.10
8.1.170.0040.00417.62
8.1.160.0000.00818.89
8.1.150.0160.00317.65
8.1.140.0120.00617.51
8.1.130.0150.00417.60
8.1.120.0110.00817.63
8.1.110.0120.00717.64
8.1.100.0110.00817.54
8.1.90.0150.00517.59
8.1.80.0160.00417.60
8.1.70.0130.00819.45
8.1.60.0150.00817.80
8.1.50.0150.00717.65
8.1.40.0170.00317.73
8.1.30.0150.00517.77
8.1.20.0130.00917.68
8.1.10.0150.00517.68
8.1.00.0100.01017.52
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0030.00618.28
8.0.270.0130.00416.98
8.0.260.0050.01116.96
8.0.250.0080.00817.02
8.0.240.0080.00716.88
8.0.230.0080.00417.02
8.0.220.0110.00317.00
8.0.210.0040.00816.97
8.0.200.0120.00017.08
8.0.190.0090.00317.01
8.0.180.0120.00017.00
8.0.170.0000.00916.86
8.0.160.0060.00616.98
8.0.150.0140.00016.91
8.0.140.0160.00017.00
8.0.130.0090.00916.94
8.0.120.0120.00416.96
8.0.110.0150.00017.01
8.0.100.0160.00017.03
8.0.90.0000.01616.95
8.0.80.0160.00317.07
8.0.70.0120.00617.01
8.0.60.0080.00817.00
8.0.50.0120.00416.93
8.0.30.0080.01117.04
8.0.20.0130.00516.95
8.0.10.0090.00917.05

preferences:
26.52 ms | 403 KiB | 5 Q