3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach([ 'null', 'true', 'false', '"text"', '123', '1E2', '[1,2,3]', '{"foo":"bar"}', ] as $json) { var_dump(json_decode($json, true)); assert(json_last_error() === JSON_ERROR_NONE); }

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.120.0120.00820.58
8.4.110.0110.00822.57
8.4.100.0120.00919.59
8.4.90.0130.00818.54
8.4.80.0060.00219.68
8.4.70.0050.00418.29
8.4.60.0150.00618.79
8.4.50.0100.01018.64
8.4.40.0080.00317.47
8.4.30.0100.01017.39
8.4.20.0130.00719.49
8.4.10.0030.00617.67
8.3.250.0070.00518.63
8.3.240.0140.00516.64
8.3.230.0090.00816.32
8.3.220.0090.00817.29
8.3.210.0050.00318.19
8.3.200.0050.00516.50
8.3.190.0050.00417.16
8.3.180.0070.00416.51
8.3.170.0070.01120.46
8.3.160.0150.00317.09
8.3.150.0160.00320.55
8.3.140.0060.00318.32
8.3.130.0070.01116.54
8.3.120.0000.01519.04
8.3.110.0040.00420.94
8.3.100.0150.00316.74
8.3.90.0040.00418.14
8.3.80.0090.00317.97
8.3.70.0180.00416.13
8.3.60.0120.00618.18
8.3.50.0080.00717.30
8.3.40.0120.00918.71
8.3.30.0180.00318.80
8.3.20.0040.00418.84
8.3.10.0040.00423.53
8.3.00.0040.00423.64
8.2.290.0090.00820.13
8.2.280.0130.00718.15
8.2.270.0100.01016.91
8.2.260.0110.00720.45
8.2.250.0110.00416.45
8.2.240.0110.00418.71
8.2.230.0040.00422.58
8.2.220.0080.00024.06
8.2.210.0140.00326.77
8.2.200.0070.00418.28
8.2.190.0150.00016.63
8.2.180.0050.01018.16
8.2.170.0070.00722.96
8.2.160.0100.00619.14
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0090.00019.36
8.2.110.0030.00621.04
8.2.100.0090.00317.78
8.2.90.0030.00617.78
8.2.80.0040.00417.97
8.2.70.0040.00417.80
8.2.60.0030.00617.80
8.2.50.0000.00818.10
8.2.40.0000.00719.30
8.2.30.0000.00819.15
8.2.20.0040.00417.86
8.2.10.0000.00719.42
8.2.00.0050.00319.24
8.1.330.0100.00821.88
8.1.320.0110.00915.86
8.1.310.0070.00716.55
8.1.300.0080.00816.63
8.1.290.0070.00418.88
8.1.280.0090.00625.92
8.1.270.0040.00421.96
8.1.260.0040.00426.35
8.1.250.0040.01128.09
8.1.240.0140.00722.42
8.1.230.0070.00420.95
8.1.220.0000.00817.74
8.1.210.0080.00018.85
8.1.200.0090.00017.23
8.1.190.0060.00317.10
8.1.180.0000.00918.10
8.1.170.0040.00418.82
8.1.160.0050.00318.77
8.1.150.0000.00818.67
8.1.140.0070.00017.61
8.1.130.0000.00718.91
8.1.120.0040.00417.23
8.1.110.0000.00717.21
8.1.100.0040.00417.33
8.1.90.0070.00017.35
8.1.80.0050.00317.34
8.1.70.0080.00017.29
8.1.60.0080.00017.57
8.1.50.0050.00317.31
8.1.40.0050.00317.45
8.1.30.0080.00017.59
8.1.20.0040.00417.60
8.1.10.0000.00717.41
8.1.00.0040.00417.27
8.0.300.0030.00620.04
8.0.290.0060.00316.75
8.0.280.0030.00318.38
8.0.270.0030.00317.24
8.0.260.0000.00717.24
8.0.250.0030.00316.88
8.0.240.0050.00316.92
8.0.230.0000.00716.79
8.0.220.0000.00716.84
8.0.210.0000.00716.71
8.0.200.0000.00716.77
8.0.190.0070.00016.80
8.0.180.0000.00916.76
8.0.170.0060.00316.83
8.0.160.0040.00416.81
8.0.150.0060.00316.67
8.0.140.0080.00016.88
8.0.130.0000.00613.23
8.0.120.0000.00716.88
8.0.110.0040.00416.88
8.0.100.0000.00716.77
8.0.90.0040.00416.90
8.0.80.0120.00516.89
8.0.70.0080.00016.77
8.0.60.0070.00016.96
8.0.50.0080.00016.89
8.0.30.0110.01017.10
8.0.20.0060.01317.40
8.0.10.0000.00717.00
8.0.00.0130.00616.72
7.4.330.0000.00415.55
7.4.320.0030.00316.51
7.4.300.0000.00616.44
7.4.290.0070.00016.51
7.4.280.0040.00416.38
7.4.270.0000.00716.45
7.4.260.0000.00716.46
7.4.250.0000.00816.50
7.4.240.0000.00716.38
7.4.230.0030.00316.45
7.4.220.0040.00416.57
7.4.210.0080.01116.47
7.4.200.0050.00316.29
7.4.160.0110.00516.64
7.4.140.0110.00817.86
7.4.130.0070.01116.40
7.4.120.0080.01016.55
7.4.110.0070.01016.51
7.4.100.0080.00816.36
7.4.90.0060.01516.45
7.4.80.0180.00019.39
7.4.70.0040.01516.48
7.4.60.0070.00716.42
7.4.50.0090.00616.48
7.4.40.0120.00616.30
7.4.00.0030.01514.62
7.3.330.0060.00013.16
7.3.320.0030.00313.26
7.3.310.0000.00716.41
7.3.300.0040.00416.30
7.3.290.0070.00016.29
7.3.280.0080.00716.35
7.3.260.0120.00816.40
7.3.240.0110.00716.45
7.3.230.0080.00816.25
7.3.210.0190.00016.24
7.3.200.0060.01216.40
7.3.190.0100.00616.34
7.3.180.0080.00816.33
7.3.170.0120.00416.41
7.3.160.0070.01316.43
7.3.10.0070.00716.66
7.3.00.0070.00716.71
7.2.330.0120.00616.50
7.2.320.0090.00916.59
7.2.310.0130.01016.71
7.2.300.0150.00616.64
7.2.290.0090.00916.60
7.2.130.0000.01716.80
7.2.120.0080.00816.89
7.2.110.0030.00916.69
7.2.100.0100.00616.92
7.2.90.0060.00916.98
7.2.80.0090.00316.80
7.2.70.0100.00915.88
7.2.60.0080.01315.83
7.2.50.0120.00815.89
7.2.40.0180.00015.92
7.2.30.0140.00716.05
7.2.20.0110.00715.86
7.2.10.0140.00415.68
7.2.00.0100.00916.04
7.1.250.0000.00915.78
7.1.200.0100.00315.81
7.1.170.0170.00814.03
7.1.160.0190.00613.85
7.1.150.0210.00314.05
7.1.140.0170.00713.88
7.1.130.0200.00413.94
7.1.120.0220.00613.93
7.1.110.0240.00413.87
7.1.100.0140.01013.60
7.1.90.0210.00313.71
7.1.80.0150.01213.89
7.1.70.0120.01213.89
7.1.60.0360.00931.82
7.1.50.0380.00931.83
7.1.40.0450.00431.80
7.1.30.0390.01131.75
7.1.20.0360.01331.93
7.1.10.0870.00313.80
7.1.00.0240.00313.86

preferences:
28.74 ms | 403 KiB | 5 Q