3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { const AWESOME = 'cool'; public static $nice = array(self::AWESOME => 'neato'); public function __construct() { echo __CLASS__; } } var_dump(MyClass::$nice); $test = new MyClass();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rOZXM
function name:  (null)
number of ops:  8
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'var_dump'
          1        FETCH_STATIC_PROP_R          global lock         ~1      'nice'
          2        SEND_VAL                                                 ~1
          3        DO_ICALL                                                 
   14     4        NEW                                              $3      'MyClass'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $3
          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/rOZXM
function name:  __construct
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ECHO                                                     'MyClass'
    8     1      > RETURN                                                   null

End of function __construct

End of class MyClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.23 ms | 1394 KiB | 15 Q