3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $values = array("fourth", "first", "second", "third"); $indices = array(3, 0, 1, 2); $arrayToSort = array_combine($indices, $values ); sort($arrayToSort); var_dump($arrayToSort)
Output for 5.4.0 - 5.4.15
Parse error: syntax error, unexpected end of file in /in/GZcsc on line 10
Process exited with code 255.
Output for 5.3.0 - 5.3.25
Parse error: syntax error, unexpected $end in /in/GZcsc on line 10
Process exited with code 255.