3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "1234567890a"; var_dump($a["010"], isset($a["010"])); // true $x = strtolower("010"); var_dump($a[$x], isset($a[$x]));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tuj5G
function name:  (null)
number of ops:  18
compiled vars:  !0 = $a, !1 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '1234567890a'
    4     1        INIT_FCALL                                               'var_dump'
          2        FETCH_DIM_R                                      ~3      !0, '010'
          3        SEND_VAL                                                 ~3
          4        ISSET_ISEMPTY_DIM_OBJ                         0  ~4      !0, '010'
          5        SEND_VAL                                                 ~4
          6        DO_ICALL                                                 
    5     7        INIT_FCALL                                               'strtolower'
          8        SEND_VAL                                                 '010'
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !1, $6
    6    11        INIT_FCALL                                               'var_dump'
         12        FETCH_DIM_R                                      ~8      !0, !1
         13        SEND_VAL                                                 ~8
         14        ISSET_ISEMPTY_DIM_OBJ                         0  ~9      !0, !1
         15        SEND_VAL                                                 ~9
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.74 ms | 1394 KiB | 17 Q