3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $time = time(true); $arr = array(1,2,3,4,5,6,7,8,9,0); foreach ($arr as $id => $val) { $arr[$id] = $val++; } echo time(true) - $time;
Output for 4.3.0 - 5.6.28, 7.0.0 - 7.1.0
0
Output for hhvm-3.10.0 - 3.12.0
Warning: time() expects exactly 0 parameters, 1 given in /in/HtsjR on line 3 Warning: time() expects exactly 0 parameters, 1 given in /in/HtsjR on line 9 0