3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestParent { public function __construct(?string $test = null) { echo 'test'; } } class TestChild extends TestParent { public function __construct($foo = 'bar') { } } new TestChild();

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.20.0130.00719.74
8.4.10.0160.00319.13
8.3.150.0120.00616.84
8.3.140.0040.00416.56
8.3.130.0040.00416.66
8.3.120.0030.01220.66
8.3.110.0240.01816.27
8.3.100.0400.00716.34
8.3.90.0390.00616.38
8.3.80.0370.00316.12
8.3.70.0290.01415.87
8.3.60.0340.01016.38
8.3.50.0270.00316.50
8.3.40.0120.00617.25
8.3.30.0250.00417.00
8.3.20.0260.00717.00
8.3.10.0160.00317.09
8.3.00.0100.00517.25
8.2.270.0110.00718.63
8.2.260.0080.00616.37
8.2.250.0040.00418.61
8.2.240.0000.00918.62
8.2.230.0130.00516.15
8.2.220.0100.00716.38
8.2.210.0070.01016.30
8.2.200.0200.00316.25
8.2.190.0260.01616.38
8.2.180.0220.01316.03
8.2.170.0370.00917.13
8.2.160.0230.00317.25
8.2.150.0160.00817.38
8.2.140.0150.00617.25
8.2.130.0230.00017.12
8.2.120.0220.00017.25
8.2.110.0140.00717.00
8.2.100.0140.00617.25
8.2.90.0190.00317.00
8.2.80.0180.00317.13
8.2.70.0170.00317.00
8.2.60.0140.00817.13
8.2.50.0170.00317.38
8.2.40.0130.00717.13
8.2.30.0160.00317.13
8.2.20.0200.00017.00
8.2.10.0120.00817.13
8.2.00.0150.00617.13
8.1.310.0130.00315.96
8.1.300.0040.00418.09
8.1.290.0200.00415.50
8.1.280.0160.00316.25
8.1.270.0180.00016.79
8.1.260.0110.00816.87
8.1.250.0150.00517.13
8.1.240.0090.00616.88
8.1.230.0150.00317.00
8.1.220.0080.00816.60
8.1.210.0110.00517.11
8.1.200.0100.00717.10
8.1.190.0160.00016.88
8.1.180.0140.00316.75
8.1.170.0160.00316.63
8.1.160.0120.00616.88
8.1.150.0140.00316.75
8.1.140.0130.00316.88
8.1.130.0140.00217.13
8.1.120.0140.00316.75
8.1.110.0120.00616.63
8.1.100.0180.00017.10
8.1.90.0150.00417.00
8.1.80.0110.00517.09
8.1.70.0100.00716.85
8.1.60.0130.00417.13
8.1.50.0110.00716.88
8.1.40.0170.00317.10
8.1.30.0170.00316.38
8.1.20.0090.00917.23
8.1.10.0120.00617.13
8.1.00.0100.01016.72

preferences:
36.12 ms | 403 KiB | 5 Q