3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private function __construct() { throw new Exception('thrown'); } public function A() { return array('a', 'b', 'c'); } public static function I() { return new A(); } } $instance = new A::I(); $A = call_user_func_array(array($instance, 'A'), array()); print $A[1];

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.150.0070.07318.12
5.6.140.0100.06018.19
5.6.130.0070.06718.28
5.6.120.0070.04021.13
5.6.110.0030.07721.00
5.6.100.0130.05721.11
5.6.90.0000.09020.97
5.6.80.0000.05320.44
5.5.300.0070.08317.98
5.5.290.0100.08018.02
5.5.280.0000.04320.74
5.5.270.0130.07320.88
5.5.260.0100.06320.89
5.5.250.0000.04720.70
5.5.240.0170.03320.08

preferences:
140.19 ms | 1421 KiB | 7 Q