3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "ae - bcd"; if (($pos = strpos($string, ' - ')) > 0) { $string = substr($string, $pos + 3); } var_dump($string);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 14
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/cmIT7
function name:  (null)
number of ops:  18
compiled vars:  !0 = $string, !1 = $pos
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'ae+-+bcd'
    3     1        INIT_FCALL                                               'strpos'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '+-+'
          4        DO_ICALL                                         $3      
          5        ASSIGN                                           ~4      !1, $3
          6        IS_SMALLER                                               0, ~4
          7      > JMPZ                                                     ~5, ->14
    4     8    >   INIT_FCALL                                               'substr'
          9        SEND_VAR                                                 !0
         10        ADD                                              ~6      !1, 3
         11        SEND_VAL                                                 ~6
         12        DO_ICALL                                         $7      
         13        ASSIGN                                                   !0, $7
    6    14    >   INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.07 ms | 1394 KiB | 19 Q