3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array('a', 'b'); var_dump(in_array($array, array($array), TRUE)); var_dump(in_array($array, $array, TRUE)); var_dump(in_array($array, $array, FALSE));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r7a91
function name:  (null)
number of ops:  27
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'in_array'
          3        SEND_VAR                                                 !0
          4        INIT_ARRAY                                       ~2      !0
          5        SEND_VAL                                                 ~2
          6        SEND_VAL                                                 <true>
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                                 
    7    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'in_array'
         12        SEND_VAR                                                 !0
         13        SEND_VAR                                                 !0
         14        SEND_VAL                                                 <true>
         15        DO_ICALL                                         $5      
         16        SEND_VAR                                                 $5
         17        DO_ICALL                                                 
    9    18        INIT_FCALL                                               'var_dump'
         19        INIT_FCALL                                               'in_array'
         20        SEND_VAR                                                 !0
         21        SEND_VAR                                                 !0
         22        SEND_VAL                                                 <false>
         23        DO_ICALL                                         $7      
         24        SEND_VAR                                                 $7
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.85 ms | 1395 KiB | 17 Q