3v4l.org

run code in 300+ PHP versions simultaneously
<?php $m = [ 'foo' => 'aaa', 'bar' => 'bbb', 'baz' => 'ccc', ]; $v = 'bbb'; var_dump(in_array($v, $m, true)); $v = 'zzz'; var_dump(in_array($v, $m, true));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0KhIp
function name:  (null)
number of ops:  20
compiled vars:  !0 = $m, !1 = $v
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   4     0  E >   QM_ASSIGN                                                !0
   9     1        QM_ASSIGN                                                !1
  10     2        INIT_FCALL                                               'var_dump'
         3        INIT_FCALL                                               'in_array'
         4        SEND_VAR                                                 !1
         5        SEND_VAR                                                 !0
         6        SEND_VAL                                                 <true>
         7        DO_ICALL                                         $4      
         8        SEND_VAR                                                 $4
         9        DO_ICALL                                                 
  12    10        QM_ASSIGN                                                !1
  13    11        INIT_FCALL                                               'var_dump'
        12        INIT_FCALL                                               'in_array'
        13        SEND_VAR                                                 !1
        14        SEND_VAR                                                 !0
        15        SEND_VAL                                                 <true>
        16        DO_ICALL                                         $7      
        17        SEND_VAR                                                 $7
        18        DO_ICALL                                                 
        19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
12.36 ms | 410 KiB | 7 Q