3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.48 ms | 1394 KiB | 17 Q