3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(split('-', 'as-sdfsa-dsg-34-gf-gdf-sgdf'));
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function split() in /in/KT8S5:3 Stack trace: #0 {main} thrown in /in/KT8S5 on line 3
Process exited with code 255.
Output for 4.3.0 - 5.2.17, hhvm-3.10.0 - 3.12.0
array(7) { [0]=> string(2) "as" [1]=> string(5) "sdfsa" [2]=> string(3) "dsg" [3]=> string(2) "34" [4]=> string(2) "gf" [5]=> string(3) "gdf" [6]=> string(4) "sgdf" }
Output for 5.3.0 - 5.6.23
Deprecated: Function split() is deprecated in /in/KT8S5 on line 3 array(7) { [0]=> string(2) "as" [1]=> string(5) "sdfsa" [2]=> string(3) "dsg" [3]=> string(2) "34" [4]=> string(2) "gf" [5]=> string(3) "gdf" [6]=> string(4) "sgdf" }