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', $baz = 'bat') { } } 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.3.120.0060.00320.72
8.3.110.0340.00916.48
8.3.100.0440.00316.63
8.3.90.0400.00316.26
8.3.80.0390.01316.25
8.3.70.0460.00816.38
8.3.60.0290.01216.13
8.3.50.0370.00316.50
8.3.40.0400.00717.11
8.3.30.0300.01017.22
8.3.20.0260.01117.13
8.3.10.0250.00717.10
8.3.00.0160.00817.13
8.2.240.0090.00618.84
8.2.230.0280.00916.36
8.2.220.0260.01316.30
8.2.210.0250.01316.38
8.2.200.0330.00616.34
8.2.190.0320.01116.12
8.2.180.0340.00316.33
8.2.170.0290.00017.50
8.2.160.0310.00317.25
8.2.150.0050.02417.13
8.2.140.0370.00717.25
8.2.130.0290.01617.21
8.2.120.0360.01017.13
8.2.110.0410.00317.25
8.2.100.0280.01917.25
8.2.90.0350.00417.50
8.2.80.0230.01217.25
8.2.70.0320.01017.13
8.2.60.0340.00317.25
8.2.50.0190.01917.13
8.2.40.0330.00717.25
8.2.30.0260.01517.13
8.2.20.0270.00517.00
8.2.10.0300.00517.25
8.2.00.0360.00417.25
8.1.300.0040.00418.16
8.1.290.0390.00615.75
8.1.280.0380.00315.88
8.1.270.0200.01016.98
8.1.260.0300.01417.11
8.1.250.0280.01616.63
8.1.240.0250.01317.13
8.1.230.0320.01116.98
8.1.220.0200.01317.23
8.1.210.0300.00316.88
8.1.200.0280.00717.00
8.1.190.0310.00516.88
8.1.180.0260.01316.85
8.1.170.0300.00417.00
8.1.160.0600.00716.75
8.1.150.0320.00716.75
8.1.140.0280.01017.13
8.1.130.0280.00717.00
8.1.120.0300.00516.97
8.1.110.0300.00717.13
8.1.100.0350.00316.88
8.1.90.0380.00016.98
8.1.80.0310.00816.88
8.1.70.0320.00617.00
8.1.60.0310.00917.25
8.1.50.0200.00017.22
8.1.40.0120.01516.88
8.1.30.0340.00017.38
8.1.20.0400.00716.99
8.1.10.0430.00617.13
8.1.00.0330.01016.97

preferences:
27.1 ms | 403 KiB | 5 Q