3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ParentClass { public function publicGetter() { return 'pubic getter'; } } class ChildClass extends ParentClass { protected function publicGetter() { return 'protected getter'; } } $foo = new ChildClass(); echo $foo->publicGetter();

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.2.110.0100.00716.14
7.2.100.0080.01016.40
7.2.90.0100.00716.16
7.2.80.0110.00816.22
7.2.70.0140.00416.69
7.2.60.0080.00816.71
7.2.50.0090.00916.48
7.2.40.0060.01116.46
7.2.30.0060.01216.74
7.2.20.0100.00716.57
7.2.10.0120.00916.68
7.2.00.0090.00616.70
7.1.230.0070.01315.30
7.1.220.0110.00615.24
7.1.210.0130.00015.41
7.1.200.0030.01315.32
7.1.190.0050.00815.43
7.1.180.0070.00715.52
7.1.170.0060.01115.34
7.1.160.0090.00615.36
7.1.150.0100.00715.38
7.1.140.0090.00615.47
7.1.130.0090.00715.14
7.1.120.0040.00815.56
7.1.110.0060.01015.64
7.1.100.0110.00515.34
7.1.90.0060.01015.40
7.1.80.0030.01015.29
7.1.70.0130.00315.40
7.1.60.0300.01033.60
7.1.50.0170.02033.51
7.1.40.0280.01033.54
7.1.30.0310.00933.52
7.1.20.0220.01433.32
7.1.10.0080.00815.54
7.1.00.0060.01015.37
5.6.380.0070.01014.19

preferences:
133.26 ms | 1446 KiB | 7 Q