3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array('777'); $array2 = array('888'); $array3 = array('999'); $result1 = array_intersect($array1, $array2); $result2 = array_intersect($array1, $array3); if (count($result1) > 0) { $create_events_in = array('777'); } elseif (count($result2) > 0) { $create_events_in = array('777'); } var_dump($create_events_in);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 22
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/uchIV
function name:  (null)
number of ops:  26
compiled vars:  !0 = $array1, !1 = $array2, !2 = $array3, !3 = $result1, !4 = $result2, !5 = $create_events_in
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    4     2        ASSIGN                                                   !2, <array>
    6     3        INIT_FCALL                                               'array_intersect'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $9      
          7        ASSIGN                                                   !3, $9
    7     8        INIT_FCALL                                               'array_intersect'
          9        SEND_VAR                                                 !0
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                         $11     
         12        ASSIGN                                                   !4, $11
    8    13        COUNT                                            ~13     !3
         14        IS_SMALLER                                               0, ~13
         15      > JMPZ                                                     ~14, ->18
    9    16    >   ASSIGN                                                   !5, <array>
         17      > JMP                                                      ->22
   10    18    >   COUNT                                            ~16     !4
         19        IS_SMALLER                                               0, ~16
         20      > JMPZ                                                     ~17, ->22
   11    21    >   ASSIGN                                                   !5, <array>
   14    22    >   INIT_FCALL                                               'var_dump'
         23        SEND_VAR                                                 !5
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.51 ms | 1395 KiB | 17 Q