3v4l.org

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

Function %00testfoo%2Fin%2FauE1v%3A8%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/auE1v
function name:  testFoo
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 'test'
          2        DO_ICALL                                                 
   11     3      > RETURN                                                   null

End of function %00testfoo%2Fin%2FauE1v%3A8%240

Class Foo:
Function dofoo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/auE1v
function name:  doFoo
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   DECLARE_FUNCTION                                         'testfoo'
   12     1        INIT_FCALL_BY_NAME                                       'testFoo'
          2        DO_FCALL                                      0          
   13     3      > RETURN                                                   null

End of function dofoo

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.27 ms | 1395 KiB | 15 Q