3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.3 ms | 1394 KiB | 15 Q