3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); $pos = array_search('a', ['b'], true); var_dump(array_slice(['c'], $pos));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IaTNY
function name:  (null)
number of ops:  14
compiled vars:  !0 = $pos
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'array_search'
          1        SEND_VAL                                                 'a'
          2        SEND_VAL                                                 <array>
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $1      
          5        ASSIGN                                                   !0, $1
    6     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'array_slice'
          8        SEND_VAL                                                 <array>
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $3      
         11        SEND_VAR                                                 $3
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.15 ms | 1394 KiB | 19 Q