3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = array( 'permissions2', 'this2', 'test'); $toost = array('this2', 'permissions2'); // $yo = array_diff($toost, $test); if (in_array($toost, $test)) print_r(array_diff($test, $toost)); else print('it is false');
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 15
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0hbNB
function name:  (null)
number of ops:  17
compiled vars:  !0 = $test, !1 = $toost
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    8     2        INIT_FCALL                                               'in_array'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6      > JMPZ                                                     $4, ->15
    9     7    >   INIT_FCALL                                               'print_r'
          8        INIT_FCALL                                               'array_diff'
          9        SEND_VAR                                                 !0
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $5      
         12        SEND_VAR                                                 $5
         13        DO_ICALL                                                 
         14      > JMP                                                      ->16
   11    15    >   ECHO                                                     'it+is+false'
         16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.2 ms | 1394 KiB | 19 Q