3v4l.org

run code in 300+ PHP versions simultaneously
<?php $srv = array('build', 'calss'); $srv_keys = array_keys($srv); $cant_be_together = array('build', 'class'); if(count(array_intersect($srv_keys, $cant_be_together)) === count($cant_be_together)) { $str = 1; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 15
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/aLDke
function name:  (null)
number of ops:  16
compiled vars:  !0 = $srv, !1 = $srv_keys, !2 = $cant_be_together, !3 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'array_keys'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
    4     5        ASSIGN                                                   !2, <array>
    5     6        INIT_FCALL                                               'array_intersect'
          7        SEND_VAR                                                 !1
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                         $8      
         10        COUNT                                            ~9      $8
         11        COUNT                                            ~10     !2
         12        IS_IDENTICAL                                             ~9, ~10
         13      > JMPZ                                                     ~11, ->15
         14    >   ASSIGN                                                   !3, 1
         15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.03 ms | 939 KiB | 18 Q