3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = ['foo', 'bar', 'baz', 'tab']; $r = array_slice($stepIds, array_search($stepId, $stepIds, true)); var_dump($r);

preferences:
42.68 ms | 402 KiB | 5 Q