3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = range(0, 1000); $keys = array_map(function ($x) { return chr(46+rand(0, 26)) . chr(46+rand(0, 26)) . chr(46+rand(0, 26)) . $x; }, $x); $vars = array_combine($keys, $x); $t = microtime(TRUE); extract($vars); echo sprintf("%.4f", microtime(TRUE) - $t);
Output for 7.0.0 - 7.1.0
0.0000
Output for 5.3.19, 5.3.25, 5.4.26, 5.4.28 - 5.4.29, 5.4.37, 5.4.45 - 5.5.32, 5.5.34 - 5.6.8, 5.6.10 - 5.6.12, 5.6.14, 5.6.16 - 5.6.28
0.0002
Output for 5.3.0 - 5.3.18, 5.3.20 - 5.3.24, 5.3.26 - 5.4.25, 5.4.27, 5.4.30 - 5.4.36, 5.4.38 - 5.4.44, 5.5.33, 5.6.13, 5.6.15
0.0001
Output for 5.6.9
0.0004
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /in/9Qbpj on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_FUNCTION, expecting ')' in /in/9Qbpj on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `')'' in /in/9Qbpj on line 3
Process exited with code 255.