3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array( 'fooo<', 'bar>', ); var_dump($array); $glue = '{-8]'; var_dump(explode($glue, strip_tags(implode($glue, array_values($array))))); $glueWithSpaces = ' {-8] '; var_dump(explode($glueWithSpaces, strip_tags(implode($glueWithSpaces, array_values($array)))));
Output for 4.3.2 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
array(2) { [0]=> string(5) "fooo<" [1]=> string(4) "bar>" } array(1) { [0]=> string(4) "fooo" } array(2) { [0]=> string(5) "fooo<" [1]=> string(4) "bar>" }
Output for 4.3.0 - 4.3.1
array(2) { [0]=> string(5) "fooo<" [1]=> string(4) "bar>" } array(1) { [0]=> string(4) "fooo" } array(1) { [0]=> string(4) "fooo" }