3v4l.org

run code in 300+ PHP versions simultaneously
<?php class blah_blah extends blah { function say_foo() { echo $this->foo; } } class blah { var $foo = ''; function blah( $foo ) { $this->foo = $foo; } } $hey = new blah_blah( "omg" ); $hey->say_foo(); // omg
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sIUCI
function name:  (null)
number of ops:  8
compiled vars:  !0 = $hey
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'blah_blah', 'blah'
   17     1        NEW                                              $1      'blah_blah'
          2        SEND_VAL_EX                                              'omg'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
   18     5        INIT_METHOD_CALL                                         !0, 'say_foo'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

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

End of function say_foo

End of class blah_blah.

Class blah:
Function blah:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sIUCI
function name:  blah
number of ops:  4
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
   13     1        ASSIGN_OBJ                                               'foo'
          2        OP_DATA                                                  !0
   14     3      > RETURN                                                   null

End of function blah

End of class blah.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.62 ms | 1385 KiB | 13 Q