3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Dad { public function early() { print __CLASS__ . PHP_EOL; } public function late() { print get_class($this) . PHP_EOL; } } class Child extends Parent {} $parent = new Dad(); $child = new Child(); print 'PARENT' . PHP_EOL; $parent->early(); $parent->late(); print 'CHILD' . PHP_EOL; $child->early(); $child->late();

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)
5.6.150.0100.08318.16
5.6.140.0070.05718.14
5.6.130.0070.08018.15
5.6.120.0170.07321.12
5.6.110.0070.07321.01
5.6.100.0170.06720.91
5.6.90.0070.08720.88
5.6.80.0030.08720.38
5.5.300.0030.04717.95
5.5.290.0000.04717.93
5.5.280.0030.05720.77
5.5.270.0030.07320.76
5.5.260.0070.09020.87
5.5.250.0070.06320.58
5.5.240.0300.07320.07

preferences:
140.29 ms | 1394 KiB | 7 Q