3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('SOMEVAL', 0); if (strlen(SOMEVAL) > 0) { echo "Hello"; } else { echo "Goodbye"; } print_r(strlen(SOMEVAL)); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RpXb6
function name:  (null)
number of ops:  17
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                                                 0
          3        DO_ICALL                                                 
    4     4        FETCH_CONSTANT                                   ~1      'SOMEVAL'
          5        STRLEN                                           ~2      ~1
          6        IS_SMALLER                                               0, ~2
          7      > JMPZ                                                     ~3, ->10
    5     8    >   ECHO                                                     'Hello'
          9      > JMP                                                      ->11
    8    10    >   ECHO                                                     'Goodbye'
   11    11    >   INIT_FCALL                                               'print_r'
         12        FETCH_CONSTANT                                   ~4      'SOMEVAL'
         13        STRLEN                                           ~5      ~4
         14        SEND_VAL                                                 ~5
         15        DO_ICALL                                                 
   12    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.2 ms | 942 KiB | 18 Q