3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("__FLAG__", 1); define("__DEBUG__", __FLAG__); // the flag is hidden here. find it lol if("1" === __DEBUG__){ echo "development server"; }else{ echo "production server"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Wduk5
function name:  (null)
number of ops:  16
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 '__FLAG__'
          2        SEND_VAL                                                 1
          3        DO_ICALL                                                 
    3     4        INIT_FCALL                                               'define'
          5        SEND_VAL                                                 '__DEBUG__'
          6        FETCH_CONSTANT                                   ~1      '__FLAG__'
          7        SEND_VAL                                                 ~1
          8        DO_ICALL                                                 
    5     9        FETCH_CONSTANT                                   ~3      '__DEBUG__'
         10        IS_IDENTICAL                                             ~3, '1'
         11      > JMPZ                                                     ~4, ->14
    6    12    >   ECHO                                                     'development+server'
         13      > JMP                                                      ->15
    8    14    >   ECHO                                                     'production+server'
    9    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.59 ms | 1394 KiB | 15 Q