3v4l.org

run code in 500+ PHP versions simultaneously
<?php $command = ['one'=>1,"two"=>2,"three"=>3]; $keys = array_keys($command); var_dump(array_pop(array_keys($command))); echo "\n\n\n\n"; var_dump(array_pop($keys));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OQacn
function name:  (null)
number of ops:  22
compiled vars:  !0 = $command, !1 = $keys
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
    3     1        INIT_FCALL                                                   'array_keys'
          2        SEND_VAR                                                     !0
          3        DO_ICALL                                             $3      
          4        ASSIGN                                                       !1, $3
    6     5        INIT_FCALL                                                   'var_dump'
          6        INIT_FCALL                                                   'array_pop'
          7        INIT_FCALL                                                   'array_keys'
          8        SEND_VAR                                                     !0
          9        DO_ICALL                                             $5      
         10        SEND_VAR_NO_REF                                   0          $5
         11        DO_ICALL                                             $6      
         12        SEND_VAR                                                     $6
         13        DO_ICALL                                                     
    8    14        ECHO                                                         '%0A%0A%0A%0A'
   10    15        INIT_FCALL                                                   'var_dump'
         16        INIT_FCALL                                                   'array_pop'
         17        SEND_REF                                                     !1
         18        DO_ICALL                                             $8      
         19        SEND_VAR                                                     $8
         20        DO_ICALL                                                     
         21      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.54 ms | 1994 KiB | 16 Q