3v4l.org

run code in 300+ PHP versions simultaneously
<?php function abc($a) { unset($a[-1]); } $a = range(1, 5000); echo memory_get_peak_usage(true), "\n"; abc($a); echo memory_get_peak_usage(true), "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8guRi
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 5000
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
   10     5        INIT_FCALL                                               'memory_get_peak_usage'
          6        SEND_VAL                                                 <true>
          7        DO_ICALL                                         $3      
          8        ECHO                                                     $3
          9        ECHO                                                     '%0A'
   11    10        INIT_FCALL                                               'abc'
         11        SEND_VAR                                                 !0
         12        DO_FCALL                                      0          
   12    13        INIT_FCALL                                               'memory_get_peak_usage'
         14        SEND_VAL                                                 <true>
         15        DO_ICALL                                         $5      
         16        ECHO                                                     $5
         17        ECHO                                                     '%0A'
         18      > RETURN                                                   1

Function abc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8guRi
function name:  abc
number of ops:  3
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        UNSET_DIM                                                !0, -1
    6     2      > RETURN                                                   null

End of function abc

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.22 ms | 1389 KiB | 18 Q