3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fixers = ['short_array_syntax', 'unix_line_endings', 'elseif', 'long_array_syntax', 'echo_to_print', 'print_to_echo']; $conflicts = array( 'unalign_double_arrow' => 'align_double_arrow', 'unalign_equals' => 'align_equals', 'concat_without_spaces' => 'concat_with_spaces', 'concat_with_spaces' => 'concat_without_spaces', 'print_to_echo' => 'echo_to_print', 'short_array_syntax' => 'long_array_syntax', 'single_blank_line_before_namespace' => 'no_blank_lines_before_namespace', 'phpdoc_var_to_type' => 'phpdoc_type_to_var', 'phpdoc_type_to_var' => 'phpdoc_var_to_type', 'echo_to_print' => 'print_to_echo', 'psr4' => 'psr0', 'psr0' => 'psr4', 'long_array_syntax' => ['short_array_syntax', 'phpdoc_var_to_type'], 'no_blank_lines_before_namespace' => 'single_blank_line_before_namespace', 'align_double_arrow' => 'unalign_double_arrow', 'align_equals' => 'unalign_equals', ); foreach ($fixers as $fixer) { if (isset($conflicts[$fixer]) && $conflicts = array_intersect((array) $conflicts[$fixer], $fixers) ) { echo sprintf('Fixer "%s" conflicts with fixers "%s".', $fixer, implode('", "', $conflicts)); } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 26
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 26
Branch analysis from position: 4
2 jumps found. (Code = 46) Position 1 = 6, Position 2 = 14
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 25
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 25
Branch analysis from position: 14
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
filename:       /in/rcr0d
function name:  (null)
number of ops:  28
compiled vars:  !0 = $fixers, !1 = $conflicts, !2 = $fixer
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
   23     2      > FE_RESET_R                                       $5      !0, ->26
          3    > > FE_FETCH_R                                               $5, !2, ->26
   24     4    >   ISSET_ISEMPTY_DIM_OBJ                         0  ~6      !1, !2
          5      > JMPZ_EX                                          ~6      ~6, ->14
          6    >   INIT_FCALL                                               'array_intersect'
          7        FETCH_DIM_R                                      ~7      !1, !2
          8        CAST                                          7  ~8      ~7
          9        SEND_VAL                                                 ~8
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $9      
         12        ASSIGN                                           ~10     !1, $9
         13        BOOL                                             ~6      ~10
         14    > > JMPZ                                                     ~6, ->25
   25    15    >   INIT_FCALL                                               'sprintf'
         16        SEND_VAL                                                 'Fixer+%22%25s%22+conflicts+with+fixers+%22%25s%22.'
         17        SEND_VAR                                                 !2
         18        INIT_FCALL                                               'implode'
         19        SEND_VAL                                                 '%22%2C+%22'
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                         $11     
         22        SEND_VAR                                                 $11
         23        DO_ICALL                                         $12     
         24        ECHO                                                     $12
   23    25    > > JMP                                                      ->3
         26    >   FE_FREE                                                  $5
   28    27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.31 ms | 1462 KiB | 16 Q