3v4l.org

run code in 300+ PHP versions simultaneously
<?php const Foo = 'Foo'; class Foo { public $Foo; } function Foo() { $Foo = new Foo(); $Foo->Foo = Foo; return $Foo; } var_dump(Foo());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DAlSF
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CONST                                            'Foo', 'Foo'
   15     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'foo'
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
          6      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DAlSF
function name:  Foo
number of ops:  8
compiled vars:  !0 = $Foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $1      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   11     3        FETCH_CONSTANT                                   ~5      'Foo'
          4        ASSIGN_OBJ                                               !0, 'Foo'
          5        OP_DATA                                                  ~5
   12     6      > RETURN                                                   !0
   13     7*     > RETURN                                                   null

End of function foo

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
232.07 ms | 1001 KiB | 15 Q