3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.03 ms | 1436 KiB | 15 Q