3v4l.org

run code in 300+ PHP versions simultaneously
<?php putenv('YII_DEBUG=false'); define('YII_DEBUG', getenv('YII_DEBUG') ? (bool)getenv('YII_DEBUG') : true); var_dump(YII_DEBUG);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 15
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZAnhU
function name:  (null)
number of ops:  23
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'putenv'
          1        SEND_VAL                                                 'YII_DEBUG%3Dfalse'
          2        DO_ICALL                                                 
    5     3        INIT_FCALL                                               'define'
          4        SEND_VAL                                                 'YII_DEBUG'
          5        INIT_FCALL                                               'getenv'
          6        SEND_VAL                                                 'YII_DEBUG'
          7        DO_ICALL                                         $1      
          8      > JMPZ                                                     $1, ->15
          9    >   INIT_FCALL                                               'getenv'
         10        SEND_VAL                                                 'YII_DEBUG'
         11        DO_ICALL                                         $2      
         12        BOOL                                             ~3      $2
         13        QM_ASSIGN                                        ~4      ~3
         14      > JMP                                                      ->16
         15    >   QM_ASSIGN                                        ~4      <true>
         16    >   SEND_VAL                                                 ~4
         17        DO_ICALL                                                 
    7    18        INIT_FCALL                                               'var_dump'
         19        FETCH_CONSTANT                                   ~6      'YII_DEBUG'
         20        SEND_VAL                                                 ~6
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.77 ms | 1395 KiB | 21 Q