3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array('THIS', 'test', 'hello', 'A', 'is'); $string = 'helloTHISisAblindtest'; foreach ($arr as $a) { var_dump(explode($a, $string)); }
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
array(2) { [0]=> string(5) "hello" [1]=> string(12) "isAblindtest" } array(2) { [0]=> string(17) "helloTHISisAblind" [1]=> string(0) "" } array(2) { [0]=> string(0) "" [1]=> string(16) "THISisAblindtest" } array(2) { [0]=> string(11) "helloTHISis" [1]=> string(9) "blindtest" } array(2) { [0]=> string(9) "helloTHIS" [1]=> string(10) "Ablindtest" }
Output for hhvm-3.10.0

Process exited with code 153.