3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $transport = array('foot', 'bike', 'car', 'plane'); foreach($transport as $tr) {var_dump(prev());}
Output for 5.3.0 - 7.1.0
Warning: prev() expects exactly 1 parameter, 0 given in /in/eFh06 on line 4 NULL Warning: prev() expects exactly 1 parameter, 0 given in /in/eFh06 on line 4 NULL Warning: prev() expects exactly 1 parameter, 0 given in /in/eFh06 on line 4 NULL Warning: prev() expects exactly 1 parameter, 0 given in /in/eFh06 on line 4 NULL
Output for 4.3.0 - 5.2.17
Warning: Wrong parameter count for prev() in /in/eFh06 on line 4 NULL Warning: Wrong parameter count for prev() in /in/eFh06 on line 4 NULL Warning: Wrong parameter count for prev() in /in/eFh06 on line 4 NULL Warning: Wrong parameter count for prev() in /in/eFh06 on line 4 NULL