3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.37 ms | 1394 KiB | 17 Q