3v4l.org

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

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

End of function foo

End of class x.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.57 ms | 1393 KiB | 13 Q