3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a=array("Volvo","XC90",array("BMW","Toyota")); $reverse=array_reverse($a); $preserve=array_reverse($a,true); unset($reverse.current()); print_r($a); print_r($reverse); print_r($preserve); ?>
based on 0lare
Output for 7.0.0
Parse error: syntax error, unexpected '.', expecting :: (T_PAAMAYIM_NEKUDOTAYIM) in /in/LBBYF on line 5
Process exited with code 255.
Output for 5.3.20 - 5.6.16
Parse error: syntax error, unexpected '.', expecting ',' or ')' in /in/LBBYF on line 5
Process exited with code 255.