3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(); $arr["a"] = "A"; $arr["b"] = "B"; /*$str = array_filter($arr, function($e1){ echo $e1; return $e1; });*/ $str = array_search("A", $arr); var_dump($str);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kdMo4
function name:  (null)
number of ops:  14
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                                                  'A'
    4     3        ASSIGN_DIM                                               !0, 'b'
          4        OP_DATA                                                  'B'
   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      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.69 ms | 1394 KiB | 17 Q