3v4l.org

run code in 300+ PHP versions simultaneously
<?php $inputs = [ 'invalid', 'true', 'false', 'null', '17', '17.19', '{"foo":"bar"}', '[{"foo":"bar"}]', '{"0":"foo","bar":{"17":"baz"}}', ]; foreach ($inputs as $input) { var_dump(json_decode($input)); }

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.0130.00623.89
8.4.110.0130.00818.85
8.4.100.0130.00817.59
8.4.90.0090.00617.66
8.4.80.0110.01017.74
8.4.70.0120.00617.70
8.4.60.0110.01020.57
8.4.50.0130.00617.51
8.4.40.0100.01022.30
8.4.30.0000.01818.49
8.4.20.0130.00717.63
8.4.10.0030.00621.97
8.3.250.0100.00818.65
8.3.240.0100.00918.74
8.3.230.0040.00416.70
8.3.220.0120.00719.00
8.3.210.0100.00916.89
8.3.200.0040.00516.77
8.3.190.0040.00417.09
8.3.180.0100.00816.47
8.3.170.0100.00916.47
8.3.160.0100.00716.66
8.3.150.0080.00817.35
8.3.140.0030.01616.41
8.3.130.0120.00316.69
8.3.120.0190.00020.96
8.3.110.0070.00320.94
8.3.100.0040.00718.10
8.3.90.0110.00726.77
8.3.80.0030.00616.50
8.3.70.0100.01016.58
8.3.60.0040.01116.38
8.3.50.0030.01720.15
8.3.40.0060.00918.81
8.3.30.0110.00419.04
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.290.0090.00920.37
8.2.280.0090.00719.93
8.2.270.0160.00316.73
8.2.260.0120.00618.85
8.2.250.0030.00518.16
8.2.240.0040.00416.87
8.2.230.0060.00322.58
8.2.220.0040.00424.06
8.2.210.0050.00326.77
8.2.200.0090.00016.63
8.2.190.0120.00616.58
8.2.180.0040.01525.92
8.2.170.0120.00618.96
8.2.160.0040.01122.96
8.2.150.0080.00025.66
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0040.00426.16
8.2.110.0040.00420.32
8.2.100.0110.00017.72
8.2.90.0060.00319.08
8.2.80.0140.00017.97
8.2.70.0040.00417.63
8.2.60.0050.00317.63
8.2.50.0050.00317.63
8.2.40.0030.00519.97
8.2.30.0040.00418.06
8.2.20.0070.00020.36
8.2.10.0070.00017.96
8.2.00.0050.00219.17
8.1.330.0100.00816.62
8.1.320.0150.00516.02
8.1.310.0070.00316.73
8.1.300.0090.00020.02
8.1.290.0000.01030.84
8.1.280.0070.01025.92
8.1.270.0040.00423.99
8.1.260.0060.00326.35
8.1.250.0000.00828.09
8.1.240.0060.00323.98
8.1.230.0040.00817.70
8.1.220.0040.00417.74
8.1.210.0070.00319.14
8.1.200.0030.00617.11
8.1.190.0060.00317.10
8.1.180.0040.00418.10
8.1.170.0040.00417.62
8.1.160.0030.00518.77
8.1.150.0040.00418.58
8.1.140.0070.00017.50
8.1.130.0070.00018.78
8.1.120.0050.00317.36
8.1.110.0040.00417.33
8.1.100.0040.00417.40
8.1.90.0040.00417.48
8.1.80.0040.00417.32
8.1.70.0070.00017.50
8.1.60.0100.00017.54
8.1.50.0160.00817.54
8.1.40.0180.00717.47
8.1.30.0220.00617.65
8.1.20.0210.00317.64
8.1.10.0060.00617.45
8.1.00.0030.00717.35
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00318.43
8.0.270.0030.00316.69
8.0.260.0000.00618.34
8.0.250.0000.00616.88
8.0.240.0000.00716.97
8.0.230.0080.00016.91
8.0.220.0030.00316.89
8.0.210.0000.00816.88
8.0.200.0070.00016.90
8.0.190.0060.00316.83
8.0.180.0130.00016.75
8.0.170.0020.00816.90
8.0.160.0100.00516.86
8.0.150.0090.00016.71
8.0.140.0050.00516.84
8.0.130.0080.00016.79
8.0.120.0230.00016.88
8.0.110.0130.00616.85
8.0.100.0120.00816.90
8.0.90.0150.00616.82
8.0.80.0070.00716.79
8.0.70.0110.00316.89
8.0.60.0070.00716.76
8.0.50.0080.00416.88
8.0.30.0070.00416.74
8.0.20.0050.01016.89
8.0.10.0150.00316.91
7.4.330.0020.00215.55
7.4.320.0060.00016.58
7.4.300.0000.00616.50
7.4.290.0020.00916.40
7.4.280.0090.00916.49
7.4.270.0160.00416.63
7.4.260.0130.00816.50
7.4.250.0140.00016.59
7.4.240.0130.00016.61
7.4.230.0000.01516.56
7.4.220.0040.00716.46
7.4.210.0170.00016.47
7.4.200.0140.00416.52
7.4.190.0110.00816.63
7.4.180.0190.00016.65
7.4.160.0110.00716.45
7.4.150.0120.00916.39
7.4.140.0200.00016.43
7.4.130.0160.00316.47
7.4.120.0120.00716.37
7.4.110.0140.00516.28
7.4.100.0220.00016.63
7.4.90.0130.00716.43
7.4.80.0210.00016.28
7.4.70.0090.01216.38
7.4.60.0150.00616.33
7.4.50.0060.01316.31
7.4.40.0130.00616.19
7.4.30.0170.00316.27
7.4.20.0160.00316.36
7.4.10.0170.00016.46
7.4.00.0040.00816.41

preferences:
28.87 ms | 403 KiB | 5 Q