3v4l.org

run code in 300+ PHP versions simultaneously
<?php $params = array('key' => str_repeat('value', 1e6)); $a = memory_get_peak_usage(); extract($params); $b = memory_get_peak_usage(); var_dump($b < 1.1 * $a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/e8psv
function name:  (null)
number of ops:  21
compiled vars:  !0 = $params, !1 = $a, !2 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'str_repeat'
          1        SEND_VAL                                                 'value'
          2        SEND_VAL                                                 1.0e+6
          3        DO_ICALL                                         $3      
          4        INIT_ARRAY                                       ~4      $3, 'key'
          5        ASSIGN                                                   !0, ~4
    3     6        INIT_FCALL                                               'memory_get_peak_usage'
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !1, $6
    5     9        INIT_FCALL                                               'extract'
         10        SEND_REF                                                 !0
         11        DO_ICALL                                                 
    6    12        INIT_FCALL                                               'memory_get_peak_usage'
         13        DO_ICALL                                         $9      
         14        ASSIGN                                                   !2, $9
    8    15        INIT_FCALL                                               'var_dump'
         16        MUL                                              ~11     !1, 1.1
         17        IS_SMALLER                                       ~12     !2, ~11
         18        SEND_VAL                                                 ~12
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
200.87 ms | 1395 KiB | 21 Q