3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "'string'"; json_decode("'string'"); var_dump(json_last_error(), json_last_error_msg()); echo "100"; json_decode("100"); // int var_dump(json_last_error(), json_last_error_msg()); echo "1."; json_decode("1."); // float var_dump(json_last_error(), json_last_error_msg()); echo "1.0"; json_decode("1.0"); // float var_dump(json_last_error(), json_last_error_msg()); echo ".5"; json_decode(".5"); // float var_dump(json_last_error(), json_last_error_msg()); echo "true"; json_decode("true"); // bool var_dump(json_last_error(), 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.130.0060.00318.27
8.3.120.0080.00018.90
8.3.110.0080.00420.94
8.3.100.0060.00324.06
8.3.90.0030.00926.77
8.3.80.0030.00617.97
8.3.70.0120.00918.31
8.3.60.0130.00716.50
8.3.50.0220.01022.04
8.3.40.0090.01218.71
8.3.30.0090.00618.49
8.3.20.0070.00020.34
8.3.10.0080.00023.51
8.3.00.0050.00319.66
8.2.250.0080.00018.33
8.2.240.0150.00017.06
8.2.230.0100.01022.58
8.2.220.0040.00437.54
8.2.210.0140.00426.77
8.2.200.0050.00816.25
8.2.190.0120.00316.58
8.2.180.0120.00316.50
8.2.170.0040.01122.96
8.2.160.0090.00622.11
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0050.00521.11
8.2.120.0000.00826.35
8.2.110.0070.00320.39
8.2.100.0090.00317.93
8.2.90.0000.00919.22
8.2.80.0030.00617.97
8.2.70.0070.00317.50
8.2.60.0050.00317.80
8.2.50.0030.00518.07
8.2.40.0040.00422.05
8.2.30.0030.00320.51
8.2.20.0000.00717.45
8.2.10.0040.00417.94
8.2.00.0000.00717.89
8.1.300.0120.00317.77
8.1.290.0040.00430.84
8.1.280.0070.00725.92
8.1.270.0150.00420.14
8.1.260.0000.00728.09
8.1.250.0040.00428.09
8.1.240.0080.00022.14
8.1.230.0100.00017.64
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0080.00017.23
8.1.190.0000.00817.10
8.1.180.0050.00318.10
8.1.170.0030.00518.58
8.1.160.0070.00020.65
8.1.150.0040.00418.65
8.1.140.0040.00419.38
8.1.130.0000.00717.65
8.1.120.0000.00717.39
8.1.110.0040.00417.32
8.1.100.0000.00817.25
8.1.90.0000.00717.32
8.1.80.0060.00317.23
8.1.70.0040.00417.25
8.1.60.0040.00417.43
8.1.50.0040.00417.34
8.1.40.0040.00417.30
8.1.30.0040.00417.45
8.1.20.0040.00417.55
8.1.10.0000.00717.47
8.1.00.0070.00017.39
8.0.300.0040.00418.77
8.0.290.0040.00416.58
8.0.280.0030.00318.39
8.0.270.0030.00317.26
8.0.260.0000.00617.21
8.0.250.0000.00616.70
8.0.240.0030.00316.84
8.0.230.0110.00016.89
8.0.220.0040.00416.70
8.0.210.0000.00716.66
8.0.200.0040.00416.77
8.0.190.0040.00416.80
8.0.180.0040.00416.79
8.0.170.0000.00716.79
8.0.160.0000.00716.74
8.0.150.0050.00216.85
8.0.140.0040.00416.73
8.0.130.0030.00313.14
8.0.120.0000.00916.64
8.0.110.0080.00016.65
8.0.100.0050.00216.68
8.0.90.0000.00716.71
8.0.80.0090.00916.75
8.0.70.0000.00716.65
8.0.60.0070.00016.60
8.0.50.0040.00416.66
8.0.30.0070.01016.85
8.0.20.0100.00917.40
8.0.10.0000.00716.89
8.0.00.0080.01016.65
7.4.330.0000.00516.81
7.4.320.0070.00016.39
7.4.300.0030.00316.38
7.4.290.0070.00016.48
7.4.280.0040.00816.47
7.4.270.0030.00316.46
7.4.260.0070.00016.45
7.4.250.0040.00416.36
7.4.240.0040.00416.41
7.4.230.0060.00016.51
7.4.220.0070.01116.41
7.4.210.0070.00716.59
7.4.200.0050.00216.51
7.4.160.0110.00316.18
7.4.150.0110.00817.40
7.4.140.0130.01117.86
7.4.130.0030.01816.44
7.4.120.0070.00916.36
7.4.110.0060.01316.35
7.4.100.0150.00616.46
7.4.90.0200.00416.44
7.4.80.0060.01119.39
7.4.70.0040.01816.25
7.4.60.0000.01616.52
7.4.50.0090.00616.49
7.4.40.0090.00616.56
7.4.30.0130.00916.29
7.4.00.0120.00414.68
7.3.330.0000.00613.08
7.3.320.0030.00613.14
7.3.310.0030.00416.15
7.3.300.0030.00316.07
7.3.290.0060.00816.15
7.3.280.0090.00616.16
7.3.270.0140.00417.40
7.3.260.0060.01216.33
7.3.240.0090.01116.23
7.3.230.0140.00316.45
7.3.210.0030.01316.18
7.3.200.0080.00816.44
7.3.190.0060.01316.18
7.3.180.0060.00916.46
7.3.170.0130.00916.44
7.3.160.0040.01216.32
7.3.120.0070.01014.73
7.3.110.0060.00714.84
7.3.100.0040.00414.54
7.3.90.0000.01514.65
7.3.80.0100.00314.66
7.3.70.0060.01014.75
7.3.60.0040.00814.50
7.3.50.0060.00314.68
7.3.40.0100.00714.59
7.3.30.0100.00314.70
7.3.20.0000.01416.57
7.3.10.0080.00716.43
7.3.00.0100.00516.55
7.2.330.0070.01016.59
7.2.320.0060.01216.61
7.2.310.0090.00916.45
7.2.300.0080.00816.38
7.2.290.0040.01516.54
7.2.240.0120.00014.85
7.2.230.0030.01014.76
7.2.220.0070.00315.00
7.2.210.0000.00914.83
7.2.200.0070.01014.87
7.2.190.0030.00714.68
7.2.180.0070.00314.77
7.2.170.0030.01514.93
7.2.160.0060.00615.07
7.2.150.0100.00316.70
7.2.140.0100.00416.76
7.2.130.0070.00816.61
7.2.120.0060.00916.49
7.2.110.0070.00816.56
7.2.100.0060.00916.71
7.2.90.0070.00916.68
7.2.80.0080.00916.78
7.2.70.0090.00616.75
7.2.60.0070.00916.72
7.2.50.0050.01016.57
7.2.40.0090.00716.69
7.2.30.0040.00916.78
7.2.20.0060.00916.67
7.2.10.0090.00716.74
7.2.00.0090.00817.10
7.1.330.0000.00715.79
7.1.320.0070.01015.85
7.1.310.0060.00615.78
7.1.300.0080.00415.61
7.1.290.0000.01715.70
7.1.280.0030.01415.34
7.1.270.0120.00315.69
7.1.260.0070.00715.67
7.1.250.0080.00715.56
7.1.230.0100.00715.43
7.1.220.0100.00815.53
7.1.210.0060.00915.68
7.1.200.0130.00415.56
7.1.190.0090.00915.52
7.1.180.0070.00715.67
7.1.170.0130.00515.56
7.1.160.0600.00015.67
7.1.150.0110.00615.69
7.1.140.0330.00015.38
7.1.130.0070.01015.43
7.1.120.0050.00815.57
7.1.110.0070.01015.61
7.1.100.0080.00516.85
7.1.90.0120.00315.66
7.1.80.0110.00315.73
7.1.70.0090.00616.24
7.1.60.0110.01117.50
7.1.50.0080.01416.48
7.1.40.0100.01315.63
7.1.30.0160.00315.90
7.1.20.0150.00715.63
7.1.10.0110.00515.61
7.1.00.0130.03819.07
7.0.310.0110.00515.27
7.0.300.0430.00615.37
7.0.290.0110.00415.27
7.0.280.0040.01315.41
7.0.270.0060.00615.30
7.0.260.0060.00615.01
7.0.250.0060.00615.09
7.0.240.0100.00715.43
7.0.230.0100.00515.47
7.0.220.0100.00715.28
7.0.210.0120.00315.44
7.0.200.0070.00715.76
7.0.190.0070.00715.20
7.0.180.0100.00715.19
7.0.170.0110.00315.14
7.0.160.0370.00015.33
7.0.150.0110.00415.40
7.0.140.0070.01015.07
7.0.130.0120.00615.35
7.0.120.0110.00314.98
7.0.110.0360.00615.30
7.0.100.0100.00315.16
7.0.90.0130.00715.22
7.0.80.0150.00415.20
7.0.70.0070.00715.02
7.0.60.0120.03117.60
7.0.50.0040.04116.47
7.0.40.0040.03116.80
7.0.30.0120.04316.73
7.0.20.0240.04016.62
7.0.10.0080.02316.66
7.0.00.0090.02416.76
5.6.380.0110.00414.23
5.6.370.0170.00014.29
5.6.360.0140.00413.95
5.6.350.0110.00214.27
5.6.340.0110.00513.96
5.6.330.0070.00713.89
5.6.320.0130.00014.36
5.6.310.0130.00014.07
5.6.300.0110.00213.95
5.6.290.0120.00014.16
5.6.280.0110.02517.44
5.6.270.0110.00714.35
5.6.260.0090.00613.93
5.6.250.0120.00414.20
5.6.240.0170.00314.11
5.6.230.0120.00614.29
5.6.220.0110.00814.10
5.6.210.0150.03817.49
5.6.200.0080.03516.20
5.6.190.0130.04317.24
5.6.180.1600.02917.15
5.6.170.0190.04117.40
5.6.160.0050.02917.20
5.6.150.0090.02516.20
5.6.140.0090.02316.18
5.6.130.0060.04616.17
5.6.120.0110.04117.73
5.6.110.0080.03717.61
5.6.100.0080.02117.52
5.6.90.0040.04617.57
5.6.80.0080.02217.17
5.6.70.0080.00814.11
5.6.60.0130.00614.10
5.6.50.0120.00214.10
5.6.40.0120.00414.15
5.6.30.0030.01214.03
5.6.20.0100.00714.20
5.6.10.0100.00614.14
5.6.00.0170.00013.94
5.5.380.0080.00312.79
5.5.370.0060.00612.79
5.5.360.0000.01112.79
5.5.350.0130.03716.60
5.5.340.0090.03015.40
5.5.330.0080.04016.59
5.5.320.0230.03816.52
5.5.310.0150.02116.48
5.5.300.0080.03315.39
5.5.290.0060.04315.40
5.5.280.0070.04616.76
5.5.270.0110.02316.81
5.5.260.0080.02516.79
5.5.250.0090.03516.70
5.5.240.0100.04416.56
5.5.230.0080.00512.79
5.5.220.0070.00712.79
5.5.210.0130.00012.79
5.5.200.0070.00212.79
5.5.190.0080.00812.79
5.5.180.0120.00312.79
5.5.170.0080.00814.07
5.5.160.0030.01012.79
5.5.150.0070.00712.79
5.5.140.0080.00512.79
5.5.130.0090.00612.79
5.5.120.0070.00712.79
5.5.110.0070.00712.79
5.5.100.0060.00312.79
5.5.90.0100.00312.79
5.5.80.0130.00312.79
5.5.70.0000.01112.79
5.5.60.0060.00612.79
5.5.50.0130.00312.79
5.5.40.0040.00712.79
5.5.30.0060.00612.79
5.5.20.0080.00412.79
5.5.10.0100.00312.79
5.5.00.0070.00412.79

preferences:
67.84 ms | 403 KiB | 5 Q