3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('DERP', false); define('C5_ENVIRONMENT_ONLY', false); var_dump(defined('C5_ENVIRONMENT_ONLY') && C5_ENVIRONMENT_ONLY || DERP == 'cli');
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
2 jumps found. (Code = 47) Position 1 = 14, Position 2 = 17
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
Branch analysis from position: 13
filename:       /in/ePtc1
function name:  (null)
number of ops:  20
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'DERP'
          2        SEND_VAL                                                 <false>
          3        DO_ICALL                                                 
    3     4        INIT_FCALL                                               'define'
          5        SEND_VAL                                                 'C5_ENVIRONMENT_ONLY'
          6        SEND_VAL                                                 <false>
          7        DO_ICALL                                                 
    5     8        INIT_FCALL                                               'var_dump'
          9        DEFINED                                          ~2      'C5_ENVIRONMENT_ONLY'
         10      > JMPZ_EX                                          ~2      ~2, ->13
         11    >   FETCH_CONSTANT                                   ~3      'C5_ENVIRONMENT_ONLY'
         12        BOOL                                             ~2      ~3
         13    > > JMPNZ_EX                                         ~2      ~2, ->17
         14    >   FETCH_CONSTANT                                   ~4      'DERP'
         15        IS_EQUAL                                         ~5      ~4, 'cli'
         16        BOOL                                             ~2      ~5
         17    >   SEND_VAL                                                 ~2
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.98 ms | 1395 KiB | 17 Q