3v4l.org

run code in 300+ PHP versions simultaneously
<?php $keys = array( "a" => 1, "c" =>2, ); $keyToken = 1; if (is_array($keys)) { unset($keys[array_search($keyToken, $keys)]); } else { $keys = array(); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 10
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AnKve
function name:  (null)
number of ops:  12
compiled vars:  !0 = $keys, !1 = $keyToken
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    8     1        ASSIGN                                                   !1, 1
    9     2        TYPE_CHECK                                  128          !0
          3      > JMPZ                                                     ~4, ->10
   10     4    >   INIT_FCALL                                               'array_search'
          5        SEND_VAR                                                 !1
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $5      
          8        UNSET_DIM                                                !0, $5
          9      > JMP                                                      ->11
   12    10    >   ASSIGN                                                   !0, <array>
   13    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.39 ms | 1394 KiB | 15 Q