3v4l.org

run code in 300+ 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:  24
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        INIT_FCALL                                               'in_array'
          5        SEND_VAR                                                 !0
          6        SEND_VAR                                                 !1
          7        SEND_VAL                                                 <true>
          8        DO_ICALL                                         $4      
          9        TYPE_CHECK                                    4  ~5      $4
         10        SEND_VAL                                                 ~5
         11        SEND_VAL                                                 'assert%28in_array%28%24needle%2C+%24haystack%2C+true%29+%3D%3D%3D+false%29'
         12        DO_ICALL                                                 
    6    13        ASSERT_CHECK                                             
         14        INIT_FCALL                                               'assert'
         15        INIT_FCALL                                               'in_array'
         16        SEND_VAR                                                 !0
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $7      
         19        TYPE_CHECK                                    4  ~8      $7
         20        SEND_VAL                                                 ~8
         21        SEND_VAL                                                 'assert%28in_array%28%24needle%2C+%24haystack%29+%3D%3D%3D+false%29'
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
191.78 ms | 1395 KiB | 17 Q