3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = '6'; $b = array( 6 => 'CARD online', 9 => 'CardAvantaj online', 10 => 'BonusCard online', 11 => 'CardRaiffeisen online', 12 => 'CardTransilvania online', 13 => 'CardEurolineAmericanExpress online', 16 => 'ePay', 19 => 'iTransfer' ); echo +in_array($a, array_keys($b));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/h5B83
function name:  (null)
number of ops:  12
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '6'
    4     1        ASSIGN                                                   !1, <array>
   14     2        INIT_FCALL                                               'in_array'
          3        SEND_VAR                                                 !0
          4        INIT_FCALL                                               'array_keys'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $4      
          7        SEND_VAR                                                 $4
          8        DO_ICALL                                         $5      
          9        MUL                                              ~6      $5, 1
         10        ECHO                                                     ~6
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.7 ms | 1394 KiB | 17 Q