3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function callMe(...$args) {} function callMe2($args) {} $before = memory_get_usage(); $start = microtime(TRUE); for($i=0;$i<10000;$i++) { callMe(1,2,3,4,5); } echo 'callMe: '.(microtime(TRUE)-$start).' ('.(memory_get_usage()-$before).")\n"; $before = memory_get_usage(); $start = microtime(TRUE); for($i=0;$i<10000;$i++) { callMe(...array(1,2,3,4,5)); } echo 'callMe...: '.(microtime(TRUE)-$start).' ('.(memory_get_usage()-$before).")\n"; $before = memory_get_usage(); $start = microtime(TRUE); for($i=0;$i<10000;$i++) { callMe2(array(1,2,3,4,5)); } echo 'callMe2: '.(microtime(TRUE)-$start).' ('.(memory_get_usage()-$before).")\n";
based on Qdcbv
Output for 7.1.0
callMe: 0.0014479160308838 (56) callMe...: 0.0014610290527344 (56) callMe2: 0.00039196014404297 (56)
Output for 7.0.14
callMe: 0.0015640258789062 (56) callMe...: 0.0016388893127441 (56) callMe2: 0.00090789794921875 (56)
Output for 7.0.6
callMe: 0.0011351108551025 (56) callMe...: 0.0013368129730225 (56) callMe2: 0.00083494186401367 (56)
Output for 7.0.5
callMe: 0.00071001052856445 (56) callMe...: 0.00092411041259766 (64) callMe2: 0.00054812431335449 (56)
Output for 7.0.4
callMe: 0.00086522102355957 (56) callMe...: 0.0010550022125244 (56) callMe2: 0.00067710876464844 (56)
Output for 7.0.3
callMe: 0.0019140243530273 (56) callMe...: 0.0023341178894043 (56) callMe2: 0.0015149116516113 (56)
Output for 7.0.2
callMe: 0.00082898139953613 (56) callMe...: 0.00098013877868652 (64) callMe2: 0.00061893463134766 (56)
Output for 7.0.1
callMe: 0.00068902969360352 (56) callMe...: 0.00079894065856934 (64) callMe2: 0.00050902366638184 (56)
Output for 7.0.0
callMe: 0.00075697898864746 (56) callMe...: 0.00089001655578613 (64) callMe2: 0.00057291984558105 (56)
Output for 5.6.28
callMe: 0.0055601596832275 (456) callMe...: 0.0088310241699219 (48) callMe2: 0.0053470134735107 (48)
Output for 5.6.21
callMe: 0.0041348934173584 (456) callMe...: 0.0065159797668457 (48) callMe2: 0.003788948059082 (48)
Output for 5.6.20
callMe: 0.0037500858306885 (456) callMe...: 0.0059289932250977 (48) callMe2: 0.0034780502319336 (48)
Output for 5.6.19
callMe: 0.0038020610809326 (456) callMe...: 0.0065579414367676 (48) callMe2: 0.0034759044647217 (48)
Output for 5.6.18
callMe: 0.0041728019714355 (456) callMe...: 0.0065569877624512 (48) callMe2: 0.0038080215454102 (48)
Output for 5.6.17
callMe: 0.0039551258087158 (456) callMe...: 0.0062658786773682 (48) callMe2: 0.0037899017333984 (48)
Output for 5.6.16
callMe: 0.0049569606781006 (456) callMe...: 0.0073559284210205 (48) callMe2: 0.0042710304260254 (48)
Output for 5.6.15
callMe: 0.004828929901123 (456) callMe...: 0.0074930191040039 (48) callMe2: 0.0042769908905029 (48)
Output for 5.6.14
callMe: 0.0046701431274414 (456) callMe...: 0.0073940753936768 (48) callMe2: 0.0042781829833984 (48)
Output for 5.6.13
callMe: 0.0041379928588867 (456) callMe...: 0.006181001663208 (48) callMe2: 0.0036509037017822 (48)
Output for 5.6.12
callMe: 0.002993106842041 (456) callMe...: 0.004796028137207 (48) callMe2: 0.0028200149536133 (48)
Output for 5.6.11
callMe: 0.0049619674682617 (456) callMe...: 0.0077879428863525 (48) callMe2: 0.0044479370117188 (48)
Output for 5.6.10
callMe: 0.004601001739502 (456) callMe...: 0.00742506980896 (48) callMe2: 0.0034348964691162 (48)
Output for 5.6.9
callMe: 0.0039839744567871 (456) callMe...: 0.0062549114227295 (48) callMe2: 0.0038020610809326 (48)
Output for 5.6.8
callMe: 0.0064730644226074 (456) callMe...: 0.0083239078521729 (48) callMe2: 0.0063869953155518 (48)
Output for 5.4.0 - 5.5.35
Parse error: syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE) in /in/HILqT on line 3
Process exited with code 255.
Output for 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '.', expecting '&' or T_VARIABLE in /in/HILqT on line 3
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Parse error: parse error, unexpected '.', expecting '&' or T_VARIABLE in /in/HILqT on line 3
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected '.', expecting ')' in /in/HILqT on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected '.', expecting ')' in /in/HILqT on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `')'' in /in/HILqT on line 3
Process exited with code 255.