3v4l.org

run code in 300+ PHP versions simultaneously
<?php // В фильтрах нужно быть строже $arr = ['попа', 'ручка']; var_dump( in_array('', array_keys($arr)), in_array('', array_keys($arr), true), '' == 0, 0 == 'test', 'test' == 0, (int) 'test' );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/476r3
function name:  (null)
number of ops:  26
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'var_dump'
    6     2        INIT_FCALL                                               'in_array'
          3        SEND_VAL                                                 ''
          4        INIT_FCALL                                               'array_keys'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                         $3      
          9        SEND_VAR                                                 $3
    7    10        INIT_FCALL                                               'in_array'
         11        SEND_VAL                                                 ''
         12        INIT_FCALL                                               'array_keys'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $4      
         15        SEND_VAR                                                 $4
         16        SEND_VAL                                                 <true>
         17        DO_ICALL                                         $5      
         18        SEND_VAR                                                 $5
    8    19        SEND_VAL                                                 <false>
    9    20        SEND_VAL                                                 <false>
   10    21        SEND_VAL                                                 <false>
   11    22        CAST                                          4  ~6      'test'
         23        SEND_VAL                                                 ~6
         24        DO_ICALL                                                 
   12    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.47 ms | 1395 KiB | 19 Q