3v4l.org

run code in 300+ PHP versions simultaneously
<?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.0.20, 7.1.0, 7.1.6 - 7.1.25, 7.2.0 - 7.2.13, 7.3.0 - 7.3.1
0.0000
Output for 5.3.0 - 5.3.18, 5.3.20 - 5.3.24, 5.3.26 - 5.3.29, 5.4.0 - 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, 7.1.5
0.0001
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.24 - 5.5.32, 5.5.34 - 5.5.35, 5.6.8, 5.6.10 - 5.6.12, 5.6.14, 5.6.16 - 5.6.28
0.0002
Output for 5.6.9
0.0004
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.1.6, 5.2.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.3.11, 4.4.0 - 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.

preferences:
126.64 ms | 401 KiB | 190 Q