3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.25 ms | 1394 KiB | 17 Q