3v4l.org

run code in 500+ PHP versions simultaneously
<?php const VALUE = 1.0; function foo($arg = VALUE) {} ReflectionParameter::export('foo', 'arg'); var_export(VALUE);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2JFbL
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CONST                                                'VALUE', 1
    7     1        INIT_STATIC_METHOD_CALL                                      'ReflectionParameter', 'export'
          2        SEND_VAL_EX                                                  'foo'
          3        SEND_VAL_EX                                                  'arg'
          4        DO_FCALL                                          0          
    8     5        INIT_FCALL                                                   'var_export'
          6        FETCH_CONSTANT                                       ~1      'VALUE'
          7        SEND_VAL                                                     ~1
          8        DO_ICALL                                                     
          9      > RETURN                                                       1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2JFbL
function name:  foo
number of ops:  2
compiled vars:  !0 = $arg
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   RECV_INIT                                            !0      <const ast>
          1      > RETURN                                                       null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
236.65 ms | 3301 KiB | 14 Q