3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mem[2]["start"] = (memory_get_peak_usage(true)/1024/1024); $arr = [ "c" => [ "d" ], "d" => [], ]; $arr["d"] = $arr["c"]; $mem[2]["end"] = (memory_get_peak_usage(true)/1024/1024); var_dump($arr); var_dump($mem);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/b7RKi
function name:  (null)
number of ops:  27
compiled vars:  !0 = $mem, !1 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'memory_get_peak_usage'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $4      
          3        DIV                                              ~5      $4, 1024
          4        DIV                                              ~6      ~5, 1024
          5        FETCH_DIM_W                                      $2      !0, 2
          6        ASSIGN_DIM                                               $2, 'start'
          7        OP_DATA                                                  ~6
    4     8        ASSIGN                                                   !1, <array>
   11     9        FETCH_DIM_R                                      ~9      !1, 'c'
         10        ASSIGN_DIM                                               !1, 'd'
         11        OP_DATA                                                  ~9
   12    12        INIT_FCALL                                               'memory_get_peak_usage'
         13        SEND_VAL                                                 <true>
         14        DO_ICALL                                         $12     
         15        DIV                                              ~13     $12, 1024
         16        DIV                                              ~14     ~13, 1024
         17        FETCH_DIM_W                                      $10     !0, 2
         18        ASSIGN_DIM                                               $10, 'end'
         19        OP_DATA                                                  ~14
   14    20        INIT_FCALL                                               'var_dump'
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                                 
   15    23        INIT_FCALL                                               'var_dump'
         24        SEND_VAR                                                 !0
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.16 ms | 1001 KiB | 15 Q