3v4l.org

run code in 300+ PHP versions simultaneously
<?php class_alias('Test', 'db'); class DB { public function __construct(){ echo 'hello'; } } $db = new DB;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TbkeW
function name:  (null)
number of ops:  8
compiled vars:  !0 = $db
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'class_alias'
          1        SEND_VAL                                                 'Test'
          2        SEND_VAL                                                 'db'
          3        DO_ICALL                                                 
    8     4        NEW                                              $2      'DB'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $2
    9     7      > RETURN                                                   1

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

End of function __construct

End of class DB.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.18 ms | 1394 KiB | 15 Q