3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.18 ms | 1395 KiB | 15 Q