3v4l.org

run code in 500+ PHP versions simultaneously
<?php $needle = '1.10'; $haystack = array('1.1'); assert(in_array($needle, $haystack, true) === false); assert(in_array($needle, $haystack) === false);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HKM8Q
function name:  (null)
number of ops:  18
compiled vars:  !0 = $needle, !1 = $haystack
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, '1.10'
    3     1        ASSIGN                                                       !1, <array>
    5     2        ASSERT_CHECK                                                 
          3        INIT_FCALL                                                   'assert'
          4        FRAMELESS_ICALL_3                in_array            ~4      !0, !1
          5        OP_DATA                                                      <true>
          6        TYPE_CHECK                                        4  ~5      ~4
          7        SEND_VAL                                                     ~5
          8        SEND_VAL                                                     'assert%28in_array%28%24needle%2C+%24haystack%2C+true%29+%3D%3D%3D+false%29'
          9        DO_ICALL                                                     
    6    10        ASSERT_CHECK                                                 
         11        INIT_FCALL                                                   'assert'
         12        FRAMELESS_ICALL_2                in_array            ~7      !0, !1
         13        TYPE_CHECK                                        4  ~8      ~7
         14        SEND_VAL                                                     ~8
         15        SEND_VAL                                                     'assert%28in_array%28%24needle%2C+%24haystack%29+%3D%3D%3D+false%29'
         16        DO_ICALL                                                     
         17      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.71 ms | 2912 KiB | 14 Q