3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.66 ms | 1395 KiB | 15 Q