3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = "word\\media\\img"; $y = "word\\media"; print $x; print "\n"; print $y; print "\n"; $z = strpos($x, $y); print $z;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/p0hga
function name:  (null)
number of ops:  13
compiled vars:  !0 = $x, !1 = $y, !2 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'word%5Cmedia%5Cimg'
    3     1        ASSIGN                                                   !1, 'word%5Cmedia'
    4     2        ECHO                                                     !0
    5     3        ECHO                                                     '%0A'
    6     4        ECHO                                                     !1
    7     5        ECHO                                                     '%0A'
    9     6        INIT_FCALL                                               'strpos'
          7        SEND_VAR                                                 !0
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $5      
         10        ASSIGN                                                   !2, $5
   10    11        ECHO                                                     !2
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.38 ms | 1394 KiB | 15 Q