3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 0; $data = array(); $total = memory_get_usage(true); for ($i=0; $i<1000; $i++) { $data[] = $i; } echo memory_get_usage(true) - $total, " bytes"; $var['test'] = 'value';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 8
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 8
Branch analysis from position: 13
Branch analysis from position: 8
filename:       /in/Ke9Sh
function name:  (null)
number of ops:  22
compiled vars:  !0 = $i, !1 = $data, !2 = $total, !3 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
          1        ASSIGN                                                   !1, <array>
    5     2        INIT_FCALL                                               'memory_get_usage'
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !2, $6
    7     6        ASSIGN                                                   !0, 0
          7      > JMP                                                      ->11
    8     8    >   ASSIGN_DIM                                               !1
          9        OP_DATA                                                  !0
    7    10        PRE_INC                                                  !0
         11    >   IS_SMALLER                                               !0, 1000
         12      > JMPNZ                                                    ~11, ->8
   12    13    >   INIT_FCALL                                               'memory_get_usage'
         14        SEND_VAL                                                 <true>
         15        DO_ICALL                                         $12     
         16        SUB                                              ~13     $12, !2
         17        ECHO                                                     ~13
         18        ECHO                                                     '+bytes'
   14    19        ASSIGN_DIM                                               !3, 'test'
         20        OP_DATA                                                  'value'
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.57 ms | 1400 KiB | 15 Q