3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mem = memory_get_usage(false); echo $mem . '<br/>'; $one = array(); $two = array(); $three = array(); $i = 0; $j = 0; $k = 0; $mem2 = memory_get_usage(false); echo $mem2 . ' (+' . ($mem2 - $mem) . ')<br/>'; $mem = $mem2; for($j = 0; $j < 100; $j++) { $two[] = (object) NULL; } $mem2 = memory_get_usage(false); echo $mem2 . ' (+' . ($mem2 - $mem) . ')<br/>'; $mem = $mem2; for($i = 0; $i < 100; $i++) { $one[] = new stdClass(); } $mem2 = memory_get_usage(false); echo $mem2 . ' (+' . ($mem2 - $mem) . ')<br/>'; $mem = $mem2; for($k = 0; $k < 100; $k++) { $three[] = new stdClass; } $mem2 = memory_get_usage(false); echo $mem2 . ' (+' . ($mem2 - $mem) . ')<br/>'; $mem = $mem2;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 24
Branch analysis from position: 30
1 jumps found. (Code = 42) Position 1 = 47
Branch analysis from position: 47
2 jumps found. (Code = 44) Position 1 = 49, Position 2 = 42
Branch analysis from position: 49
1 jumps found. (Code = 42) Position 1 = 66
Branch analysis from position: 66
2 jumps found. (Code = 44) Position 1 = 68, Position 2 = 61
Branch analysis from position: 68
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 61
2 jumps found. (Code = 44) Position 1 = 68, Position 2 = 61
Branch analysis from position: 68
Branch analysis from position: 61
Branch analysis from position: 42
2 jumps found. (Code = 44) Position 1 = 49, Position 2 = 42
Branch analysis from position: 49
Branch analysis from position: 42
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 24
Branch analysis from position: 30
Branch analysis from position: 24
filename:       /in/1SBKi
function name:  (null)
number of ops:  79
compiled vars:  !0 = $mem, !1 = $one, !2 = $two, !3 = $three, !4 = $i, !5 = $j, !6 = $k, !7 = $mem2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'memory_get_usage'
          1        SEND_VAL                                                 <false>
          2        DO_ICALL                                         $8      
          3        ASSIGN                                                   !0, $8
    4     4        CONCAT                                           ~10     !0, '%3Cbr%2F%3E'
          5        ECHO                                                     ~10
    6     6        ASSIGN                                                   !1, <array>
    7     7        ASSIGN                                                   !2, <array>
    8     8        ASSIGN                                                   !3, <array>
    9     9        ASSIGN                                                   !4, 0
   10    10        ASSIGN                                                   !5, 0
   11    11        ASSIGN                                                   !6, 0
   13    12        INIT_FCALL                                               'memory_get_usage'
         13        SEND_VAL                                                 <false>
         14        DO_ICALL                                         $17     
         15        ASSIGN                                                   !7, $17
   14    16        CONCAT                                           ~19     !7, '+%28%2B'
         17        SUB                                              ~20     !7, !0
         18        CONCAT                                           ~21     ~19, ~20
         19        CONCAT                                           ~22     ~21, '%29%3Cbr%2F%3E'
         20        ECHO                                                     ~22
   15    21        ASSIGN                                                   !0, !7
   17    22        ASSIGN                                                   !5, 0
         23      > JMP                                                      ->28
   19    24    >   CAST                                          8  ~26     null
         25        ASSIGN_DIM                                               !2
         26        OP_DATA                                                  ~26
   17    27        PRE_INC                                                  !5
         28    >   IS_SMALLER                                               !5, 100
         29      > JMPNZ                                                    ~28, ->24
   22    30    >   INIT_FCALL                                               'memory_get_usage'
         31        SEND_VAL                                                 <false>
         32        DO_ICALL                                         $29     
         33        ASSIGN                                                   !7, $29
   23    34        CONCAT                                           ~31     !7, '+%28%2B'
         35        SUB                                              ~32     !7, !0
         36        CONCAT                                           ~33     ~31, ~32
         37        CONCAT                                           ~34     ~33, '%29%3Cbr%2F%3E'
         38        ECHO                                                     ~34
   24    39        ASSIGN                                                   !0, !7
   26    40        ASSIGN                                                   !4, 0
         41      > JMP                                                      ->47
   28    42    >   NEW                                              $38     'stdClass'
         43        DO_FCALL                                      0          
         44        ASSIGN_DIM                                               !1
         45        OP_DATA                                                  $38
   26    46        PRE_INC                                                  !4
         47    >   IS_SMALLER                                               !4, 100
         48      > JMPNZ                                                    ~41, ->42
   31    49    >   INIT_FCALL                                               'memory_get_usage'
         50        SEND_VAL                                                 <false>
         51        DO_ICALL                                         $42     
         52        ASSIGN                                                   !7, $42
   32    53        CONCAT                                           ~44     !7, '+%28%2B'
         54        SUB                                              ~45     !7, !0
         55        CONCAT                                           ~46     ~44, ~45
         56        CONCAT                                           ~47     ~46, '%29%3Cbr%2F%3E'
         57        ECHO                                                     ~47
   33    58        ASSIGN                                                   !0, !7
   35    59        ASSIGN                                                   !6, 0
         60      > JMP                                                      ->66
   37    61    >   NEW                                              $51     'stdClass'
         62        DO_FCALL                                      0          
         63        ASSIGN_DIM                                               !3
         64        OP_DATA                                                  $51
   35    65        PRE_INC                                                  !6
         66    >   IS_SMALLER                                               !6, 100
         67      > JMPNZ                                                    ~54, ->61
   40    68    >   INIT_FCALL                                               'memory_get_usage'
         69        SEND_VAL                                                 <false>
         70        DO_ICALL                                         $55     
         71        ASSIGN                                                   !7, $55
   41    72        CONCAT                                           ~57     !7, '+%28%2B'
         73        SUB                                              ~58     !7, !0
         74        CONCAT                                           ~59     ~57, ~58
         75        CONCAT                                           ~60     ~59, '%29%3Cbr%2F%3E'
         76        ECHO                                                     ~60
   42    77        ASSIGN                                                   !0, !7
         78      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.13 ms | 1400 KiB | 15 Q