3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = "0123456789a123456789b123456789c"; //var_dump(strrpos($foo, '7', -5)); // Starts looking backwards five positions // from the end. Result: int(17) //var_dump(strrpos($foo, '7', 20)); // Starts searching 20 positions into the // string. Result: int(27) var_dump(strrpos($foo, 'c')); // Result: bool(false) ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pOhsF
function name:  (null)
number of ops:  9
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '0123456789a123456789b123456789c'
   10     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'strrpos'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 'c'
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                                 
   11     8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.24 ms | 1394 KiB | 17 Q