3v4l.org

run code in 300+ PHP versions simultaneously
<?php function g($a=NULL, $b=NULL) { $ref = new ReflectionFunction(__FUNCTION__); return $ref; } g(); var_export(g());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pA5kk
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'g'
          1        DO_FCALL                                      0          
    7     2        INIT_FCALL                                               'var_export'
          3        INIT_FCALL                                               'g'
          4        DO_FCALL                                      0  $1      
          5        SEND_VAR                                                 $1
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Function g:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pA5kk
function name:  g
number of ops:  8
compiled vars:  !0 = $a, !1 = $b, !2 = $ref
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV_INIT                                        !0      null
          1        RECV_INIT                                        !1      null
    3     2        NEW                                              $3      'ReflectionFunction'
          3        SEND_VAL_EX                                              'g'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !2, $3
    4     6      > RETURN                                                   !2
    5     7*     > RETURN                                                   null

End of function g

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.07 ms | 1397 KiB | 17 Q