3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.78 ms | 1385 KiB | 15 Q