3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(0); var_dump(NO_CONST[0]); define('MAGIC', '42'); var_dump(MAGIC); var_dump(MAGIC[0]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8LCbn
function name:  (null)
number of ops:  22
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 0
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'var_dump'
          4        FETCH_CONSTANT                                   ~1      'NO_CONST'
          5        FETCH_DIM_R                                      ~2      ~1, 0
          6        SEND_VAL                                                 ~2
          7        DO_ICALL                                                 
    6     8        INIT_FCALL                                               'define'
          9        SEND_VAL                                                 'MAGIC'
         10        SEND_VAL                                                 '42'
         11        DO_ICALL                                                 
    7    12        INIT_FCALL                                               'var_dump'
         13        FETCH_CONSTANT                                   ~5      'MAGIC'
         14        SEND_VAL                                                 ~5
         15        DO_ICALL                                                 
    8    16        INIT_FCALL                                               'var_dump'
         17        FETCH_CONSTANT                                   ~7      'MAGIC'
         18        FETCH_DIM_R                                      ~8      ~7, 0
         19        SEND_VAL                                                 ~8
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.15 ms | 1395 KiB | 19 Q