3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test='12345'; $test = array_filter(str_split($test));; echo array_pop($test); print_r($test)
Output for 5.4.0 - 5.4.20
Parse error: syntax error, unexpected end of file in /in/2CN4v on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected $end in /in/2CN4v on line 5
Process exited with code 255.

preferences:
179.22 ms | 1395 KiB | 56 Q