3v4l.org

run code in 500+ PHP versions simultaneously
<?php function bar() { echo "Hi!"; } class Foo {} // no explicit __construct $a = new Foo(bar());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gBT4L
function name:  (null)
number of ops:  7
compiled vars:  !0 = $a
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   NEW                                                  $1      'Foo'
          1        INIT_FCALL                                                   'bar'
          2        DO_FCALL                                          0  $2      
          3        SEND_VAR_NO_REF_EX                                           $2
          4        DO_FCALL                                          0          
          5        ASSIGN                                                       !0, $1
          6      > RETURN                                                       1

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

End of function bar

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.55 ms | 3283 KiB | 14 Q