3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = 'rrrr,ttttt, yyyyy'; print_r(split(',|, ', $str));
based on 41uPN
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function split() in /in/PuIPh:4 Stack trace: #0 {main} thrown in /in/PuIPh on line 4
Process exited with code 255.
Output for hhvm-3.10.1 - 3.17.3
Array ( [0] => rrrr [1] => ttttt [2] => yyyyy )
Output for 5.5.0 - 5.6.30
Deprecated: Function split() is deprecated in /in/PuIPh on line 4 Array ( [0] => rrrr [1] => ttttt [2] => yyyyy )