3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Example extends Base { function example() { echo "This gets called"; } } class Base { function __construct() { echo "Not this"; } } $foo = new Example();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VTsLT
function name:  (null)
number of ops:  5
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'example', 'base'
   15     1        NEW                                              $1      'Example'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
          4      > RETURN                                                   1

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

End of function example

End of class Example.

Class Base:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VTsLT
function name:  __construct
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ECHO                                                     'Not+this'
   12     1      > RETURN                                                   null

End of function __construct

End of class Base.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.11 ms | 1397 KiB | 13 Q