3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array(4, 'a' => 1, 'b' => 2, 'c' => 3); next($arr); var_dump(current($arr)); $first = explode($arr); var_dump($first); var_dump(current($arr));
Output for 5.3.0 - 7.1.0
int(1) Warning: explode() expects at least 2 parameters, 1 given in /in/9gSaV on line 8 NULL int(1)
Output for 4.3.0 - 5.2.17
int(1) Warning: Wrong parameter count for explode() in /in/9gSaV on line 8 NULL int(1)