3v4l.org

run code in 300+ PHP versions simultaneously
<?php $val = array( 14860, 13184, 63782 ); $b = '14860'; if (in_array((int)$b, $val, true)) { return true; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XbA1j
function name:  (null)
number of ops:  11
compiled vars:  !0 = $val, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        ASSIGN                                                   !1, '14860'
   10     2        INIT_FCALL                                               'in_array'
          3        CAST                                          4  ~4      !1
          4        SEND_VAL                                                 ~4
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 <true>
          7        DO_ICALL                                         $5      
          8      > JMPZ                                                     $5, ->10
   11     9    > > RETURN                                                   <true>
   12    10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.06 ms | 1394 KiB | 15 Q