3v4l.org

run code in 500+ PHP versions simultaneously
<?php $haystack = "hello world"; $needle = "hello"; if(!strpos($haystack, $needle)) echo $haystack . " does not contain ".$needle; else echo $haystack . " contains ".$needle;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 9
Branch analysis from position: 5
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: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9WRaN
function name:  (null)
number of ops:  13
compiled vars:  !0 = $haystack, !1 = $needle
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, 'hello+world'
    3     1        ASSIGN                                                       !1, 'hello'
    4     2        FRAMELESS_ICALL_2                strpos              ~4      !0, !1
          3        BOOL_NOT                                             ~5      ~4
          4      > JMPZ                                                         ~5, ->9
    5     5    >   CONCAT                                               ~6      !0, '+does+not+contain+'
          6        CONCAT                                               ~7      ~6, !1
          7        ECHO                                                         ~7
    4     8      > JMP                                                          ->12
    7     9    >   CONCAT                                               ~8      !0, '+contains+'
         10        CONCAT                                               ~9      ~8, !1
         11        ECHO                                                         ~9
         12    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
170.91 ms | 2118 KiB | 15 Q