3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(); $arr["a"] = array("c" => "A"); $arr["b"] = array("d" => "B"); /*$str = array_filter($arr, function($e1){ echo $e1; return $e1; });*/ $str = array_search("A", $arr); var_dump($str); var_dump(in_array(array("c" => "A"), $arr));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CBY98
function name:  (null)
number of ops:  21
compiled vars:  !0 = $arr, !1 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN_DIM                                               !0, 'a'
          2        OP_DATA                                                  <array>
    4     3        ASSIGN_DIM                                               !0, 'b'
          4        OP_DATA                                                  <array>
   10     5        INIT_FCALL                                               'array_search'
          6        SEND_VAL                                                 'A'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !1, $5
   11    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
   13    13        INIT_FCALL                                               'var_dump'
         14        INIT_FCALL                                               'in_array'
         15        SEND_VAL                                                 <array>
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $8      
         18        SEND_VAR                                                 $8
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.84 ms | 1395 KiB | 19 Q