3v4l.org

run code in 300+ PHP versions simultaneously
<?php $stack = array("orange", "banana", "apple", "raspberry"); unset($stack[3]); var_dump($stack, count($stack)); $fruit = array_pop($stack); var_dump($stack, $fruit, count($stack)); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2kUXl
function name:  (null)
number of ops:  18
compiled vars:  !0 = $stack, !1 = $fruit
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        UNSET_DIM                                                !0, 3
    4     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !0
          4        COUNT                                            ~3      !0
          5        SEND_VAL                                                 ~3
          6        DO_ICALL                                                 
    5     7        INIT_FCALL                                               'array_pop'
          8        SEND_REF                                                 !0
          9        DO_ICALL                                         $5      
         10        ASSIGN                                                   !1, $5
    6    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !0
         13        SEND_VAR                                                 !1
         14        COUNT                                            ~7      !0
         15        SEND_VAL                                                 ~7
         16        DO_ICALL                                                 
    7    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.21 ms | 1394 KiB | 17 Q