3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = 'Leggings Or Skinny Jeans'; // positive limit print_r(explode('or', $str, 2)); // negative limit (since PHP 5.1) print_r(explode('or', $str, -1)); ?>
Output for 5.1.0 - 7.1.0
Array ( [0] => Leggings Or Skinny Jeans ) Array ( )
Output for 4.3.0 - 5.0.5
Array ( [0] => Leggings Or Skinny Jeans ) Array ( [0] => Leggings Or Skinny Jeans )