3v4l.org

run code in 300+ PHP versions simultaneously
<?php $scripts = [ '/media/jui/js/jquery.min.js' => 'something', '/media/jui/js/jquery-noconflict.js' => 'something', '/media/jui/js/jquery-migrate.min.js' => 'something', '/media/jui/js/bootstrap.min.js' => 'something', '/media/jui/js/jquery.autocomplete.min.js' => 'something', '/media/system/js/caption.js' => 'something', '/media/system/js/mootools-core.js' => 'something', '/media/system/js/mootools-more.js' => 'something', ]; $blackList = array_flip([ '/media/jui/js/jquery-noconflict.js', '/jui/js/bootstrap.min.js', '/media/jui/js/mootools-core.js', ]); foreach (array_intersect_ukey($scripts, $blackList, fn($a, $b) => (int) str_ends_with($a, $b)) as $script => $something) { unset($scripts[$script]); }; var_export($scripts);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 16
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 16
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/0QXaZ
function name:  (null)
number of ops:  21
compiled vars:  !0 = $scripts, !1 = $blackList, !2 = $something, !3 = $script
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   14     1        INIT_FCALL                                               'array_flip'
   15     2        SEND_VAL                                                 <array>
          3        DO_ICALL                                         $5      
   14     4        ASSIGN                                                   !1, $5
   20     5        INIT_FCALL                                               'array_intersect_ukey'
          6        SEND_VAR                                                 !0
          7        SEND_VAR                                                 !1
          8        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F0QXaZ%3A20%240'
          9        SEND_VAL                                                 ~7
         10        DO_ICALL                                         $8      
         11      > FE_RESET_R                                       $9      $8, ->16
         12    > > FE_FETCH_R                                       ~10     $9, !2, ->16
         13    >   ASSIGN                                                   !3, ~10
   21    14        UNSET_DIM                                                !0, !3
   20    15      > JMP                                                      ->12
         16    >   FE_FREE                                                  $9
   24    17        INIT_FCALL                                               'var_export'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F0QXaZ%3A20%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0QXaZ
function name:  {closure}
number of ops:  9
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        INIT_FCALL                                               'str_ends_with'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $2      
          6        CAST                                          4  ~3      $2
          7      > RETURN                                                   ~3
          8*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F0QXaZ%3A20%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.56 ms | 1396 KiB | 21 Q