3v4l.org

run code in 300+ PHP versions simultaneously
<?php class CallableStringifier { private static $callables = array(); public static function stringify($callable) { $id = count(self::$callables); self::$callables[$id] = $callable; return 'return ' . __CLASS__ . "::call($id, func_get_args());"; } public static function call($id, $args) { return call_user_func_array(self::$callables[$id], $args); } } $func = create_function('$arg1', CallableStringifier::stringify(function($arg1) { return $arg1; })); echo $func(echo '1111';); // outputs 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.4.230.0100.05012.40
5.4.220.0100.04912.39
5.4.210.0140.04312.40
5.4.200.0150.05012.40
5.4.190.0120.05512.39
5.4.180.0190.06112.39
5.4.170.0120.05012.40
5.4.160.0130.04912.40
5.4.150.0110.05712.39
5.4.140.0110.05012.09
5.4.130.0130.04512.06
5.4.120.0130.04512.03
5.4.110.0220.08812.03
5.4.100.0100.04912.03
5.4.90.0130.05012.03
5.4.80.0140.06012.03
5.4.70.0100.04812.03
5.4.60.0120.04212.02
5.4.50.0130.05212.02
5.4.40.0170.05712.01
5.4.30.0140.06612.01
5.4.20.0080.05212.00
5.4.10.0110.04912.01
5.4.00.0130.04611.50
5.3.280.0130.04912.71
5.3.270.0100.05112.72
5.3.260.0100.04712.72
5.3.250.0160.06712.72
5.3.240.0130.06712.72
5.3.230.0140.04612.71
5.3.220.0150.04512.68
5.3.210.0120.05012.68
5.3.200.0260.07812.68
5.3.190.0110.04612.68
5.3.180.0140.04612.67
5.3.170.0140.05012.67
5.3.160.0150.04812.67
5.3.150.0130.04712.67
5.3.140.0120.05412.66
5.3.130.0090.05212.66
5.3.120.0100.04912.66
5.3.110.0160.04412.66
5.3.100.0140.04512.13
5.3.90.0130.05112.10
5.3.80.0130.05012.09
5.3.70.0150.06312.09
5.3.60.0140.04312.07
5.3.50.0130.04512.03
5.3.40.0120.04712.02
5.3.30.0120.04611.98
5.3.20.0110.04711.76
5.3.10.0110.04611.73
5.3.00.0130.05611.71

preferences:
142.75 ms | 1386 KiB | 7 Q