3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = "\"luka\""; if ($var[0] == '"') { $var = substr($var, 1, -1); } echo $var;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 10
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/jWtH3
function name:  (null)
number of ops:  12
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, ->10
    4     4    >   INIT_FCALL                                               'substr'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 1
          7        SEND_VAL                                                 -1
          8        DO_ICALL                                         $4      
          9        ASSIGN                                                   !0, $4
    8    10    >   ECHO                                                     !0
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.11 ms | 1394 KiB | 15 Q