3v4l.org

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

Class MyClass:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8dshW
function name:  __construct
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   FETCH_CONSTANT                                   ~0      'constant'
          1        ECHO                                                     ~0
   10     2      > RETURN                                                   null

End of function __construct

End of class MyClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.19 ms | 1394 KiB | 15 Q