3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tab[0] = array('body' => "test", 'bidou' => "test2"); $tab[1] = 'text'; $tab[2] = 'text'; print_r(current($tab)); print_r(arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FBPqQ
function name:  (null)
number of ops:  17
compiled vars:  !0 = $tab
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                               !0, 0
          1        OP_DATA                                                  <array>
    3     2        ASSIGN_DIM                                               !0, 1
          3        OP_DATA                                                  'text'
    4     4        ASSIGN_DIM                                               !0, 2
          5        OP_DATA                                                  'text'
    7     6        INIT_FCALL                                               'print_r'
          7        INIT_FCALL                                               'current'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $4      
         10        SEND_VAR                                                 $4
         11        DO_ICALL                                                 
    8    12        INIT_FCALL                                               'print_r'
         13        FETCH_CONSTANT                                   ~6      'arr'
         14        SEND_VAL                                                 ~6
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.37 ms | 1394 KiB | 17 Q