3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Bar {} class TheParent{ public function __construct(string $foo, Bar $storage, string $baz) {} } class Foo extends TheParent { public function __construct(string $foo, ?Bar $storage = NULL, string $baz) {} } class TheChild extends Foo { public function __construct(string $foo, Bar $storage, string $baz) {} }

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.0090.00018.09
8.4.10.0090.00019.59
8.3.150.0090.00917.02
8.3.140.0040.00418.22
8.3.130.0080.00316.46
8.3.120.0040.00420.40
8.3.110.0090.00018.44
8.3.100.0060.00316.50
8.3.90.0000.00726.77
8.3.80.0060.00318.55
8.3.70.0090.01218.43
8.3.60.0030.01416.75
8.3.50.0120.00916.64
8.3.40.0110.00323.84
8.3.30.0110.00418.95
8.3.20.0080.00024.18
8.3.10.0000.00724.66
8.3.00.0070.00026.16
8.2.270.0070.01118.97
8.2.260.0140.00316.38
8.2.250.0040.00416.59
8.2.240.0060.00316.92
8.2.230.0080.00020.94
8.2.220.0040.00424.06
8.2.210.0090.00926.77
8.2.200.0060.00316.38
8.2.190.0050.01018.17
8.2.180.0070.01416.63
8.2.170.0070.00718.76
8.2.160.0100.00322.96
8.2.150.0060.00325.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0110.00326.16
8.2.110.0090.00020.34
8.2.100.0040.00817.50
8.2.90.0040.00817.63
8.2.80.0090.00317.50
8.2.70.0030.00917.24
8.2.60.0090.00417.38
8.2.50.0040.00817.38
8.2.40.0000.01217.50
8.2.30.0060.00617.50
8.2.20.0060.00617.38
8.2.10.0040.00817.50
8.2.00.0120.00017.48
8.1.310.0030.00616.64
8.1.300.0090.00016.43
8.1.290.0070.00430.84
8.1.280.0100.00725.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0050.00519.01
8.1.230.0040.00817.11
8.1.220.0090.00317.00
8.1.210.0060.00617.11
8.1.200.0000.01217.10
8.1.190.0120.00017.10
8.1.180.0090.00317.10
8.1.170.0060.00617.09
8.1.160.0090.00317.22
8.1.150.0090.00317.09
8.1.140.0120.00017.25
8.1.130.0090.00317.22
8.1.120.0090.00317.13
8.1.110.0060.00617.23
8.1.100.0090.00317.22
8.1.90.0090.00317.13
8.1.80.0060.00617.23
8.1.70.0060.00617.22
8.1.60.0090.00317.47
8.1.50.0080.00417.35
8.1.40.0100.00317.35
8.1.30.0140.00017.35
8.1.20.0000.01317.48
8.1.10.0040.00817.23
8.1.00.0090.00317.10
8.0.300.0090.00316.63
8.0.290.0090.00316.63
8.0.280.0040.00816.63
8.0.270.0040.00816.38
8.0.260.0080.00416.50
8.0.250.0060.00716.50
8.0.240.0120.00016.50
8.0.230.0030.01016.63
8.0.220.0120.00016.63
8.0.210.0000.01216.36
8.0.200.0040.00816.63
8.0.190.0120.00016.63
8.0.180.0080.00416.63
8.0.170.0090.00316.63
8.0.160.0060.00616.63
8.0.150.0080.00416.63
8.0.140.0030.00916.63
8.0.130.0030.00916.63
8.0.120.0090.00316.50
8.0.110.0060.00616.38
8.0.100.0040.00816.38
8.0.90.0040.00816.50
8.0.80.0060.00616.50
8.0.70.0080.00316.50
8.0.60.0060.00616.63
8.0.50.0110.00016.63
8.0.30.0080.00316.63
8.0.20.0030.00816.63
8.0.10.0080.00416.63

preferences:
27.18 ms | 403 KiB | 5 Q