3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = '<p>foo</p><iframe></iframe>'; $pos = strpos('iframe', $s); var_dump(strrpos('<iframe', $s, $pos));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AWmVX
function name:  (null)
number of ops:  15
compiled vars:  !0 = $s, !1 = $pos
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Cp%3Efoo%3C%2Fp%3E%3Ciframe%3E%3C%2Fiframe%3E'
    3     1        INIT_FCALL                                               'strpos'
          2        SEND_VAL                                                 'iframe'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    4     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'strrpos'
          8        SEND_VAL                                                 '%3Ciframe'
          9        SEND_VAR                                                 !0
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $5      
         12        SEND_VAR                                                 $5
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.91 ms | 1394 KiB | 19 Q