3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.64 ms | 1395 KiB | 17 Q