3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('SOMEVAL', 6); if (empty(SOMEVAL) > 0) { echo "Hello"; echo strlen(SOMEVAL); } else { echo "Goodbye"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KkRu5
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'SOMEVAL'
          2        SEND_VAL                                                 6
          3        DO_ICALL                                                 
    4     4        FETCH_CONSTANT                                   ~1      'SOMEVAL'
          5        BOOL_NOT                                         ~2      ~1
          6        IS_SMALLER                                               0, ~2
          7      > JMPZ                                                     ~3, ->13
    5     8    >   ECHO                                                     'Hello'
    6     9        FETCH_CONSTANT                                   ~4      'SOMEVAL'
         10        STRLEN                                           ~5      ~4
         11        ECHO                                                     ~5
         12      > JMP                                                      ->14
    9    13    >   ECHO                                                     'Goodbye'
   11    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.39 ms | 1394 KiB | 15 Q