3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php 1 2 3 4 <?php $ab = split("ban-bacfgr","a",2); echo $ab[1]; ?> based on RLX1a Output VLD opcodes Performance References Segmentation fault Output for 5.3.0 - 5.5.7 Deprecated: Function split() is deprecated in /in/LjUBp on line 2 Notice: Undefined offset: 1 in /in/LjUBp on line 3 Output for 4.3.0 - 5.2.17 Notice: Undefined offset: 1 in /in/LjUBp on line 3 $ab = split("ban-bacfgr","a",2); echo $ab[1]; ?>
Output for 5.4.0 - 5.4.23
Parse error: syntax error, unexpected '2' (T_LNUMBER) in /in/lid4O on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_LNUMBER in /in/lid4O on line 4
Process exited with code 255.