3v4l.org

run code in 500+ PHP versions simultaneously
<?php class foo { public function test($o = array()){ $o += array('test'); $func = function(){}; var_dump($func); } } $foo = new foo; $foo->test();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rXeKq
function name:  (null)
number of ops:  6
compiled vars:  !0 = $foo
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   10     0  E >   NEW                                                  $1      'foo'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
   11     3        INIT_METHOD_CALL                                             !0, 'test'
          4        DO_FCALL                                          0          
          5      > RETURN                                                       1

Class foo:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rXeKq
function name:  test
number of ops:  8
compiled vars:  !0 = $o, !1 = $func
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   RECV_INIT                                            !0      <array>
    5     1        ASSIGN_OP                                         1          !0, <array>
    6     2        DECLARE_LAMBDA_FUNCTION                              ~3      [0]
          3        ASSIGN                                                       !1, ~3
    7     4        INIT_FCALL                                                   'var_dump'
          5        SEND_VAR                                                     !1
          6        DO_ICALL                                                     
    8     7      > RETURN                                                       null


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rXeKq
function name:  {closure:foo::test():6}
number of ops:  1
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E > > RETURN                                                       null

End of Dynamic Function 0

End of function test

End of class foo.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
230.78 ms | 2270 KiB | 9 Q