3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '[{"id":96,"type":"product","title":"Cassia","code":"CODE-101","fabric":0,"option":"2","options":[["TEst 1","http://localhost/content/uploads/2017/07/seating4-150x150.png"],["Dimension 2","http://localhost/content/uploads/2017/07/seating3-150x150.png"],["Dimension 3","http://localhost/content/uploads/2017/07/seating1-150x150.png"],["Dimension 4","http://localhost/content/uploads/2017/07/seating2-150x150.png"]],"quantity":5},{"id":139,"type":"product","title":"Accent","code":"","fabric":0,"option":0,"options":[["Testing","http://localhost/content/uploads/2017/07/seating3-150x150.png"]],"quantity":13}]'; $string = addslashes($string); var_dump($string); $decoded = json_decode($string); var_dump($decoded);

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.60.0140.00718.48
8.3.50.0070.01116.38
8.3.40.0080.01118.54
8.3.30.0070.00718.59
8.3.20.0060.00320.05
8.3.10.0080.00020.80
8.3.00.0040.00420.75
8.2.180.0070.00716.50
8.2.170.0040.01122.96
8.2.160.0070.00720.35
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0040.00421.05
8.2.120.0050.00326.35
8.2.110.0000.01019.22
8.2.100.0000.01117.75
8.2.90.0040.00418.22
8.2.80.0000.00817.97
8.2.70.0000.00917.38
8.2.60.0000.00818.03
8.2.50.0030.00518.10
8.2.40.0060.00322.32
8.2.30.0000.00819.09
8.2.20.0040.00417.98
8.2.10.0000.00717.99
8.2.00.0040.00417.98
8.1.280.0140.00725.92
8.1.270.0050.00322.05
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0000.00919.44
8.1.230.0080.00320.93
8.1.220.0030.00517.79
8.1.210.0090.00018.77
8.1.200.0040.00417.23
8.1.190.0080.00017.23
8.1.180.0050.00318.10
8.1.170.0090.00018.59
8.1.160.0070.00019.01
8.1.150.0070.00018.73
8.1.140.0040.00419.61
8.1.130.0000.00718.80
8.1.120.0040.00417.30
8.1.110.0030.00617.40
8.1.100.0030.00917.40
8.1.90.0030.00317.46
8.1.80.0040.00417.29
8.1.70.0030.00317.38
8.1.60.0040.00417.52
8.1.50.0040.00417.35
8.1.40.0080.00017.34
8.1.30.0040.00417.47
8.1.20.0000.00717.50
8.1.10.0040.00417.33
8.1.00.0040.00417.33
8.0.300.0000.00719.91
8.0.290.0040.00416.63
8.0.280.0000.00718.37
8.0.270.0000.00717.19
8.0.260.0030.00619.01
8.0.250.0030.00316.93
8.0.240.0050.00316.76
8.0.230.0000.00716.89
8.0.220.0040.00416.84
8.0.210.0000.00716.86
8.0.200.0030.00316.85
8.0.190.0000.00816.91
8.0.180.0070.00016.88
8.0.170.0000.00716.73
8.0.160.0040.00416.82
8.0.150.0040.00416.80
8.0.140.0000.00716.77
8.0.130.0080.00013.20
8.0.120.0000.00716.79
8.0.110.0000.00816.73
8.0.100.0000.00716.82
8.0.90.0070.00016.89
8.0.80.0060.00916.75
8.0.70.0070.00016.85
8.0.60.0040.00416.63
8.0.50.0050.00216.82
8.0.30.0100.00816.96
8.0.20.0110.00817.40
8.0.10.0000.00716.95
8.0.00.0100.00716.74
7.4.330.0050.00015.55
7.4.320.0060.00016.44
7.4.300.0040.00416.33
7.4.290.0080.00016.33
7.4.280.0080.00016.51
7.4.270.0030.00316.44
7.4.260.0050.00316.52
7.4.250.0020.00516.46
7.4.240.0040.00416.46
7.4.230.0000.00716.61
7.4.220.0140.00716.34
7.4.210.0140.00716.49
7.4.200.0040.00416.23
7.4.160.0130.00316.22
7.4.150.0080.00917.40
7.4.140.0130.00717.86
7.4.130.0090.01216.25
7.4.120.0110.00916.37
7.4.110.0100.00716.34
7.4.100.0110.01116.55
7.4.90.0160.00716.49
7.4.80.0100.00719.39
7.4.70.0120.00616.35
7.4.60.0030.01216.47
7.4.50.0030.01316.35
7.4.40.0110.00516.37
7.4.30.0100.00616.31
7.4.00.0030.01015.08
7.3.330.0030.00313.12
7.3.320.0030.00212.88
7.3.310.0000.00716.23
7.3.300.0000.00616.11
7.3.290.0070.00816.21
7.3.280.0070.01016.11
7.3.270.0120.00417.40
7.3.260.0120.00916.08
7.3.250.0090.01016.42
7.3.240.0090.00716.17
7.3.230.0060.01316.36
7.3.210.0100.00716.38
7.3.200.0110.00716.16
7.3.190.0160.00016.29
7.3.180.0080.00516.50
7.3.170.0050.01016.12
7.3.160.0060.00916.08
7.2.330.0030.01516.51
7.2.320.0070.01716.39
7.2.310.0110.00816.61
7.2.300.0090.01516.75
7.2.290.0150.00616.44
7.2.60.0100.00316.94
7.1.200.0070.00315.66
7.1.70.4390.00914.85
7.1.60.3250.01333.12
7.1.50.4290.01032.93
7.1.40.3290.01332.67
7.1.30.5010.01232.45
7.1.20.4240.01932.75
7.1.10.3710.01014.78
7.1.00.3770.01714.77
7.0.200.4170.01014.95
7.0.190.4680.00714.77
7.0.180.3520.01014.27
7.0.170.5640.01014.27
7.0.160.5340.01314.58
7.0.150.3750.00714.40
7.0.140.3630.00614.45
7.0.130.4150.01214.57
7.0.120.4490.00614.66
7.0.110.4640.01214.47
7.0.100.4750.00914.54
7.0.90.4890.00314.30
7.0.80.4670.01214.36
7.0.70.0130.00914.59
7.0.60.0060.01614.28
7.0.50.0090.00814.51
7.0.40.5960.01314.53
7.0.30.4850.01314.65
7.0.20.4650.00714.50
7.0.10.4540.01014.68
7.0.00.4470.00314.43

preferences:
64.85 ms | 400 KiB | 5 Q