3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [ "0" => "Integer index", "03" => "Integer index with leading 0", "2b" => "waifu", "02 " => "trash waifu", " 1" => "I'm running out of ideas", "5.5" => "Float", ]; $str = "Hello"; var_dump($a); var_dump($str["003"]); var_dump($str["3"]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Tntsp
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a, !1 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   12     1        ASSIGN                                                   !1, 'Hello'
   14     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
   15     5        INIT_FCALL                                               'var_dump'
          6        FETCH_DIM_R                                      ~5      !1, '003'
          7        SEND_VAL                                                 ~5
          8        DO_ICALL                                                 
   16     9        INIT_FCALL                                               'var_dump'
         10        FETCH_DIM_R                                      ~7      !1, 3
         11        SEND_VAL                                                 ~7
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.23 ms | 1398 KiB | 15 Q