3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $vehicles = array('car', 'truck', 'van', 'bus'); current($vehicles); next($vehicles); each($vehicles); echo current($vehicles);
based on 0f6Vv
Output for 7.2.0 - 7.2.2
Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /in/K7laW on line 5 van
Output for 4.3.0 - 5.6.30, hhvm-3.10.1 - 3.22.0, 7.0.0 - 7.1.14
van