3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo[1]['items'][] = 'Third'; $foo[0]['items'][] = 'Second'; $foo[4]['items'][] = 'Last'; $foo[-1]['items'][] = 'I will be first'; $foo[0]['items'][] = 'Also second'; asort($foo); echo '<pre>'; var_dump($foo); echo '</pre>';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5CKuq
function name:  (null)
number of ops:  29
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_DIM_W                                      $1      !0, 1
          1        FETCH_DIM_W                                      $2      $1, 'items'
          2        ASSIGN_DIM                                               $2
          3        OP_DATA                                                  'Third'
    3     4        FETCH_DIM_W                                      $4      !0, 0
          5        FETCH_DIM_W                                      $5      $4, 'items'
          6        ASSIGN_DIM                                               $5
          7        OP_DATA                                                  'Second'
    4     8        FETCH_DIM_W                                      $7      !0, 4
          9        FETCH_DIM_W                                      $8      $7, 'items'
         10        ASSIGN_DIM                                               $8
         11        OP_DATA                                                  'Last'
    5    12        FETCH_DIM_W                                      $10     !0, -1
         13        FETCH_DIM_W                                      $11     $10, 'items'
         14        ASSIGN_DIM                                               $11
         15        OP_DATA                                                  'I+will+be+first'
    6    16        FETCH_DIM_W                                      $13     !0, 0
         17        FETCH_DIM_W                                      $14     $13, 'items'
         18        ASSIGN_DIM                                               $14
         19        OP_DATA                                                  'Also+second'
    8    20        INIT_FCALL                                               'asort'
         21        SEND_REF                                                 !0
         22        DO_ICALL                                                 
    9    23        ECHO                                                     '%3Cpre%3E'
   10    24        INIT_FCALL                                               'var_dump'
         25        SEND_VAR                                                 !0
         26        DO_ICALL                                                 
   11    27        ECHO                                                     '%3C%2Fpre%3E'
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.24 ms | 1395 KiB | 17 Q