3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'artist_type_id = ? AND id IN (?) AND virtual = ?'; echo strrpos($string, '?'); echo "\n"; echo strrpos($string, '?', 1); echo "\n"; echo strrpos($string, '?', 2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/d5Rif
function name:  (null)
number of ops:  21
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'artist_type_id+%3D+%3F+AND+id+IN+%28%3F%29+AND+virtual+%3D+%3F'
    4     1        INIT_FCALL                                               'strrpos'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '%3F'
          4        DO_ICALL                                         $2      
          5        ECHO                                                     $2
    5     6        ECHO                                                     '%0A'
    6     7        INIT_FCALL                                               'strrpos'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 '%3F'
         10        SEND_VAL                                                 1
         11        DO_ICALL                                         $3      
         12        ECHO                                                     $3
    7    13        ECHO                                                     '%0A'
    8    14        INIT_FCALL                                               'strrpos'
         15        SEND_VAR                                                 !0
         16        SEND_VAL                                                 '%3F'
         17        SEND_VAL                                                 2
         18        DO_ICALL                                         $4      
         19        ECHO                                                     $4
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.24 ms | 1386 KiB | 15 Q