3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [0 => 23, 1 => 1, 2 => 22]; var_dump($arr); asort($arr); var_dump($arr); $redirect = array_pop($arr); var_dump($redirect); var_dump(array_pop($arr)); var_dump(array_keys($redirect));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZXAI6
function name:  (null)
number of ops:  30
compiled vars:  !0 = $arr, !1 = $redirect
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    4     4        INIT_FCALL                                               'asort'
          5        SEND_REF                                                 !0
          6        DO_ICALL                                                 
    5     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
    6    10        INIT_FCALL                                               'array_pop'
         11        SEND_REF                                                 !0
         12        DO_ICALL                                         $6      
         13        ASSIGN                                                   !1, $6
    7    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                                 
    8    17        INIT_FCALL                                               'var_dump'
         18        INIT_FCALL                                               'array_pop'
         19        SEND_REF                                                 !0
         20        DO_ICALL                                         $9      
         21        SEND_VAR                                                 $9
         22        DO_ICALL                                                 
    9    23        INIT_FCALL                                               'var_dump'
         24        INIT_FCALL                                               'array_keys'
         25        SEND_VAR                                                 !1
         26        DO_ICALL                                         $11     
         27        SEND_VAR                                                 $11
         28        DO_ICALL                                                 
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.82 ms | 1395 KiB | 21 Q