3v4l.org

run code in 300+ PHP versions simultaneously
<?php class myClass { static function baz($var) { echo "Oh the $var of it!\n"; } } (new class { public $arr = ["baz"]; function test( $arg ){ if( is_callable( $this->arr[0],true ) ){ (myClass::{$this->arr[0]})( $arg ); } } })->test("joy");

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.0230.05020.23
7.0.10.0070.09020.10
7.0.00.0100.08020.23
5.6.170.0230.04720.48
5.6.160.0070.07320.54
5.6.150.0030.08318.21
5.6.140.0130.06018.30
5.6.130.0100.07018.11
5.6.120.0070.08321.04
5.6.110.0270.06721.05
5.6.100.0070.04021.14
5.6.90.0070.06321.04
5.6.80.0130.06020.52
5.5.310.0330.04320.20
5.5.300.0100.05317.95
5.5.290.0030.08718.03
5.5.280.0130.07320.86
5.5.270.0100.07720.86
5.5.260.0070.05020.76
5.5.250.0070.05720.47
5.5.240.0300.07020.16

preferences:
140.95 ms | 1386 KiB | 7 Q