3v4l.org

run code in 300+ PHP versions simultaneously
<?php $item = array( 'image 6 alt', 'image 6 title', 'public:///image.png', ); $values = array ( 'fid' => '2', 'uid' => '0', 'filename' => 'image.png', 'uri' => 'public:///image.png', 'filemime' => 'image/png', 'filesize' => '333', 'status' => '1', 'timestamp' => '1541320113', 'alt' => ' image 6 alt', 'title' => ' image 6 title', 'width' => '140', 'height' => '100', ); foreach ($item as $value) { debug(in_array($value, $values)); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 12
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 12
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/XMf2i
function name:  (null)
number of ops:  14
compiled vars:  !0 = $item, !1 = $values, !2 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    8     1        ASSIGN                                                   !1, <array>
   22     2      > FE_RESET_R                                       $5      !0, ->12
          3    > > FE_FETCH_R                                               $5, !2, ->12
   23     4    >   INIT_FCALL_BY_NAME                                       'debug'
          5        INIT_FCALL                                               'in_array'
          6        SEND_VAR                                                 !2
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $6      
          9        SEND_VAR_NO_REF_EX                                       $6
         10        DO_FCALL                                      0          
   22    11      > JMP                                                      ->3
         12    >   FE_FREE                                                  $5
   24    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.05 ms | 1394 KiB | 15 Q