3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1,"2",'three'=>3); $a = [1,"2",'three'=>3]; $pieces = explode(" ","red white blue"); echo $pieces[2]; echo explode(" ","red white blue")[2];// blue echo ['big' => 'lots', 'time' => 'matters']['big'];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LGQJZ
function name:  (null)
number of ops:  18
compiled vars:  !0 = $a, !1 = $pieces
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !0, <array>
    8     2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '+'
          4        SEND_VAL                                                 'red+white+blue'
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !1, $4
    9     7        FETCH_DIM_R                                      ~6      !1, 2
          8        ECHO                                                     ~6
   10     9        INIT_FCALL                                               'explode'
         10        SEND_VAL                                                 '+'
         11        SEND_VAL                                                 'red+white+blue'
         12        DO_ICALL                                         $7      
         13        FETCH_DIM_R                                      ~8      $7, 2
         14        ECHO                                                     ~8
   14    15        FETCH_DIM_R                                      ~9      <array>, 'big'
         16        ECHO                                                     ~9
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.79 ms | 1394 KiB | 15 Q