3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [2,3,4,5,6,7]; $b = [11,64,2,5,8]; $c = 7; var_dump( array_intersect ( $a, $b )); var_dump( array_intersect ( $a, (array)$c )); var_dump( count( $c ));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bpjI1
function name:  (null)
number of ops:  23
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                                   !2, 7
    7     3        INIT_FCALL                                               'var_dump'
          4        INIT_FCALL                                               'array_intersect'
          5        SEND_VAR                                                 !0
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $6      
          8        SEND_VAR                                                 $6
          9        DO_ICALL                                                 
    8    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'array_intersect'
         12        SEND_VAR                                                 !0
         13        CAST                                          7  ~8      !2
         14        SEND_VAL                                                 ~8
         15        DO_ICALL                                         $9      
         16        SEND_VAR                                                 $9
         17        DO_ICALL                                                 
    9    18        INIT_FCALL                                               'var_dump'
         19        COUNT                                            ~11     !2
         20        SEND_VAL                                                 ~11
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.62 ms | 1395 KiB | 17 Q