3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.88 ms | 1386 KiB | 15 Q