3v4l.org

run code in 300+ PHP versions simultaneously
<?php class myClass { static function test($var) { echo "Testing: $var\n"; } } (new class extends myClass { public $arr = array("test"); function bar( $str ){ if( is_callable( $this->arr[0],true ) ){ (parent::{$arr[0]})( $str ); } } })->bar("bla");

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.20.0270.03720.08
7.0.10.0100.07720.15
7.0.00.0100.06320.20
5.6.170.0370.07320.51
5.6.160.0070.04020.46
5.6.150.0130.06718.12
5.6.140.0070.04318.19
5.6.130.0070.07718.18
5.6.120.0000.09020.90
5.6.110.0070.06320.98
5.6.100.0170.07720.97
5.6.90.0130.07321.01
5.6.80.0000.04320.38
5.5.310.0300.05320.30
5.5.300.0100.05017.94
5.5.290.0070.04317.99
5.5.280.0130.05320.90
5.5.270.0100.04320.76
5.5.260.0130.04320.77
5.5.250.0130.06720.61
5.5.240.0300.07020.04

preferences:
135.04 ms | 1394 KiB | 7 Q