3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( strrpos('pie', 'i', 0), strrpos('pie', 'i', -1), strrpos('pie', 'i', -2) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NZlKP
function name:  (null)
number of ops:  21
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
    4     1        INIT_FCALL                                               'strrpos'
          2        SEND_VAL                                                 'pie'
          3        SEND_VAL                                                 'i'
          4        SEND_VAL                                                 0
          5        DO_ICALL                                         $0      
          6        SEND_VAR                                                 $0
    5     7        INIT_FCALL                                               'strrpos'
          8        SEND_VAL                                                 'pie'
          9        SEND_VAL                                                 'i'
         10        SEND_VAL                                                 -1
         11        DO_ICALL                                         $1      
         12        SEND_VAR                                                 $1
    6    13        INIT_FCALL                                               'strrpos'
         14        SEND_VAL                                                 'pie'
         15        SEND_VAL                                                 'i'
         16        SEND_VAL                                                 -2
         17        DO_ICALL                                         $2      
         18        SEND_VAR                                                 $2
         19        DO_ICALL                                                 
    7    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.14 ms | 1395 KiB | 17 Q