3v4l.org

run code in 300+ PHP versions simultaneously
<?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.

preferences:
196.43 ms | 1395 KiB | 67 Q