3v4l.org

run code in 300+ PHP versions simultaneously
<?php function myfunc() { $myarray[] = array( 'a'=>1, 'b'=>"my name" ); return $myarray; } $myarray = myfunc(); print_r($myarray);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7vCmC
function name:  (null)
number of ops:  7
compiled vars:  !0 = $myarray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'myfunc'
          1        DO_FCALL                                      0  $1      
          2        ASSIGN                                                   !0, $1
   11     3        INIT_FCALL                                               'print_r'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
          6      > RETURN                                                   1

Function myfunc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7vCmC
function name:  myfunc
number of ops:  4
compiled vars:  !0 = $myarray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN_DIM                                               !0
    4     1        OP_DATA                                                  <array>
    8     2      > RETURN                                                   !0
    9     3*     > RETURN                                                   null

End of function myfunc

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.76 ms | 1407 KiB | 16 Q