3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(111,112,113,114,115); $delValue = 115; // using a “diff” comparison: $array = array_values(array_diff($arr, [$delValue])); // 115 removed var_dump($array);// [0]=> int(111), [1]=> int(112), [2]=> int(114), [3]=>int(115)
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ufjhs
function name:  (null)
number of ops:  15
compiled vars:  !0 = $arr, !1 = $delValue, !2 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 115
    7     2        INIT_FCALL                                               'array_values'
          3        INIT_FCALL                                               'array_diff'
          4        SEND_VAR                                                 !0
          5        INIT_ARRAY                                       ~5      !1
          6        SEND_VAL                                                 ~5
          7        DO_ICALL                                         $6      
          8        SEND_VAR                                                 $6
          9        DO_ICALL                                         $7      
         10        ASSIGN                                                   !2, $7
   10    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.58 ms | 1394 KiB | 19 Q