3v4l.org

run code in 500+ PHP versions simultaneously
<?php $haystacks = [ ["Mac", "NT"], ["Irix", "Linux"] ]; $needle = 'Irix'; var_export( array_any( $haystacks, fn($haystack) => in_array($needle, $haystack) ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J17A7
function name:  (null)
number of ops:  12
compiled vars:  !0 = $haystacks, !1 = $needle
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    8     1        ASSIGN                                                       !1, 'Irix'
    9     2        INIT_FCALL                                                   'var_export'
   10     3        INIT_FCALL                                                   'array_any'
   11     4        SEND_VAR                                                     !0
   12     5        DECLARE_LAMBDA_FUNCTION                              ~4      [0]
          6        BIND_LEXICAL                                                 ~4, !1
   13     7        SEND_VAL                                                     ~4
   10     8        DO_ICALL                                             $5      
   13     9        SEND_VAR                                                     $5
    9    10        DO_ICALL                                                     
   14    11      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J17A7
function name:  {closure:/in/J17A7:12}
number of ops:  5
compiled vars:  !0 = $haystack, !1 = $needle
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   12     0  E >   RECV                                                 !0      
          1        BIND_STATIC                                                  !1
          2        FRAMELESS_ICALL_2                in_array            ~2      !1, !0
          3      > RETURN                                                       ~2
   13     4*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.5 ms | 1595 KiB | 15 Q