3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.11 ms | 1394 KiB | 19 Q