3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 1); 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.0110.01119.99
8.4.150.0020.00014.05
8.4.140.0090.01117.59
8.4.130.0130.00718.90
8.4.120.0100.00924.09
8.4.110.0120.00718.75
8.4.100.0060.00518.83
8.4.90.0110.00820.86
8.4.80.0140.00718.63
8.4.70.0100.01018.94
8.4.60.0090.00818.59
8.4.50.0150.00420.33
8.4.40.0140.00717.68
8.4.30.0130.00720.62
8.4.20.0100.01018.07
8.4.10.0030.00622.07
8.3.280.0130.00718.48
8.3.270.0120.00716.42
8.3.260.0150.00616.59
8.3.250.0110.00819.06
8.3.240.0110.00716.99
8.3.230.0040.00516.68
8.3.220.0110.00718.74
8.3.210.0070.01118.60
8.3.200.0150.00716.52
8.3.190.0120.00617.38
8.3.180.0140.00519.00
8.3.170.0060.00316.64
8.3.160.0100.01016.93
8.3.150.0070.01116.73
8.3.140.0080.00020.59
8.3.130.0030.00618.55
8.3.120.0090.00020.56
8.3.110.0040.01220.94
8.3.100.0060.00324.06
8.3.90.0040.00426.77
8.3.80.0030.00717.97
8.3.70.0040.01118.30
8.3.60.0110.00318.56
8.3.50.0100.01016.86
8.3.40.0100.00322.03
8.3.30.0040.01119.06
8.3.20.0030.00524.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.290.0120.00720.59
8.2.280.0080.00818.57
8.2.270.0000.01816.55
8.2.260.0040.00416.70
8.2.250.0080.00016.86
8.2.240.0050.00318.77
8.2.230.0000.00922.58
8.2.220.0080.00837.54
8.2.210.0080.00026.77
8.2.200.0050.00518.66
8.2.190.0070.01016.60
8.2.180.0120.00916.50
8.2.170.0070.01319.09
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.0000.00719.64
8.2.110.0090.00020.50
8.2.100.0080.00318.03
8.2.90.0250.00617.50
8.2.80.0230.00717.25
8.2.70.0200.01017.38
8.2.60.0240.00617.13
8.2.50.0260.00417.37
8.2.40.0200.00717.50
8.2.30.0190.00817.75
8.2.20.0200.00817.50
8.2.10.0230.00517.12
8.2.00.0240.00417.50
8.1.330.0110.00522.02
8.1.320.0130.00516.38
8.1.310.0030.00616.21
8.1.300.0060.00320.36
8.1.290.0050.00530.84
8.1.280.0100.01025.92
8.1.270.0000.00824.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.17
8.1.230.0090.00317.70
8.1.220.0200.00716.88
8.1.210.0270.00017.13
8.1.200.0200.00717.25
8.1.190.0050.01017.13
8.1.180.0190.00917.00
8.1.170.0240.00217.09
8.1.160.0220.00616.80
8.1.150.0230.00517.13
8.1.140.0240.00317.10
8.1.130.0240.00416.88
8.1.120.0290.00517.13
8.1.110.0260.00417.25
8.1.100.0200.00817.13
8.1.90.0210.00717.00
8.1.80.0200.00817.13
8.1.70.0240.00417.53
8.1.60.0180.00817.50
8.1.50.0210.00617.25
8.1.40.0140.01417.38
8.1.30.0170.00817.38
8.1.20.0220.00417.38
8.1.10.0210.00617.47
8.1.00.0200.00717.13
8.0.300.0250.00316.80
8.0.290.0230.00316.80
8.0.280.0240.00316.80
8.0.270.0280.00016.80
8.0.260.0260.00016.80
8.0.250.0210.00616.80
8.0.240.0250.00316.80
8.0.230.0160.01216.80
8.0.220.0260.00316.80
8.0.210.0200.00716.80
8.0.200.0260.00016.80
8.0.190.0250.00316.80
8.0.180.0250.00316.80
8.0.170.0180.00816.80
8.0.160.0240.00316.80
8.0.150.0250.00416.80
8.0.140.0220.00616.80
8.0.130.0180.00816.80
8.0.120.0180.01116.80
8.0.110.0200.00516.80
8.0.100.0200.00816.80
8.0.90.0200.00716.80
8.0.80.0270.00018.22
8.0.70.0200.00716.80
8.0.60.0180.01116.80
8.0.50.0170.00916.80
8.0.30.0220.00416.80
8.0.20.0260.00016.80
8.0.10.0240.00316.80

preferences:
132.04 ms | 403 KiB | 5 Q