3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function getSize(): int { return 2; } } class B extends A { public function getSize(): ?int { return null; } } $b = new B; var_dump($b->getSize());

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)
7.3.110.0000.01314.54
7.3.100.0070.00714.45
7.3.90.0120.00014.90
7.3.80.0120.00614.62
7.3.70.0060.01214.57
7.3.60.0120.00614.75
7.3.50.0150.00314.61
7.3.40.0070.01114.77
7.3.30.0030.01414.70
7.3.20.0070.01014.55
7.3.10.0070.00714.64
7.3.00.0120.00614.82
7.2.240.0110.00914.88
7.2.230.0100.00315.02
7.2.220.0030.01015.01
7.2.210.0160.00314.45
7.2.200.0090.00914.70
7.2.190.0060.01214.85
7.2.180.0030.01614.72
7.2.170.0110.00814.71
7.2.160.0140.00614.66
7.2.150.0070.00714.99
7.2.140.0120.00314.61
7.2.130.0040.01114.61
7.2.120.0030.01014.64
7.2.110.0060.00814.85
7.2.100.0070.00714.93
7.2.90.0040.01014.80
7.2.80.0140.00014.81
7.2.70.0100.00314.63
7.2.60.0120.00314.73
7.2.50.0000.01414.95
7.2.40.0070.00714.65
7.2.30.0110.00415.04
7.2.20.0000.01414.91
7.2.10.0100.00314.77
7.2.00.0140.00014.96
7.1.330.0030.01013.61
7.1.320.0060.00913.75
7.1.310.0110.00713.63
7.1.300.0090.00913.80
7.1.290.0090.00913.66
7.1.280.0160.01013.56
7.1.270.0060.01213.45
7.1.260.0130.00013.64
7.1.250.0100.00313.63

preferences:
139.16 ms | 1432 KiB | 7 Q