3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST = [ 'wind' => [ 1 => 'hk', 2 => 'pop', 25 => 'another' ] ]; end($_POST['wind']); echo key($_POST['wind']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oi5SM
function name:  (null)
number of ops:  14
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_W                      global              $0      '_POST'
          1        ASSIGN                                                   $0, <array>
    9     2        INIT_FCALL                                               'end'
          3        FETCH_W                      global              $2      '_POST'
          4        FETCH_DIM_W                                      $3      $2, 'wind'
          5        SEND_REF                                                 $3
          6        DO_ICALL                                                 
   10     7        INIT_FCALL                                               'key'
          8        FETCH_R                      global              ~5      '_POST'
          9        FETCH_DIM_R                                      ~6      ~5, 'wind'
         10        SEND_VAL                                                 ~6
         11        DO_ICALL                                         $7      
         12        ECHO                                                     $7
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.74 ms | 1436 KiB | 15 Q