3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php list($x,$y) = explode( ' ', 'test set last', 2) var_dump($x); var_dump($y); var_dump( explode( ' ', 'test', 2) ); var_dump( explode( ' ', 'test set', 2) ); var_dump( explode( ' ', 'test set last', 2) );
Output for 5.4.0 - 5.4.9
Parse error: syntax error, unexpected 'var_dump' (T_STRING) in /in/5rDsq on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.19
Parse error: syntax error, unexpected T_STRING in /in/5rDsq on line 4
Process exited with code 255.