3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.2 ms | 1394 KiB | 17 Q