3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static function doFoo() { echo 'foo'; } } $doFoo1 = array('Foo', 'doFoo'); $doFoo2 = 'Foo::doFoo'; $doFoo1(); $doFoo2();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SHZiF
function name:  (null)
number of ops:  7
compiled vars:  !0 = $doFoo1, !1 = $doFoo2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   ASSIGN                                                   !0, <array>
   13     1        ASSIGN                                                   !1, 'Foo%3A%3AdoFoo'
   15     2        INIT_DYNAMIC_CALL                                        !0
          3        DO_FCALL                                      0          
   16     4        INIT_DYNAMIC_CALL                                        !1
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Class Foo:
Function dofoo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SHZiF
function name:  doFoo
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ECHO                                                     'foo'
    9     1      > RETURN                                                   null

End of function dofoo

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.8 ms | 1393 KiB | 13 Q