3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static function bar() { echo 'BAR!'; } public function baz() { echo 'BAZ!'; } } $call1 = array('Foo', 'Bar'); $call2 = array(new Foo, 'Baz'); $call1(); $call2();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bkK60
function name:  (null)
number of ops:  11
compiled vars:  !0 = $call1, !1 = $call2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   ASSIGN                                                   !0, <array>
   14     1        NEW                                              $3      'Foo'
          2        DO_FCALL                                      0          
          3        INIT_ARRAY                                       ~5      $3
          4        ADD_ARRAY_ELEMENT                                ~5      'Baz'
          5        ASSIGN                                                   !1, ~5
   16     6        INIT_DYNAMIC_CALL                                        !0
          7        DO_FCALL                                      0          
   17     8        INIT_DYNAMIC_CALL                                        !1
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Class Foo:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bkK60
function name:  bar
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     'BAR%21'
    6     1      > RETURN                                                   null

End of function bar

Function baz:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bkK60
function name:  baz
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ECHO                                                     'BAZ%21'
   10     1      > RETURN                                                   null

End of function baz

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.53 ms | 1394 KiB | 13 Q