3v4l.org

run code in 300+ PHP versions simultaneously
<?php $c[]=array('1'); $c[]=array('2'); $a= "1"; $b= (int)$a; echo $c[$b];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bhO0d
function name:  (null)
number of ops:  10
compiled vars:  !0 = $c, !1 = $a, !2 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                               !0
          1        OP_DATA                                                  <array>
    3     2        ASSIGN_DIM                                               !0
          3        OP_DATA                                                  <array>
    4     4        ASSIGN                                                   !1, '1'
    5     5        CAST                                          4  ~6      !1
          6        ASSIGN                                                   !2, ~6
    6     7        FETCH_DIM_R                                      ~8      !0, !2
          8        ECHO                                                     ~8
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.98 ms | 1392 KiB | 13 Q