3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo "sdfsdfsdf,sfsdfds,123,444,555".split(",")[2] ?>
based on AGkso
Output for 7.0.0 - 7.2.6
Fatal error: Uncaught Error: Call to undefined function split() in /in/R5b8R:3 Stack trace: #0 {main} thrown in /in/R5b8R on line 3
Process exited with code 255.
Output for 5.4.0 - 5.6.28
Deprecated: Function split() is deprecated in /in/R5b8R on line 3 Warning: split() expects at least 2 parameters, 1 given in /in/R5b8R on line 3 sdfsdfsdf,sfsdfds,123,444,555
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ',' or ';' in /in/R5b8R on line 3
Process exited with code 255.