3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test = "127.0.0.1, 192.168.1.4, 192.168.1.3"; $test = '127.0.0.1' $test1 = explode(',', $test); var_dump($test1[0]);
Output for 5.4.0 - 5.4.30
Parse error: syntax error, unexpected '$test1' (T_VARIABLE) in /in/HpLGp on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_VARIABLE in /in/HpLGp on line 5
Process exited with code 255.