3v4l.org

run code in 500+ PHP versions simultaneously
<?php class ParentReturn {} class ChildReturn {} class ParentClass { /** @return ParentReturn */ public function overridable() { return new ParentReturn(); } public function nonOverridable(): ParentReturn { return new ParentReturn(); } } class ChildClass extends ParentClass { public function overridable(): ChildReturn { return new ChildReturn(); } public function nonOverridable(): ChildReturn {return new ChildReturn();} }

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.50.0100.00816.67
7.3.90.0000.01314.67
7.3.80.0080.00514.45
7.3.70.0110.00414.52
7.3.60.0140.00014.43
7.3.50.0090.00614.61
7.3.40.0030.01014.74
7.3.30.0030.00914.72
7.3.20.0090.01214.51
7.3.10.0080.00814.66
7.3.00.0070.01014.68
7.2.220.0030.01214.70
7.2.210.0040.01114.64
7.2.200.0000.01314.95
7.2.190.0030.01014.68
7.2.180.0070.01314.69
7.2.170.0080.00514.79
7.2.160.0070.00714.59
7.2.150.0110.01114.91
7.2.140.0100.00614.84
7.2.130.0100.00714.86
7.2.120.0130.00314.95
7.2.110.0160.00314.91
7.2.100.0140.00314.89
7.2.90.0070.01015.10
7.2.80.0100.00714.71
7.2.70.0090.00614.99
7.2.60.0160.00014.68
7.2.50.0040.01514.60
7.2.40.0060.00915.02
7.2.30.0120.00414.93
7.2.20.0090.00914.76
7.2.10.0070.01014.86
7.2.00.0070.01414.81
7.1.320.0060.01213.75
7.1.310.0060.01013.69
7.1.300.0060.01213.87
7.1.290.0150.00313.59
7.1.280.0060.00613.77
7.1.270.0070.00713.80
7.1.260.0040.01113.80
7.1.250.0090.00613.87

preferences:
41.8 ms | 663 KiB | 4 Q