3v4l.org

run code in 300+ PHP versions simultaneously
<?php class example { public static function foo() { echo "foo\n"; } public function bar() { echo "bar\n"; } } $xfoo = ['example', 'foo']; $xfoo(); $xbar = [new example, 'bar']; $xbar();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3Tc1k
function name:  (null)
number of ops:  11
compiled vars:  !0 = $xfoo, !1 = $xbar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, <array>
    9     1        INIT_DYNAMIC_CALL                                        !0
          2        DO_FCALL                                      0          
   11     3        NEW                                              $4      'example'
          4        DO_FCALL                                      0          
          5        INIT_ARRAY                                       ~6      $4
          6        ADD_ARRAY_ELEMENT                                ~6      'bar'
          7        ASSIGN                                                   !1, ~6
   12     8        INIT_DYNAMIC_CALL                                        !1
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

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

End of function foo

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

End of function bar

End of class example.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.7 ms | 1393 KiB | 13 Q