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.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.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.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:
16.6 ms | 401 KiB | 5 Q