3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foobar { private $bar = "blah</br>\n"; public static function foo() { echo $this->$bar; } } foobar::foo(); $f = new foobar(); $f->foo();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UF2uC
function name:  (null)
number of ops:  8
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_STATIC_METHOD_CALL                                  'foobar', 'foo'
          1        DO_FCALL                                      0          
   17     2        NEW                                              $2      'foobar'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $2
   19     5        INIT_METHOD_CALL                                         !0, 'foo'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Class foobar:
Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UF2uC
function name:  foo
number of ops:  4
compiled vars:  !0 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   FETCH_THIS                                       $1      
          1        FETCH_OBJ_R                                      ~2      $1, !0
          2        ECHO                                                     ~2
   10     3      > RETURN                                                   null

End of function foo

End of class foobar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.7 ms | 1393 KiB | 13 Q