3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $arr = array("test"); function bar($str) { 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.04320.25
7.0.10.0100.08720.16
7.0.00.0070.07720.25
5.6.170.0130.04720.56
5.6.160.0030.04020.46
5.6.150.0100.05718.17
5.6.140.0100.07018.23
5.6.130.0130.04018.18
5.6.120.0030.05721.01
5.6.110.0030.07721.14
5.6.100.0130.05321.01
5.6.90.0070.04020.98
5.6.80.0070.04320.54
5.5.310.0300.07020.34
5.5.300.0070.04317.99
5.5.290.0070.08017.92
5.5.280.0070.06720.78
5.5.270.0000.06320.76
5.5.260.0130.07320.83
5.5.250.0130.08320.44
5.5.240.0270.07020.27

preferences:
133.02 ms | 1398 KiB | 7 Q