3v4l.org

run code in 300+ PHP versions simultaneously
<?php $unquoted_json = <<<NOTJSON {foo:{qux:1,quux:0}, bar:{}} NOTJSON; $quoted_json = preg_replace('~\w[^:{},]*~', '"$0"', $unquoted_json); $array = json_decode($quoted_json, true); var_export($array); echo "\n---\n"; echo json_encode($array);

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.0070.00718.43
8.3.50.0170.00316.80
8.3.40.0040.01118.63
8.3.30.0070.00718.92
8.3.20.0040.00419.02
8.3.10.0090.00020.95
8.3.00.0060.00317.91
8.2.180.0120.00318.79
8.2.170.0140.00322.96
8.2.160.0120.00318.87
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.96
8.2.110.0030.00622.12
8.2.100.0120.00019.76
8.2.90.0000.00818.16
8.2.80.0000.00819.03
8.2.70.0080.00517.63
8.2.60.0040.00418.04
8.2.50.0000.00818.07
8.2.40.0050.00917.98
8.2.30.0030.00618.05
8.2.20.0030.00517.96
8.2.10.0030.00518.09
8.2.00.0040.00419.51
8.1.280.0130.01025.92
8.1.270.0040.00423.82
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00720.43
8.1.230.0030.00717.71
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0000.00817.35
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0080.00018.65
8.1.160.0060.00318.84
8.1.150.0000.00718.84
8.1.140.0000.00717.52
8.1.130.0000.00718.94
8.1.120.0000.00717.50
8.1.110.0040.00417.53
8.1.100.0060.00617.45
8.1.90.0000.00817.54
8.1.80.0050.00317.46
8.1.70.0040.00417.45
8.1.60.0030.00617.67
8.1.50.0050.00317.65
8.1.40.0000.00817.50
8.1.30.0080.00317.73
8.1.20.0000.00817.67
8.1.10.0000.00817.71
8.1.00.0050.00317.59
8.0.300.0050.00218.77
8.0.290.0070.00017.00
8.0.280.0030.00318.39
8.0.270.0000.00817.20
8.0.260.0080.00017.28
8.0.250.0070.00017.19
8.0.240.0000.00717.16
8.0.230.0040.00417.08
8.0.220.0030.00317.04
8.0.210.0070.00016.90
8.0.200.0070.00016.98
8.0.190.0030.00616.97
8.0.180.0060.00316.96
8.0.170.0030.00617.11
8.0.160.0000.00716.98
8.0.150.0000.00716.97
8.0.140.0040.00416.88
8.0.130.0030.00313.46
8.0.120.0030.00616.98
8.0.110.0000.00817.03
8.0.100.0040.00416.93
8.0.90.0000.00716.84
8.0.80.0080.01516.99
8.0.70.0080.00016.96
8.0.60.0040.00417.07
8.0.50.0000.00716.94
8.0.30.0100.00817.02
8.0.20.0120.00717.42
8.0.10.0040.00417.18
8.0.00.0110.00716.94
7.4.330.0000.00515.55
7.4.320.0030.00316.74
7.4.300.0000.00716.65
7.4.290.0050.00216.56
7.4.280.0040.00416.73
7.4.270.0040.00416.75
7.4.260.0000.00716.59
7.4.250.0000.00816.69
7.4.240.0000.00716.67
7.4.230.0000.00716.49
7.4.220.0040.00416.40
7.4.210.0080.00916.78
7.4.200.0040.00416.68
7.4.160.0100.00616.58
7.4.140.0080.01017.86
7.4.130.0100.00716.75
7.4.120.0100.00916.64
7.4.110.0070.01016.47
7.4.100.0090.00616.63
7.4.90.0060.01316.54
7.4.80.0150.00319.39
7.4.70.0070.01016.67
7.4.60.0140.00416.70
7.4.50.0030.01016.54
7.4.40.0130.00616.76
7.4.00.0080.00815.21
7.3.330.0000.00613.25
7.3.320.0030.00313.18
7.3.310.0030.00316.40
7.3.300.0030.00316.39
7.3.290.0030.00316.36
7.3.280.0060.01116.30
7.3.260.0080.01316.56
7.3.240.0070.01016.56
7.3.230.0110.00716.35
7.3.210.0110.00816.41
7.3.200.0110.00716.46
7.3.190.0090.00616.53
7.3.180.0090.00616.33
7.3.170.0090.01216.52
7.3.160.0070.01316.36
7.3.120.0030.01414.78
7.3.110.0060.00615.11
7.3.100.0030.01014.78
7.3.90.0060.00914.79
7.3.80.0060.00614.81
7.3.70.0040.00415.02
7.3.60.0100.00314.85
7.3.50.0000.00814.73
7.3.40.0060.00615.02
7.3.30.0110.00014.68
7.3.20.0080.00616.68
7.3.10.0070.00716.69
7.3.00.0030.00816.86
7.2.330.0160.00316.71
7.2.320.0130.01016.72
7.2.310.0070.01016.75
7.2.300.0090.01016.75
7.2.290.0080.00816.78
7.2.240.0070.00714.95
7.2.230.0000.01615.31
7.2.220.0070.01115.16
7.2.210.0070.00415.25
7.2.200.0050.00514.88
7.2.190.0100.00715.18
7.2.180.0040.01115.03
7.2.170.0100.00615.25
7.2.160.0070.01015.32
7.2.150.0100.00717.14
7.2.140.0030.00716.92
7.2.130.0130.00317.14
7.2.120.0060.01016.70
7.2.110.0090.00916.89
7.2.100.0140.01317.05
7.2.90.0000.01417.00
7.2.80.0070.00717.00
7.2.70.0100.00317.13
7.2.60.0680.00815.94
7.2.50.0630.00616.17
7.2.40.0430.00616.35
7.2.30.0680.00716.27
7.2.20.0800.01016.23
7.2.10.0560.00816.16
7.2.00.0440.01116.15
7.1.330.0000.01515.84
7.1.320.0070.00715.70
7.1.310.0000.00815.66
7.1.300.0090.00615.94
7.1.290.0060.00316.00
7.1.280.0100.00615.89
7.1.270.0000.01015.90
7.1.260.0060.00915.57
7.1.250.0000.01016.04
7.1.200.0090.00015.56
7.1.170.1200.00914.09
7.1.160.0760.01216.82
7.1.150.1370.00917.19
7.1.140.1470.01116.61
7.1.130.1060.01217.27
7.1.120.0900.01417.21
7.1.110.0850.00816.30
7.1.100.0860.01216.28
7.1.90.0940.00816.49
7.1.80.0930.01016.58
7.1.70.1040.00615.41
7.1.60.1180.01433.32
7.1.50.0710.01032.81
7.1.40.0920.01332.81
7.1.30.0890.01532.87
7.1.20.1080.01532.98
7.1.10.0890.00814.87
7.1.00.1260.01115.14

preferences:
33.56 ms | 400 KiB | 5 Q