3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i=2; const BIT_1 = 0; define('BIT_'.$i,1); echo BIT_1,"\n"; echo BIT_2,"\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IOPjK
function name:  (null)
number of ops:  14
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 2
    3     1        DECLARE_CONST                                            'BIT_1', 0
    4     2        INIT_FCALL                                               'define'
          3        CONCAT                                           ~2      'BIT_', !0
          4        SEND_VAL                                                 ~2
          5        SEND_VAL                                                 1
          6        DO_ICALL                                                 
    5     7        FETCH_CONSTANT                                   ~4      'BIT_1'
          8        ECHO                                                     ~4
          9        ECHO                                                     '%0A'
    6    10        FETCH_CONSTANT                                   ~5      'BIT_2'
         11        ECHO                                                     ~5
         12        ECHO                                                     '%0A'
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.8 ms | 1385 KiB | 15 Q