3v4l.org

run code in 300+ PHP versions simultaneously
<?php $files = [ '/usr/share/nginx/wordpress/wp-content/plugins/myplugin.php', '/usr/share/nginx/wordpress/wp-content/themes/index.php', '/usr/share/nginx/wordpress/wp-content/themes/mytheme.php', '/usr/share/nginx/wordpress/wp-content/plugins/akismet.php', '/usr/share/nginx/wordpress/wp-content/uploads/november.jpg', ]; $exclude = [ '/usr/share/nginx/wordpress/wp-content/plugins/myplugin.php', '/usr/share/nginx/wordpress/wp-content/uploads', ]; // tamamen eşit klasör ya da dosya = 0 // klasörden dolayı alt dosya olabilir = 1 // hiç eşleşmeyebilir = -1 var_dump(array_udiff($files, $exclude, function($a, $b) { var_dump($a, $b, strpos($a, $b)); return strpos($a, $b) === false ? -1 : (strtolower($a) == strtolower($b) ? 0 : 1); }));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eHCMG
function name:  (null)
number of ops:  12
compiled vars:  !0 = $files, !1 = $exclude
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   11     1        ASSIGN                                                   !1, <array>
   21     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'array_udiff'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FeHCMG%3A21%240'
   24     7        SEND_VAL                                                 ~4
          8        DO_ICALL                                         $5      
          9        SEND_VAR                                                 $5
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FeHCMG%3A21%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 29
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eHCMG
function name:  {closure}
number of ops:  33
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   22     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        INIT_FCALL                                               'strpos'
          6        SEND_VAR                                                 !0
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $2      
          9        SEND_VAR                                                 $2
         10        DO_ICALL                                                 
   23    11        INIT_FCALL                                               'strpos'
         12        SEND_VAR                                                 !0
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $4      
         15        TYPE_CHECK                                    4          $4
         16      > JMPZ                                                     ~5, ->19
         17    >   QM_ASSIGN                                        ~6      -1
         18      > JMP                                                      ->31
         19    >   INIT_FCALL                                               'strtolower'
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                         $7      
         22        INIT_FCALL                                               'strtolower'
         23        SEND_VAR                                                 !1
         24        DO_ICALL                                         $8      
         25        IS_EQUAL                                                 $7, $8
         26      > JMPZ                                                     ~9, ->29
         27    >   QM_ASSIGN                                        ~10     0
         28      > JMP                                                      ->30
         29    >   QM_ASSIGN                                        ~10     1
         30    >   QM_ASSIGN                                        ~6      ~10
         31    > > RETURN                                                   ~6
   24    32*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FeHCMG%3A21%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
218.95 ms | 1400 KiB | 21 Q