3v4l.org

run code in 300+ PHP versions simultaneously
<?php // the following strings are valid JavaScript but not valid JSON // the name and value must be enclosed in double quotes // single quotes are not valid $bad_json = "{ 'bar': 'baz' }"; json_decode($bad_json); // null // the name must be enclosed in double quotes $bad_json = '{ bar: "baz" }'; json_decode($bad_json); // null // trailing commas are not allowed $bad_json = '{ bar: "baz", }'; json_decode($bad_json); // null ?>

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.01116.25
8.3.50.0100.00316.61
8.3.40.0130.00718.73
8.3.30.0070.00718.54
8.3.20.0060.00318.84
8.3.10.0080.00021.60
8.3.00.0070.00320.77
8.2.180.0070.00718.41
8.2.170.0150.00622.96
8.2.160.0090.00622.08
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0080.00022.09
8.2.120.0070.00026.35
8.2.110.0030.00620.37
8.2.100.0060.00617.91
8.2.90.0080.00019.23
8.2.80.0090.00017.97
8.2.70.0030.00617.25
8.2.60.0040.00417.93
8.2.50.0040.00418.10
8.2.40.0070.00020.59
8.2.30.0070.00019.26
8.2.20.0030.00618.05
8.2.10.0000.00717.86
8.2.00.0040.00417.49
8.1.270.0040.00422.13
8.1.260.0080.00026.35
8.1.250.0030.00628.09
8.1.240.0040.00721.81
8.1.230.0060.00621.04
8.1.220.0030.00617.74
8.1.210.0050.00318.77
8.1.200.0070.00317.00
8.1.190.0060.00317.11
8.1.180.0070.00018.10
8.1.170.0040.00418.90
8.1.160.0040.00418.81
8.1.150.0070.00020.10
8.1.140.0000.00719.38
8.1.130.0000.00817.87
8.1.120.0080.00017.37
8.1.110.0070.00017.25
8.1.100.0070.00017.45
8.1.90.0040.00417.32
8.1.80.0070.00017.38
8.1.70.0030.00317.28
8.1.60.0000.00717.50
8.1.50.0040.00417.27
8.1.40.0000.00817.44
8.1.30.0000.00817.47
8.1.20.0040.00417.49
8.1.10.0040.00417.44
8.1.00.0070.00017.37
8.0.300.0070.00018.77
8.0.290.0040.00416.59
8.0.280.0030.00518.36
8.0.270.0070.00417.14
8.0.260.0000.00717.24
8.0.250.0030.00316.83
8.0.240.0030.00316.88
8.0.230.0030.00316.88
8.0.220.0030.00316.78
8.0.210.0000.00716.71
8.0.200.0040.00816.83
8.0.190.0060.00316.86
8.0.180.0000.00716.89
8.0.170.0040.00416.74
8.0.160.0030.00716.82
8.0.150.0040.00416.69
8.0.140.0030.00516.84
8.0.130.0030.00313.25
8.0.120.0050.00216.67
8.0.110.0040.00416.88
8.0.100.0040.00416.68
8.0.90.0000.00716.70
8.0.80.0100.00616.84
8.0.70.0000.00716.61
8.0.60.0040.00416.83
8.0.50.0030.00316.77
8.0.30.0110.00616.93
8.0.20.0100.00817.40
8.0.10.0000.00716.84
8.0.00.0070.01416.65
7.4.330.0050.00015.55
7.4.320.0000.00616.43
7.4.300.0030.00316.43
7.4.290.0030.00316.51
7.4.280.0000.00916.51
7.4.270.0000.00716.51
7.4.260.0070.00016.31
7.4.250.0050.00216.44
7.4.240.0030.00316.51
7.4.230.0000.00716.48
7.4.220.0180.00316.60
7.4.210.0120.00216.53
7.4.200.0030.00316.60
7.4.160.0120.00516.49
7.4.150.0140.00217.40
7.4.140.0130.00917.86
7.4.130.0090.00916.40
7.4.120.0090.01116.43
7.4.110.0100.01016.32
7.4.100.0040.01416.38
7.4.90.0120.01216.44
7.4.80.0130.01019.39
7.4.70.0100.00616.47
7.4.60.0120.00616.29
7.4.50.0100.00016.43
7.4.40.0150.00616.51
7.4.30.0030.01416.49
7.4.00.0100.00714.79
7.3.330.0000.00512.88
7.3.320.0030.00313.02
7.3.310.0000.00716.19
7.3.300.0000.00716.08
7.3.290.0060.00016.14
7.3.280.0090.00916.13
7.3.270.0030.01517.40
7.3.260.0110.00916.32
7.3.250.0100.00616.34
7.3.240.0090.01116.19
7.3.230.0070.01016.39
7.3.210.0060.01016.46
7.3.200.0120.00316.40
7.3.190.0060.01316.37
7.3.180.0090.00616.39
7.3.170.0080.00816.08
7.3.160.0130.00916.14
7.3.120.0100.00514.53
7.3.110.0050.01214.56
7.3.100.0020.01414.45
7.3.90.0050.00714.46
7.3.80.0120.00514.77
7.3.70.0020.00914.70
7.3.60.0060.00714.55
7.3.50.0050.00714.68
7.3.40.0030.01014.78
7.3.30.0050.00614.55
7.3.20.0020.01216.47
7.3.10.0090.00516.42
7.3.00.0060.00816.35
7.2.330.0100.00716.43
7.2.320.0080.00816.56
7.2.310.0060.00916.33
7.2.300.0100.00616.23
7.2.290.0080.00816.34
7.2.250.0050.01014.91
7.2.240.0080.01014.82
7.2.230.0110.00515.02
7.2.220.0090.00514.76
7.2.210.0070.00714.79
7.2.200.0050.00814.98
7.2.190.0090.00514.84
7.2.180.0040.00714.98
7.2.170.0090.00614.92
7.2.160.0090.00614.95
7.2.150.0110.00316.82
7.2.140.0150.00316.86
7.2.130.0080.00616.65
7.2.120.0080.00916.59
7.2.110.0070.00916.38
7.2.100.0070.00616.51
7.2.90.0100.00716.45
7.2.80.0100.00616.53
7.2.70.0070.00916.67
7.2.60.0140.00516.50
7.2.50.0090.00616.62
7.2.40.0070.00816.58
7.2.30.0050.01016.68
7.2.20.0070.00716.50
7.2.10.0110.00416.50
7.2.00.0090.01016.64
7.1.330.0060.00815.93
7.1.320.0050.01015.79
7.1.310.0060.00615.92
7.1.300.0050.00815.75
7.1.290.0050.00915.55
7.1.280.0050.00815.60
7.1.270.0040.00915.74
7.1.260.0000.01215.58
7.1.250.0100.00615.75
7.1.240.0000.01415.83
7.1.230.0040.00715.80
7.1.220.0040.01115.81
7.1.210.0000.01315.63
7.1.200.0060.00615.62
7.1.190.0110.00415.88
7.1.180.0070.00715.66
7.1.170.0030.01415.60
7.1.160.0060.00915.86
7.1.150.0090.00615.59
7.1.140.0040.00415.81
7.1.130.0100.00315.77
7.1.120.0100.00715.59
7.1.110.0130.00315.53
7.1.100.0070.00715.59
7.1.90.0070.00715.54
7.1.80.0000.01715.80
7.1.70.0070.00216.25
7.1.60.0070.00816.33
7.1.50.0090.00615.67
7.1.40.0070.00415.56
7.1.30.0040.01115.70
7.1.20.0030.01015.72
7.1.10.0070.00715.88
7.1.00.0070.04420.35
7.0.330.0030.01015.50
7.0.320.0030.01015.09
7.0.310.0060.00315.00
7.0.300.0030.01015.17
7.0.290.0040.00415.33
7.0.280.0040.00815.31
7.0.270.0000.01515.36
7.0.260.0080.00815.42
7.0.250.0040.00815.56
7.0.240.0040.00715.48
7.0.230.0060.00615.20
7.0.220.0030.00515.35
7.0.210.0030.01315.30
7.0.200.0330.00315.11
7.0.190.0070.01015.09
7.0.180.0030.00615.36
7.0.170.0060.00615.33
7.0.160.0110.00415.16
7.0.150.0080.00415.33
7.0.140.0090.03418.73
7.0.130.0100.04218.63
7.0.120.0080.04018.85
7.0.110.0030.03718.54
7.0.100.0080.03118.66
7.0.90.0100.03018.72
7.0.80.0100.04118.63
7.0.70.0120.03718.55
7.0.60.0020.04918.46
7.0.50.0090.03218.59
7.0.40.0060.04017.72
7.0.30.0130.02817.71
7.0.20.0050.04017.64
7.0.10.0070.03517.55
7.0.00.0080.03717.71
5.6.400.0060.00314.22
5.6.390.0000.00813.97
5.6.380.0070.00414.34
5.6.370.0070.00314.41
5.6.360.0060.00613.86
5.6.350.0000.01414.50
5.6.340.0030.01014.15
5.6.330.0090.00613.98
5.6.320.0110.00014.48
5.6.310.0070.00713.98
5.6.300.0040.01114.30
5.6.290.0070.03317.50
5.6.280.0110.04017.50
5.6.270.0080.04217.44
5.6.260.0030.03817.53
5.6.250.0120.04217.41
5.6.240.0110.04017.57
5.6.230.0120.03817.55
5.6.220.0100.04317.50
5.6.210.0130.03917.52
5.6.200.0150.03517.60
5.6.190.0150.03517.48
5.6.180.0090.03217.71
5.6.170.0070.03917.43
5.6.160.0050.03517.53
5.6.150.0080.04217.38
5.6.140.0060.03517.59
5.6.130.0070.04017.67
5.6.120.0090.03717.39
5.6.110.0110.03017.53
5.6.100.0080.03317.60
5.6.90.0080.02917.49
5.6.80.0130.03617.22
5.6.70.0120.03717.17
5.6.60.0120.03517.04
5.6.50.0120.03717.07
5.6.40.0070.04217.15
5.6.30.0100.04217.15
5.6.20.0100.03017.04
5.6.10.0050.04117.20
5.6.00.0100.02617.27

preferences:
59.8 ms | 400 KiB | 5 Q