3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("X",0); define("Y",1); class T2 { static $a = array(X=>"false", Y=>"true"); } print_r(T2::$a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/79Mmt
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'X'
          2        SEND_VAL                                                 0
          3        DO_ICALL                                                 
    3     4        INIT_FCALL                                               'define'
          5        SEND_VAL                                                 'Y'
          6        SEND_VAL                                                 1
          7        DO_ICALL                                                 
    7     8        INIT_FCALL                                               'print_r'
          9        FETCH_STATIC_PROP_R          unknown             ~2      'a'
         10        SEND_VAL                                                 ~2
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Class T2: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.8 ms | 1394 KiB | 17 Q