3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str1 = 'yabadabadoo'; $str2 = 'yaba'; if (strpos($str1,$str2)) { echo "\"" . $str1 . "\" contains \"" . $str2 . "\""; } else { echo "\"" . $str1 . "\" does not contain \"" . $str2 . "\"";}
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 13
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rTUq1
function name:  (null)
number of ops:  19
compiled vars:  !0 = $str1, !1 = $str2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'yabadabadoo'
    3     1        ASSIGN                                                   !1, 'yaba'
    4     2        INIT_FCALL                                               'strpos'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $4      
          6      > JMPZ                                                     $4, ->13
    5     7    >   CONCAT                                           ~5      '%22', !0
          8        CONCAT                                           ~6      ~5, '%22+contains+%22'
          9        CONCAT                                           ~7      ~6, !1
         10        CONCAT                                           ~8      ~7, '%22'
         11        ECHO                                                     ~8
         12      > JMP                                                      ->18
    7    13    >   CONCAT                                           ~9      '%22', !0
         14        CONCAT                                           ~10     ~9, '%22+does+not+contain+%22'
         15        CONCAT                                           ~11     ~10, !1
         16        CONCAT                                           ~12     ~11, '%22'
         17        ECHO                                                     ~12
         18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.49 ms | 1395 KiB | 15 Q