3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foobar = 'string'; $length = strlen($foobar); var_dump(strpos('blarstring', $foobar, -$length));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DalB8
function name:  (null)
number of ops:  13
compiled vars:  !0 = $foobar, !1 = $length
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'string'
    3     1        STRLEN                                           ~3      !0
          2        ASSIGN                                                   !1, ~3
    5     3        INIT_FCALL                                               'var_dump'
          4        INIT_FCALL                                               'strpos'
          5        SEND_VAL                                                 'blarstring'
          6        SEND_VAR                                                 !0
          7        MUL                                              ~5      !1, -1
          8        SEND_VAL                                                 ~5
          9        DO_ICALL                                         $6      
         10        SEND_VAR                                                 $6
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.86 ms | 1394 KiB | 17 Q