3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('FOO', TRUE); define('BAR', FALSE); BAR OR var_dump(FOO);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 10, Position 2 = 15
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/Sqres
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                                                 'FOO'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                                 
    3     4        INIT_FCALL                                               'define'
          5        SEND_VAL                                                 'BAR'
          6        SEND_VAL                                                 <false>
          7        DO_ICALL                                                 
    5     8        FETCH_CONSTANT                                   ~2      'BAR'
          9      > JMPNZ_EX                                         ~2      ~2, ->15
         10    >   INIT_FCALL                                               'var_dump'
         11        FETCH_CONSTANT                                   ~3      'FOO'
         12        SEND_VAL                                                 ~3
         13        DO_ICALL                                         $4      
         14        BOOL                                             ~2      $4
         15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.28 ms | 1394 KiB | 17 Q