3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ParentClassWithToStringMixedReturn { public function __toString() { return 'a'; } } class WithParentMixedReturn extends ParentClassWithToStringMixedReturn { public function __toString(): string { return 'value'; } } echo (new WithParentMixedReturn());

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.10.0110.00716.55
8.5.00.0130.01019.79
8.4.150.0030.00014.05
8.4.140.0130.01017.56
8.4.130.0100.01118.63
8.4.120.0130.00717.68
8.4.110.0120.00725.41
8.4.100.0160.00517.69
8.4.90.0120.00817.78
8.4.80.0080.01119.41
8.4.70.0080.01119.59
8.4.60.0100.01219.50
8.4.50.0060.00217.86
8.3.280.0110.00818.22
8.3.270.0140.00716.75
8.3.260.0130.00816.68
8.3.250.0070.00216.54
8.3.240.0120.00816.70
8.3.230.0100.00816.73
8.3.220.0060.00316.59
8.3.210.0110.00816.73
8.3.200.0120.00816.74
8.3.190.0090.01016.74
8.3.180.0110.00416.30
8.3.50.0050.00216.56
8.2.290.0130.00616.58
8.2.280.0100.00816.54
7.4.330.0100.00718.18
7.3.40.0300.00316.20

preferences:
41.11 ms | 403 KiB | 5 Q