3v4l.org

run code in 200+ 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))))); $glue = ' {-8] '; var_dump(explode($glue, strip_tags(implode($glue, array_values($array)))));
Output for 4.3.2 - 5.6.30, hhvm-3.10.1, hhvm-3.13.2, hhvm-3.17.3, 7.0.0 - 7.2.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 hhvm-3.11.1 - 3.12.14, hhvm-3.15.4

Process exited with code 137.
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" }