3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '{"a":1, "b": {"ba": {"bb": "bb" } }}'; $obj = json_decode($string); var_dump($obj);

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.0070.00718.15
8.3.50.0110.00417.80
8.3.40.0100.00318.76
8.3.30.0120.00318.46
8.3.20.0110.00319.25
8.3.10.0040.00423.54
8.3.00.0000.00820.82
8.2.180.0100.00618.18
8.2.170.0140.00022.96
8.2.160.0000.01420.82
8.2.150.0070.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00718.09
8.2.120.0040.00426.35
8.2.110.0000.00922.02
8.2.100.0110.00019.15
8.2.90.0040.00417.50
8.2.80.0030.00517.97
8.2.70.0040.00417.93
8.2.60.0000.00718.03
8.2.50.0030.00518.10
8.2.40.0040.00419.20
8.2.30.0040.00419.23
8.2.20.0040.00417.96
8.2.10.0000.00718.16
8.2.00.0030.00617.56
8.1.280.0150.00625.92
8.1.270.0030.00520.57
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0040.00423.88
8.1.230.0040.01121.94
8.1.220.0000.00817.79
8.1.210.0000.00818.77
8.1.200.0040.00417.22
8.1.190.0040.00417.23
8.1.180.0030.00518.10
8.1.170.0090.00018.65
8.1.160.0000.00718.75
8.1.150.0070.00018.82
8.1.140.0000.00822.05
8.1.130.0030.00319.98
8.1.120.0070.00017.32
8.1.110.0040.00417.40
8.1.100.0030.00517.44
8.1.90.0050.00217.42
8.1.80.0090.00017.27
8.1.70.0030.00317.40
8.1.60.0000.00817.56
8.1.50.0040.00417.49
8.1.40.0080.00017.51
8.1.30.0070.00317.55
8.1.20.0000.00717.57
8.1.10.0060.00317.48
8.1.00.0030.00617.27
8.0.300.0040.00419.73
8.0.290.0080.00016.63
8.0.280.0030.00318.40
8.0.270.0070.00017.07
8.0.260.0060.00018.25
8.0.250.0060.00316.87
8.0.240.0000.00716.88
8.0.230.0030.00316.89
8.0.220.0070.00016.84
8.0.210.0040.00416.84
8.0.200.0030.00316.82
8.0.190.0000.00716.82
8.0.180.0050.00216.86
8.0.170.0040.00416.84
8.0.160.0030.00616.84
8.0.150.0030.00316.72
8.0.140.0040.00416.77
8.0.130.0030.00313.25
8.0.120.0060.00316.83
8.0.110.0000.00716.75
8.0.100.0000.00716.78
8.0.90.0040.00416.82
8.0.80.0110.01016.82
8.0.70.0050.00216.66
8.0.60.0000.00716.89
8.0.50.0070.00016.71
8.0.30.0130.00517.00
8.0.20.0070.01117.40
8.0.10.0030.00316.96
8.0.00.0080.01116.91
7.4.330.0050.00015.55
7.4.320.0030.00316.54
7.4.300.0030.00316.43
7.4.290.0030.00316.54
7.4.280.0090.00016.44
7.4.270.0030.00316.44
7.4.260.0070.00016.46
7.4.250.0070.00016.44
7.4.240.0070.00016.46
7.4.230.0000.00716.34
7.4.220.0000.00816.25
7.4.210.0070.00916.49
7.4.200.0000.00816.64
7.4.160.0080.00716.49
7.4.140.0130.00517.86
7.4.130.0080.01516.57
7.4.120.0120.00816.38
7.3.330.0000.00612.98
7.3.320.0030.00312.89
7.3.310.0040.00416.14
7.3.300.0000.00716.09
7.3.290.0000.00716.09
7.3.280.0070.00716.08
7.3.260.0090.01016.22
7.3.240.0080.00916.25

preferences:
61.3 ms | 401 KiB | 5 Q