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);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/A2fa7
function name:  (null)
number of ops:  15
compiled vars:  !0 = $arr, !1 = $r, !2 = $stepIds, !3 = $stepId
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'array_slice'
          2        SEND_VAR                                                 !2
          3        INIT_FCALL                                               'array_search'
          4        SEND_VAR                                                 !3
          5        SEND_VAR                                                 !2
          6        SEND_VAL                                                 <true>
          7        DO_ICALL                                         $5      
          8        SEND_VAR                                                 $5
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !1, $6
    7    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.43 ms | 1394 KiB | 19 Q