3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 1); class parent_ { public function __construct(){ } public static function createNew(): static{ return new static(); } } class child extends parent_ { public function __construct(int $a){ echo $a; } } child::createNew();

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.30.0050.00219.02
8.5.20.0100.00816.78
8.5.10.0090.00916.67
8.5.00.0090.01120.04
8.4.180.0140.00819.80
8.4.170.0140.00821.86
8.4.160.0110.01121.89
8.4.150.0080.00516.95
8.4.140.0140.00817.73
8.4.130.0140.00618.89
8.4.120.0120.00819.73
8.4.110.0150.00718.07
8.4.100.0030.00717.90
8.4.90.0100.00920.38
8.4.80.0050.00318.86
8.4.70.0060.01020.59
8.4.60.0110.01220.38
8.4.50.0110.00918.64
8.4.40.0070.01122.70
8.4.30.0090.00920.34
8.4.20.0060.00318.07
8.4.10.0000.00820.38
8.3.300.0120.00918.36
8.3.290.0120.00720.82
8.3.280.0130.00718.40
8.3.270.0090.01116.46
8.3.260.0120.00716.38
8.3.250.0110.00716.57
8.3.240.0090.00716.84
8.3.230.0120.01016.71
8.3.220.0100.00918.72
8.3.210.0100.00816.69
8.3.200.0050.00416.70
8.3.190.0090.00517.24
8.3.180.0120.00618.81
8.3.170.0110.00716.96
8.3.160.0150.00320.42
8.3.150.0040.01619.00
8.3.140.0160.00320.59
8.3.130.0080.00018.57
8.3.120.0080.00018.99
8.3.110.0040.00416.84
8.3.100.0040.00416.90
8.3.90.0000.00726.77
8.3.80.0040.00419.36
8.3.70.0140.00716.58
8.3.60.0110.01118.31
8.3.50.0040.01323.72
8.3.40.0120.00919.02
8.3.30.0100.00718.59
8.3.20.0040.00424.18
8.3.10.0090.00024.66
8.3.00.0080.00026.16
8.2.300.0030.00622.21
8.2.290.0160.00416.56
8.2.280.0100.00918.40
8.2.270.0160.00316.63
8.2.260.0110.00717.10
8.2.250.0090.00616.77
8.2.240.0120.00616.81
8.2.230.0080.00020.94
8.2.220.0090.00024.06
8.2.210.0050.00326.77
8.2.200.0000.00918.88
8.2.190.0070.01116.58
8.2.180.0110.00725.92
8.2.170.0040.01118.92
8.2.160.0090.01222.96
8.2.150.0000.00725.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00019.54
8.2.110.0060.00320.38
8.2.100.0060.00319.09
8.1.340.0090.01219.61
8.1.330.0100.01016.20
8.1.320.0100.00517.88
8.1.310.0070.01016.54
8.1.300.0090.00019.41
8.1.290.0070.00430.84
8.1.280.0120.00325.92
8.1.270.0040.00423.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00618.54
8.1.230.0000.01118.47
8.0.00.0150.00517.86
7.4.140.0140.00517.86
7.4.130.0110.00817.86
7.4.120.0180.00417.86
7.4.110.0100.01017.86
7.4.100.0120.01217.86
7.4.90.0000.02117.86
7.4.80.0100.01017.86
7.4.70.0080.01317.86
7.4.60.0130.00817.86
7.4.50.0070.01417.86
7.4.40.0140.00617.86
7.4.30.0160.00417.86
7.4.20.0100.01017.86
7.4.10.0070.01117.86
7.4.00.0030.01417.86
7.3.260.0160.00317.86
7.3.250.0120.00917.86
7.3.240.0070.01117.86
7.3.230.0090.00917.86
7.3.220.0120.00917.86
7.3.210.0170.00717.86
7.3.200.0120.00617.86
7.3.190.0130.00517.86
7.3.180.0090.00917.86
7.3.170.0040.01517.86
7.3.160.0080.01317.86
7.3.150.0030.01717.86
7.3.140.0150.00217.86
7.3.130.0180.00417.86
7.3.120.0080.01917.86
7.3.110.0180.00217.86
7.3.100.0090.01317.86
7.3.90.0130.01117.86
7.3.80.0060.01717.86
7.3.70.0150.00717.86
7.3.60.0090.00917.86
7.3.50.0180.01017.86
7.3.40.0210.00417.86
7.3.30.0150.00917.86
7.3.20.0140.00717.86
7.3.10.0100.00717.86
7.3.00.0000.01917.86

preferences:
72.8 ms | 1053 KiB | 5 Q