3v4l.org

run code in 500+ PHP versions simultaneously
<?php echo "1:"; print_r(ord('')); echo "\n2:"; print_r(empty('') ? 0 : ord('')); echo "\n3:"; print_r(('' === '' || '' === false) ? 0 : ord('')); echo "\n4:"; print_r(ord('0')); echo "\n5:"; print_r(empty('0') ? 0 : ord('0')); echo "\n6:"; print_r(('0' === '' || '' === false) ? 0 : ord('0'));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 23
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
2 jumps found. (Code = 43) Position 1 = 36, Position 2 = 38
Branch analysis from position: 36
1 jumps found. (Code = 42) Position 1 = 39
Branch analysis from position: 39
2 jumps found. (Code = 43) Position 1 = 44, Position 2 = 46
Branch analysis from position: 44
1 jumps found. (Code = 42) Position 1 = 47
Branch analysis from position: 47
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 46
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 38
2 jumps found. (Code = 43) Position 1 = 44, Position 2 = 46
Branch analysis from position: 44
Branch analysis from position: 46
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 36, Position 2 = 38
Branch analysis from position: 36
Branch analysis from position: 38
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 23
Branch analysis from position: 21
Branch analysis from position: 23
filename:       /in/k9sJM
function name:  (null)
number of ops:  50
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                         '1%3A'
    4     1        INIT_FCALL                                                   'print_r'
          2        INIT_FCALL                                                   'ord'
          3        SEND_VAL                                                     ''
          4        DO_ICALL                                             $0      
          5        SEND_VAR                                                     $0
          6        DO_ICALL                                                     
    5     7        ECHO                                                         '%0A2%3A'
    6     8        INIT_FCALL                                                   'print_r'
          9      > JMPZ                                                         <true>, ->12
         10    >   QM_ASSIGN                                            ~2      0
         11      > JMP                                                          ->16
         12    >   INIT_FCALL                                                   'ord'
         13        SEND_VAL                                                     ''
         14        DO_ICALL                                             $3      
         15        QM_ASSIGN                                            ~2      $3
         16    >   SEND_VAL                                                     ~2
         17        DO_ICALL                                                     
    7    18        ECHO                                                         '%0A3%3A'
    8    19        INIT_FCALL                                                   'print_r'
         20      > JMPZ                                                         <true>, ->23
         21    >   QM_ASSIGN                                            ~5      0
         22      > JMP                                                          ->27
         23    >   INIT_FCALL                                                   'ord'
         24        SEND_VAL                                                     ''
         25        DO_ICALL                                             $6      
         26        QM_ASSIGN                                            ~5      $6
         27    >   SEND_VAL                                                     ~5
         28        DO_ICALL                                                     
   10    29        ECHO                                                         '%0A4%3A'
   11    30        INIT_FCALL                                                   'print_r'
         31        SEND_VAL                                                     48
         32        DO_ICALL                                                     
   12    33        ECHO                                                         '%0A5%3A'
   13    34        INIT_FCALL                                                   'print_r'
         35      > JMPZ                                                         <true>, ->38
         36    >   QM_ASSIGN                                            ~9      0
         37      > JMP                                                          ->39
         38    >   QM_ASSIGN                                            ~9      48
         39    >   SEND_VAL                                                     ~9
         40        DO_ICALL                                                     
   14    41        ECHO                                                         '%0A6%3A'
   15    42        INIT_FCALL                                                   'print_r'
         43      > JMPZ                                                         <false>, ->46
         44    >   QM_ASSIGN                                            ~11     0
         45      > JMP                                                          ->47
         46    >   QM_ASSIGN                                            ~11     48
         47    >   SEND_VAL                                                     ~11
         48        DO_ICALL                                                     
         49      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
155.39 ms | 1359 KiB | 15 Q