3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ['1','2','3','cat',4,'prinsha']; print_r ($array[0]); print_r($array[]='jangam')."\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/a1O0i
function name:  (null)
number of ops:  13
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'print_r'
          2        FETCH_DIM_R                                      ~2      !0, 0
          3        SEND_VAL                                                 ~2
          4        DO_ICALL                                                 
    4     5        INIT_FCALL                                               'print_r'
          6        ASSIGN_DIM                                       ~4      !0
          7        OP_DATA                                                  'jangam'
          8        SEND_VAL                                                 ~4
          9        DO_ICALL                                         $5      
         10        CONCAT                                           ~6      $5, '%0A'
         11        FREE                                                     ~6
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.86 ms | 1394 KiB | 15 Q