3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { $arr = array("test"); function bar($str) { if ( is_callable( self::$arr[0] ) ){ echo self::$arr[0]($str); } } static function test($var) { echo "Testing: $var\n"; } } (new Foo)->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.0300.08720.30
7.0.10.0070.04320.24
7.0.00.0100.04720.16
5.6.170.0130.08320.54
5.6.160.0100.03720.56
5.6.150.0030.07718.18
5.6.140.0070.06018.27
5.6.130.0130.07318.23
5.6.120.0070.04321.11
5.6.110.0130.07721.13
5.6.100.0070.08721.00
5.6.90.0070.08720.93
5.6.80.0070.04020.40
5.5.310.0300.07720.41
5.5.300.0070.06717.94
5.5.290.0170.07017.98
5.5.280.0070.07720.98
5.5.270.0100.05320.86
5.5.260.0130.03320.83
5.5.250.0230.06720.56
5.5.240.0400.05720.26

preferences:
143.21 ms | 1398 KiB | 7 Q