3v4l.org

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

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.0090.01123.68
8.4.110.0130.00819.91
8.4.100.0100.01118.84
8.4.90.0040.00620.61
8.4.80.0120.00718.37
8.4.70.0070.00417.91
8.4.60.0110.01018.53
8.4.50.0120.00818.37
8.4.40.0100.00717.22
8.4.30.0120.00317.27
8.4.20.0100.01019.40
8.4.10.0100.01020.67
8.3.250.0110.00718.88
8.3.240.0150.00318.81
8.3.230.0050.00416.63
8.3.220.0110.00918.81
8.3.210.0060.00616.26
8.3.200.0060.00416.50
8.3.190.0040.00417.26
8.3.180.0080.01117.11
8.3.170.0110.00718.60
8.3.160.0110.00716.45
8.3.150.0060.01217.14
8.3.140.0090.00916.54
8.3.130.0000.00816.50
8.3.120.0030.00620.76
8.3.110.0080.00020.94
8.3.100.0080.00024.06
8.3.90.0070.00026.77
8.3.80.0060.00318.43
8.3.70.0120.00918.38
8.3.60.0150.00618.18
8.3.50.0100.00518.11
8.3.40.0070.00718.62
8.3.30.0000.01618.42
8.3.20.0080.00018.82
8.3.10.0090.00021.86
8.3.00.0040.00419.55
8.2.290.0090.00620.51
8.2.280.0110.00818.37
8.2.270.0130.00317.21
8.2.260.0090.00918.06
8.2.250.0080.00816.71
8.2.240.0090.00017.15
8.2.230.0090.00022.58
8.2.220.0090.00037.54
8.2.210.0060.00326.77
8.2.200.0070.00316.25
8.2.190.0130.00718.22
8.2.180.0000.01516.38
8.2.170.0130.00722.96
8.2.160.0090.00918.91
8.2.150.0050.00224.18
8.2.140.0080.00024.66
8.2.130.0070.00319.64
8.2.120.0070.00026.35
8.2.110.0100.00022.21
8.2.100.0070.00417.78
8.2.90.0040.00819.13
8.2.80.0030.00617.97
8.2.70.0030.00617.50
8.2.60.0040.00417.93
8.2.50.0030.00718.07
8.2.40.0000.00918.16
8.2.30.0000.00717.98
8.2.20.0070.00018.04
8.2.10.0070.00017.97
8.2.00.0040.00419.04
8.1.330.0120.00621.76
8.1.320.0100.00916.30
8.1.310.0060.00317.69
8.1.300.0100.00620.25
8.1.290.0000.01030.84
8.1.280.0100.00725.92
8.1.270.0130.00623.81
8.1.260.0050.00226.35
8.1.250.0030.00628.09
8.1.240.0030.00623.97
8.1.230.0110.00022.08
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0050.00517.21
8.1.190.0110.00017.10
8.1.180.0000.00818.10
8.1.170.0040.00418.70
8.1.160.0050.00218.81
8.1.150.0030.00518.77
8.1.140.0000.00817.81
8.1.130.0060.00318.92
8.1.120.0070.00017.35
8.1.110.0000.00717.29
8.1.100.0040.00417.38
8.1.90.0050.00217.41
8.1.80.0000.00817.43
8.1.70.0030.00317.30
8.1.60.0050.00317.43
8.1.50.0040.00417.35
8.1.40.0080.00017.43
8.1.30.0040.00417.46
8.1.20.0080.00017.56
8.1.10.0000.00717.43
8.1.00.0100.00317.36
8.0.300.0070.00018.77
8.0.290.0000.00716.63
8.0.280.0070.00018.37
8.0.270.0070.00017.23
8.0.260.0000.00617.16
8.0.250.0030.00316.92
8.0.240.0000.00816.89
8.0.230.0070.00316.92
8.0.220.0040.00416.77
8.0.210.0030.00316.71
8.0.200.0000.00616.89
8.0.190.0030.00616.92
8.0.180.0040.00416.85
8.0.170.0060.00316.72
8.0.160.0030.00316.78
8.0.150.0000.00716.71
8.0.140.0030.00316.70
8.0.130.0000.00613.20
8.0.120.0080.00016.67
8.0.110.0000.00716.82
8.0.100.0040.00416.79
8.0.90.0000.00716.86
8.0.80.0090.00616.80
8.0.70.0040.00416.66
8.0.60.0070.00016.69
8.0.50.0080.00016.81
8.0.30.0090.01016.86
8.0.20.0170.00517.40
8.0.10.0020.00516.82
8.0.00.0110.00716.55
7.4.330.0000.00515.55
7.4.320.0030.00316.42
7.4.300.0000.00716.44
7.4.290.0060.00316.37
7.4.280.0040.00416.41
7.4.270.0060.00316.46
7.4.260.0030.00316.40
7.4.250.0040.00416.46
7.4.240.0070.00016.52
7.4.230.0030.00316.33
7.4.220.0000.00916.27
7.4.210.0030.01416.47
7.4.200.0070.00016.55
7.4.160.0080.00916.36
7.4.140.0110.01217.86
7.4.130.0100.01316.56
7.4.120.0120.00616.43
7.4.110.0110.01416.21
7.4.100.0180.00316.52
7.4.90.0100.00716.43
7.4.80.0060.01319.39
7.4.70.0040.01216.41
7.4.60.0120.00816.26
7.4.50.0040.01516.38
7.4.40.0140.00616.38
7.4.10.0140.00016.40
7.4.00.0070.01115.70
7.3.330.0000.00612.93
7.3.320.0060.00013.03
7.3.310.0000.00716.20
7.3.300.0070.00016.03
7.3.290.0030.00316.12
7.3.280.0080.00916.17
7.3.260.0100.00716.35
7.3.240.0110.00516.24
7.3.230.0100.00716.43
7.3.210.0130.00416.06
7.3.200.0070.01016.25
7.3.190.0100.00716.31
7.3.180.0080.01116.09
7.3.170.0060.00916.16
7.3.160.0060.00916.14
7.3.130.0120.00916.07
7.3.120.0140.00716.08
7.3.110.0090.00616.37
7.3.100.0120.00316.08
7.3.90.0070.00716.26
7.3.80.0100.00316.20
7.3.70.0060.01016.16
7.3.60.0060.00616.11
7.3.50.0070.01016.27
7.3.40.0000.01516.21
7.3.30.0130.00316.24
7.3.20.0070.01018.07
7.3.10.0090.00617.97
7.3.00.0070.00718.13
7.2.330.0140.00716.23
7.2.320.0090.00916.61
7.2.310.0120.01216.28
7.2.300.0050.01016.27
7.2.290.0140.00316.41
7.2.260.0060.01216.24
7.2.250.0140.00716.56
7.2.240.0060.00916.42
7.2.230.0080.00816.29
7.2.220.0110.00016.58
7.2.210.0060.01116.32
7.2.200.0150.00016.43
7.2.190.0040.01416.23
7.2.180.0070.00716.21
7.2.170.0160.00316.51
7.2.160.0060.01016.44
7.2.150.0110.00418.32
7.2.140.0060.00618.45
7.2.130.0000.01518.06
7.2.120.0090.00918.18
7.2.110.0080.00318.02
7.2.100.0060.00618.09
7.2.90.0040.00818.34
7.2.80.0070.00817.34
7.2.70.0000.01418.13
7.2.60.0060.00817.62
7.2.50.0060.01218.13
7.2.40.0560.01018.01
7.2.30.0400.00518.02
7.2.20.0450.01017.94
7.2.10.0430.01118.14
7.2.00.0480.01018.08
7.1.330.0100.00717.27
7.1.320.0030.01017.41
7.1.310.0090.00317.34
7.1.300.0080.00817.18
7.1.290.0060.00617.36
7.1.280.0040.01517.42
7.1.270.0070.00317.27
7.1.260.0030.01117.19
7.1.250.0070.00717.17
7.1.240.0090.00017.22
7.1.230.0110.00417.39
7.1.220.0060.00917.09
7.1.210.0040.00817.21
7.1.200.0050.00516.40
7.1.190.0040.01117.27
7.1.180.0030.01317.25
7.1.170.0030.00717.32
7.1.160.0470.00716.99
7.1.150.0460.00616.84
7.1.140.0460.00917.02
7.1.130.0380.01116.92
7.1.120.0440.01016.91
7.1.110.0380.01116.65
7.1.100.0470.00616.70
7.1.90.0640.00616.58
7.1.80.0550.00816.72
7.1.70.0850.00616.37
7.1.60.0800.00625.28
7.1.50.0810.00824.92
7.1.40.0740.01224.85
7.1.30.0230.01124.96
7.1.20.0740.01024.95
7.1.10.0830.00716.02
7.1.00.0710.00915.98
7.0.330.0110.00717.06
7.0.320.0100.00717.10
7.0.310.0040.01116.79
7.0.300.0100.00316.84
7.0.290.0030.00616.83
7.0.280.0030.01116.98
7.0.270.0070.00316.98
7.0.260.0100.00717.07
7.0.250.0060.00616.86
7.0.240.0060.00316.93
7.0.230.0030.01016.92
7.0.220.0000.01316.79
7.0.210.0030.01017.00
7.0.200.0030.00716.75
7.0.190.0060.00916.93
7.0.180.0060.00917.21
7.0.170.0000.01316.90
7.0.160.0080.00817.00
7.0.150.0100.00316.91
7.0.140.0100.00316.95
7.0.130.0000.01016.90
7.0.120.0060.00916.70
7.0.110.0060.00616.89
7.0.100.0030.01217.05
7.0.90.0130.00716.93
7.0.80.0030.01216.80
7.0.70.0030.01216.93
7.0.60.0000.01116.75
7.0.50.0000.01216.62
7.0.40.0080.00514.84
7.0.30.0060.00914.90
7.0.20.0030.01014.95
7.0.10.0030.01414.94
7.0.00.0060.01014.87
5.6.400.0070.00315.79
5.6.390.0100.00615.54
5.6.380.0090.00915.48
5.6.370.0070.00315.76
5.6.360.0040.00815.86
5.6.350.0090.00615.89
5.6.340.0000.01015.45
5.6.330.0040.00815.74
5.6.320.0090.00915.67
5.6.310.0100.00715.85
5.6.300.0040.00715.62
5.6.290.0040.01115.47
5.6.280.0000.01015.65
5.6.270.0070.01015.68
5.6.260.0060.01215.78
5.6.250.0060.01215.57
5.6.240.0100.00715.70
5.6.230.0040.01115.94
5.6.220.0110.00415.55
5.6.210.0030.00715.54
5.6.200.0110.00015.71
5.6.190.0110.00415.74
5.6.180.0070.00415.63
5.6.170.0040.01115.59
5.6.160.0090.00615.96
5.6.150.0030.01315.78
5.6.140.0030.01215.49
5.6.130.0060.00915.86
5.6.120.0070.00715.60
5.6.110.0110.00415.58
5.6.100.0130.00315.66
5.6.90.0030.01215.70
5.6.80.0120.00315.56
5.6.70.0060.00915.56
5.6.60.0070.00415.46
5.6.50.0030.01315.56
5.6.40.0060.00615.60
5.6.30.0070.00715.67
5.6.20.0030.00615.65
5.6.10.0060.00315.47
5.6.00.0060.00615.64

preferences:
186.8 ms | 403 KiB | 5 Q