3v4l.org

run code in 300+ PHP versions simultaneously
<?php $row = array( 'useless' => 42, 'useful' => 'orange', 'useless_too' => 'banana', 'useful_too' => 'apples'); if (($key = array_search('strawberry', $row)) !== false) { unset($row[$key]); } print_r($row);
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/0D5SB
function name:  (null)
number of ops:  13
compiled vars:  !0 = $row, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    7     1        INIT_FCALL                                               'array_search'
          2        SEND_VAL                                                 'strawberry'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        ASSIGN                                           ~4      !1, $3
          6        TYPE_CHECK                                  1018          ~4
          7      > JMPZ                                                     ~5, ->9
    8     8    >   UNSET_DIM                                                !0, !1
   11     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:
166.24 ms | 1394 KiB | 17 Q