3v4l.org

run code in 300+ PHP versions simultaneously
<?php class strcls implements Stringable { public function __toString() { return '{"a": 1}'; } } var_dump(json_decode(new strcls(), true));

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.5.00.0130.00819.99
8.4.150.0030.00014.05
8.4.140.0100.01117.25
8.4.130.0140.00617.75
8.4.120.0140.00820.61
8.4.110.0050.00422.53
8.4.100.0140.00717.41
8.4.90.0120.00917.64
8.4.80.0100.00917.64
8.4.70.0110.00917.80
8.4.60.0120.00417.49
8.4.50.0110.00920.50
8.4.40.0200.00017.62
8.4.30.0160.00320.43
8.4.20.0110.01117.93
8.4.10.0080.00021.93
8.3.280.0120.00818.25
8.3.270.0110.01016.79
8.3.260.0080.01216.73
8.3.250.0080.01018.87
8.3.240.0120.00816.48
8.3.230.0090.01016.75
8.3.220.0100.00617.00
8.3.210.0120.00716.55
8.3.200.0110.00816.84
8.3.190.0110.00616.63
8.3.180.0070.00316.37
8.3.170.0140.00417.05
8.3.160.0040.01118.48
8.3.150.0080.01120.64
8.3.140.0070.01116.66
8.3.130.0050.00816.48
8.3.120.0080.00019.08
8.3.110.0080.00420.94
8.3.100.0040.00424.06
8.3.90.0040.00426.77
8.3.80.0060.00317.97
8.3.70.0140.00718.25
8.3.60.0070.00718.30
8.3.50.0060.00918.24
8.3.40.0100.00321.86
8.3.30.0100.00318.85
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.290.0120.00720.57
8.2.280.0020.00616.74
8.2.270.0140.00417.42
8.2.260.0030.01418.66
8.2.250.0060.00318.66
8.2.240.0070.00416.98
8.2.230.0040.00422.58
8.2.220.0000.00937.54
8.2.210.0090.00626.77
8.2.200.0090.00016.50
8.2.190.0100.01018.04
8.2.180.0100.00316.63
8.2.170.0080.00618.64
8.2.160.0030.01022.96
8.2.150.0080.00025.66
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0030.00619.66
8.2.110.0140.00419.18
8.2.100.0080.00417.81
8.2.90.0250.00417.43
8.2.80.0280.00117.06
8.2.70.0250.00417.22
8.2.60.0210.00917.36
8.2.50.0250.00617.25
8.2.40.0210.00617.36
8.2.30.0240.00317.36
8.2.20.0230.00517.19
8.2.10.0240.00217.49
8.2.00.0230.00517.25
8.1.330.0110.00816.35
8.1.320.0080.01116.19
8.1.310.0110.00316.51
8.1.300.0190.00016.25
8.1.290.0000.00930.84
8.1.280.0100.01025.92
8.1.270.0070.00024.66
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0090.00020.60
8.1.230.0120.00517.53
8.1.220.0220.00517.06
8.1.210.0200.00617.00
8.1.200.0200.00717.06
8.1.190.0170.00416.94
8.1.180.0220.00517.00
8.1.170.0230.00416.94
8.1.160.0190.01017.05
8.1.150.0290.00017.05
8.1.140.0190.00917.00
8.1.130.0200.00717.11
8.1.120.0180.01017.17
8.1.110.0240.00417.02
8.1.100.0250.00217.13
8.1.90.0190.00817.11
8.1.80.0210.00517.25
8.1.70.0230.00317.19
8.1.60.0230.00717.13
8.1.50.0260.00217.31
8.1.40.0260.00317.19
8.1.30.0140.01417.43
8.1.20.0210.00917.25
8.1.10.0240.00317.11
8.1.00.0240.00416.99
8.0.300.0200.00816.80
8.0.290.0260.00316.80
8.0.280.0200.00716.80
8.0.270.0210.00516.80
8.0.260.0230.00616.80
8.0.250.0180.01116.80
8.0.240.0190.00816.80
8.0.230.0250.00216.80
8.0.220.0260.00316.80
8.0.210.0240.00216.80
8.0.200.0220.00216.80
8.0.190.0230.00516.80
8.0.180.0200.00816.80
8.0.170.0220.00816.80
8.0.160.0210.00616.80
8.0.150.0230.00516.80
8.0.140.0230.00416.80
8.0.130.0210.00716.80
8.0.120.0240.00516.80
8.0.110.0210.00216.80
8.0.100.0230.00616.80
8.0.90.0220.00616.80
8.0.80.0220.00518.02
8.0.70.0200.00816.80
8.0.60.0250.00516.80
8.0.50.0200.00716.80
8.0.30.0230.00416.80
8.0.20.0190.01016.80
8.0.10.0210.00516.80

preferences:
30.07 ms | 403 KiB | 5 Q