3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Parent { public function method() { echo "hi!"; } } class Child extends Parent { public function method() { echo "bye!"; } } $class = new Child; $class->method();

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.0.10.0130.07720.12
7.0.00.0100.08720.13
5.6.160.0030.05720.48
5.6.150.0070.08018.19
5.6.140.0130.07318.21
5.6.130.0100.04318.18
5.6.120.0070.08021.14
5.6.110.0100.08020.98
5.6.100.0070.08320.99
5.6.90.0100.08021.00
5.6.80.0030.08320.41
5.5.300.0100.05717.96
5.5.290.0100.08017.96
5.5.280.0030.05720.87
5.5.270.0170.08020.60
5.5.260.0100.04020.73
5.5.250.0130.07720.56
5.5.240.0230.04720.28

preferences:
141.03 ms | 939 KiB | 8 Q