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() { parent::__construct(); } } new TestChild(); <?php class TestParent { public function __construct(?string $test = null) { echo 'test'; } } class TestChild extends TestParent { public function __construct($foo = 'bar') { parent::__construct(); } } 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.110.0180.01116.44
8.3.100.0130.01116.62
8.3.90.0100.01316.88
8.3.80.0160.00616.73
8.3.70.0150.00616.38
8.3.60.0170.00316.88
8.3.50.0110.00416.25
8.3.40.0120.00017.63
8.3.30.0080.01217.38
8.3.20.0110.00317.50
8.3.10.0110.00017.50
8.3.00.0120.00317.38
8.2.230.0090.00216.58
8.2.220.0180.00416.15
8.2.210.0050.00716.74
8.2.200.0080.00416.50
8.2.190.0110.00016.63
8.2.180.0000.01016.42
8.2.170.0060.00617.63
8.2.160.0080.00317.63
8.2.150.0130.00017.50
8.2.140.0100.00717.00
8.2.130.0120.00017.00
8.2.120.0030.01017.13
8.2.110.0040.00817.25
8.2.100.0070.00517.38
8.2.90.0120.00017.50
8.2.80.0120.00017.50
8.2.70.0100.00017.38
8.2.60.0060.00617.25
8.2.50.0070.00317.50
8.2.40.0090.00317.38
8.2.30.0060.00617.50
8.2.20.0070.00317.50
8.2.10.0110.00017.38
8.2.00.0030.00617.50
8.1.290.0090.00616.13
8.1.280.0090.00915.75
8.1.270.0060.01016.75
8.1.260.0140.00516.98
8.1.250.0160.00616.75
8.1.240.0130.00316.87
8.1.230.0160.00016.74
8.1.220.0090.00917.00
8.1.210.0160.00317.00
8.1.200.0160.00616.63
8.1.190.0120.00416.88
8.1.180.0120.00616.59
8.1.170.0180.00017.00
8.1.160.0110.00716.38
8.1.150.0150.00316.63
8.1.140.0160.00016.75
8.1.130.0160.00016.88
8.1.120.0100.00816.84
8.1.110.0170.00016.75
8.1.100.0140.00317.00
8.1.90.0080.00816.87
8.1.80.0110.00716.63
8.1.70.0170.00017.09
8.1.60.0230.00016.75
8.1.50.0160.00516.47
8.1.40.0170.00416.59
8.1.30.0120.00417.13
8.1.20.0100.00817.00
8.1.10.0160.00217.22
8.1.00.0090.00917.23

preferences:
134.64 ms | 1428 KiB | 7 Q