3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ar = array('q'=>1, 'w'=>2, 'e'=>3); $ak = array_keys($ar); $ind = array_search('w', $ak); unset($ak[$ind]); print_r($ak);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KBckr
function name:  (null)
number of ops:  15
compiled vars:  !0 = $ar, !1 = $ak, !2 = $ind
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'array_keys'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    5     5        INIT_FCALL                                               'array_search'
          6        SEND_VAL                                                 'w'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !2, $6
    6    10        UNSET_DIM                                                !1, !2
    8    11        INIT_FCALL                                               'print_r'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.64 ms | 1398 KiB | 19 Q