3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [10,20,30,40,50,60]; $k = end($a); $k = prev($a); var_dump($k); unset($a[$key]); var_dump($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/43NOY
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a, !1 = $k, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'end'
          2        SEND_REF                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    7     5        INIT_FCALL                                               'prev'
          6        SEND_REF                                                 !0
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !1, $6
    9     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
   11    12        UNSET_DIM                                                !0, !2
   13    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.71 ms | 1394 KiB | 19 Q