3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $squirt_path22 = array(123423, 'data', 'test'); $firs_val = array_shift($squirt_path22); echo '---shifted--<br>'; print_r($squirt_path22); echo '<br>---reversed--<br>'; array_reverse($squirt_path22, true); print_r($squirt_path22);
Output for 4.3.0 - 7.2.0
---shifted--<br>Array ( [0] => data [1] => test ) <br>---reversed--<br>Array ( [0] => data [1] => test )