3v4l.org

run code in 300+ 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 = 8, Position 2 = 12
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9WRaN
function name:  (null)
number of ops:  16
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        INIT_FCALL                                               'strpos'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $4      
          6        BOOL_NOT                                         ~5      $4
          7      > JMPZ                                                     ~5, ->12
    5     8    >   CONCAT                                           ~6      !0, '+does+not+contain+'
          9        CONCAT                                           ~7      ~6, !1
         10        ECHO                                                     ~7
    4    11      > JMP                                                      ->15
    7    12    >   CONCAT                                           ~8      !0, '+contains+'
         13        CONCAT                                           ~9      ~8, !1
         14        ECHO                                                     ~9
         15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.01 ms | 1001 KiB | 14 Q