3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "mein\\teststring"; $new_str = substr($str, ($pos = strpos($str, '\\')) !== false ? $pos + 1 : 0); echo $new_str; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/88UR4
function name:  (null)
number of ops:  19
compiled vars:  !0 = $str, !1 = $new_str, !2 = $pos
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'mein%5Cteststring'
    3     1        INIT_FCALL                                               'substr'
          2        SEND_VAR                                                 !0
          3        INIT_FCALL                                               'strpos'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 '%5C'
          6        DO_ICALL                                         $4      
          7        ASSIGN                                           ~5      !2, $4
          8        TYPE_CHECK                                  1018          ~5
          9      > JMPZ                                                     ~6, ->13
         10    >   ADD                                              ~7      !2, 1
         11        QM_ASSIGN                                        ~8      ~7
         12      > JMP                                                      ->14
         13    >   QM_ASSIGN                                        ~8      0
         14    >   SEND_VAL                                                 ~8
         15        DO_ICALL                                         $9      
         16        ASSIGN                                                   !1, $9
    4    17        ECHO                                                     !1
    6    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.26 ms | 1395 KiB | 17 Q