3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = <<<'EOT' { "test": "a b" } EOT; var_dump(json_decode($str), json_last_error_msg());

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.0060.00918.43
8.3.50.0100.01017.74
8.3.40.0110.00318.72
8.3.30.0080.00818.50
8.3.20.0040.00418.76
8.3.10.0000.00823.65
8.3.00.0030.00622.43
8.2.180.0090.00918.18
8.2.170.0140.00422.96
8.2.160.0070.00721.07
8.2.150.0070.00024.18
8.2.140.0090.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00419.77
8.2.110.0080.00319.45
8.2.100.0080.00417.72
8.2.90.0030.00618.22
8.2.80.0040.00417.97
8.2.70.0060.00317.92
8.2.60.0060.00318.09
8.2.50.0040.00418.10
8.2.40.0020.00519.35
8.2.30.0050.00320.66
8.2.20.0020.00518.02
8.2.10.0000.00717.97
8.2.00.0030.00319.23
8.1.280.0120.00625.92
8.1.270.0140.00021.92
8.1.260.0030.00726.35
8.1.250.0040.00428.09
8.1.240.0090.00323.64
8.1.230.0040.00822.75
8.1.220.0040.00417.74
8.1.210.0000.00718.78
8.1.200.0090.00017.23
8.1.190.0040.00417.11
8.1.180.0030.00618.10
8.1.170.0080.00018.52
8.1.160.0040.00418.84
8.1.150.0000.00718.74
8.1.140.0050.00319.00
8.1.130.0060.00018.93
8.1.120.0000.00717.41
8.1.110.0050.00317.29
8.1.100.0030.00717.29
8.1.90.0050.00517.41
8.1.80.0000.00717.36
8.1.70.0000.00717.34
8.1.60.0000.00817.57
8.1.50.0060.00317.33
8.1.40.0030.00917.41
8.1.30.0060.00317.55
8.1.20.0040.00417.63
8.1.10.0000.00817.39
8.1.00.0080.00017.38
8.0.300.0040.00419.91
8.0.290.0050.00516.75
8.0.280.0040.00418.38
8.0.270.0000.00717.07
8.0.260.0000.00618.57
8.0.250.0060.00316.98
8.0.240.0060.00016.99
8.0.230.0070.00016.93
8.0.220.0000.00716.91
8.0.210.0000.00716.92
8.0.200.0050.00216.93
8.0.190.0040.00416.95
8.0.180.0020.00516.90
8.0.170.0080.00016.81
8.0.160.0040.00416.95
8.0.150.0030.00316.84
8.0.140.0030.00516.87
8.0.130.0030.00313.27
8.0.120.0050.00316.74
8.0.110.0050.00316.87
8.0.100.0000.00716.77
8.0.90.0000.00716.78
8.0.80.0120.00516.91
8.0.70.0070.00016.84
8.0.60.0000.00716.73
8.0.50.0000.00716.83
8.0.30.0100.01017.03
8.0.20.0170.00317.40
8.0.10.0060.00317.05
8.0.00.0100.00716.67
7.4.330.0020.00215.55
7.4.320.0040.00416.52
7.4.300.0000.00716.46
7.4.290.0030.00316.50
7.4.280.0000.00716.41
7.4.270.0030.00316.47
7.4.260.0030.00316.31
7.4.250.0030.00316.31
7.4.240.0080.00016.34
7.4.230.0000.00716.55
7.4.220.0000.00716.32
7.4.210.0080.00816.54
7.4.200.0000.00716.51
7.4.160.0080.00816.39
7.4.140.0110.01017.86
7.4.130.0150.00916.54
7.4.120.0090.01116.41
7.4.110.0150.00316.39
7.4.100.0160.00816.61
7.4.90.0120.00616.29
7.4.80.0180.00419.39
7.4.70.0100.00616.35
7.4.60.0120.00416.40
7.4.50.0110.00416.02
7.4.40.0060.01616.66
7.4.00.0060.00615.20
7.3.330.0030.00313.09
7.3.320.0030.00313.13
7.3.310.0040.00416.20
7.3.300.0060.00316.21
7.3.290.0000.01416.23
7.3.280.0080.00816.24
7.3.260.0080.00916.27
7.3.240.0110.00816.27
7.3.230.0080.00816.23
7.3.210.0090.00916.24
7.3.200.0090.00616.18
7.3.190.0090.00616.36
7.3.180.0180.00416.31
7.3.170.0120.00316.49
7.3.160.0130.00316.39
7.2.330.0110.00716.31
7.2.320.0100.01016.44
7.2.310.0090.00916.44
7.2.300.0030.02016.39
7.2.290.0070.01116.35
7.2.110.0180.00916.48
7.2.80.0510.00714.33
7.2.70.0450.00914.80
7.2.60.0520.00614.63
7.2.50.0540.00714.42
7.2.40.0530.00914.76
7.2.30.0470.00514.72
7.2.20.0560.00514.78
7.2.10.0450.00614.84
7.2.00.0730.01014.70
7.1.200.0410.00613.87
7.1.190.0490.00713.70
7.1.180.0410.01013.67
7.1.170.0420.00713.75
7.1.160.0410.00913.69
7.1.150.0500.00613.69
7.1.140.0400.01013.62
7.1.130.0540.00313.81
7.1.120.0440.00513.79
7.1.110.0440.00513.67
7.1.100.0580.00513.82
7.1.90.0490.00813.61
7.1.80.0640.00513.90
7.1.70.0830.00813.86
7.1.60.0870.01231.86
7.1.50.1070.00831.71
7.1.40.0940.00831.86
7.1.30.0840.00831.78
7.1.20.0870.01331.80
7.1.10.0610.01313.80
7.1.00.0500.00713.81

preferences:
56.97 ms | 400 KiB | 5 Q