3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x=memory_get_usage(true); $res=[[[[[[[[[[random_int(2,4)]]]]]]]]]]; $y=memory_get_usage(true); var_dump($y-$x);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MCMBQ
function name:  (null)
number of ops:  28
compiled vars:  !0 = $x, !1 = $res, !2 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'memory_get_usage'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    4     4        INIT_FCALL                                               'random_int'
          5        SEND_VAL                                                 2
          6        SEND_VAL                                                 4
          7        DO_ICALL                                         $5      
          8        INIT_ARRAY                                       ~6      $5
          9        INIT_ARRAY                                       ~7      ~6
         10        INIT_ARRAY                                       ~8      ~7
         11        INIT_ARRAY                                       ~9      ~8
         12        INIT_ARRAY                                       ~10     ~9
         13        INIT_ARRAY                                       ~11     ~10
         14        INIT_ARRAY                                       ~12     ~11
         15        INIT_ARRAY                                       ~13     ~12
         16        INIT_ARRAY                                       ~14     ~13
         17        INIT_ARRAY                                       ~15     ~14
         18        ASSIGN                                                   !1, ~15
    5    19        INIT_FCALL                                               'memory_get_usage'
         20        SEND_VAL                                                 <true>
         21        DO_ICALL                                         $17     
         22        ASSIGN                                                   !2, $17
    6    23        INIT_FCALL                                               'var_dump'
         24        SUB                                              ~19     !2, !0
         25        SEND_VAL                                                 ~19
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.35 ms | 1007 KiB | 16 Q