3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static function bar() { return 1; } private static function baz() { return 2; } } function mapIt( callable $mapper ) { $a = array( 1, 2, 3 ); return array_map( $mapper, $a ); } $f = new Foo(); var_dump( mapIt( array( $f, 'bar' ) ); var_dump( mapIt( array( $f, 'baz' ) );

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.160.0170.08020.51
5.6.150.0130.07018.15
5.6.140.0100.06718.19
5.6.130.0070.05018.15
5.6.120.0030.08721.02
5.6.110.0030.04721.15
5.6.100.0070.08721.00
5.6.90.0030.09320.98
5.6.80.0130.06320.41
5.5.300.0070.07718.02
5.5.290.0070.08017.92
5.5.280.0100.04720.68
5.5.270.0130.07020.84
5.5.260.0030.07020.73
5.5.250.0130.07020.69
5.5.240.0130.04020.37

preferences:
139.36 ms | 1398 KiB | 7 Q