3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(('' === ($a = 'f')) ? true : (0 === strpos('f', $a)));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NRvvI
function name:  (null)
number of ops:  15
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        ASSIGN                                           ~1      !0, 'f'
          2        IS_IDENTICAL                                             ~1, ''
          3      > JMPZ                                                     ~2, ->6
          4    >   QM_ASSIGN                                        ~3      <true>
          5      > JMP                                                      ->12
          6    >   INIT_FCALL                                               'strpos'
          7        SEND_VAL                                                 'f'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $4      
         10        IS_IDENTICAL                                     ~5      $4, 0
         11        QM_ASSIGN                                        ~3      ~5
         12    >   SEND_VAL                                                 ~3
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.46 ms | 1394 KiB | 17 Q