3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = array("array_reduce", "array_diff_uassoc", "array_diff_ukey", "array_udiff", "array_udiff_assoc", "array_intersect_uassoc", "array_intersect_ukey", "array_uintersect", "array_uintersect_assoc", "array_walk", "array_walk_recursive", "iterator_apply", "usort", "uasort", "uksort", "iterator_apply", "array_map", "array_filter", "register_shutdown_function", "filter_var", "filter_var_array", "filter_input", "filter_input_array", "call_user_func", "call_user_func_array", "eval", "assert", "preg_replace", "preg_filter", "create_function", "mb_ereg_replace", "mb_eregi_replace",); /* function show_all($keys){ global $result; foreach ($keys as $key) { if(is_array($key)) show_all($key); else{ $refFunc = new ReflectionFunction($key); foreach( $refFunc->getParameters() as $param ){ if(preg_match('/callback/',$param->name)) $result[$key] = 1; } } } } show_all(get_defined_functions()); */ foreach (array_keys($result) as $key) { print "$key:\n"; $refFunc = new ReflectionFunction($key); foreach( $refFunc->getParameters() as $param ){ print "\t$param\n"; } } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 24
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 24
Branch analysis from position: 6
2 jumps found. (Code = 77) Position 1 = 16, Position 2 = 22
Branch analysis from position: 16
2 jumps found. (Code = 78) Position 1 = 17, Position 2 = 22
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 22
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/8ESjj
function name:  (null)
number of ops:  26
compiled vars:  !0 = $result, !1 = $key, !2 = $refFunc, !3 = $param
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   54     1        INIT_FCALL                                               'array_keys'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $5      
          4      > FE_RESET_R                                       $6      $5, ->24
          5    > > FE_FETCH_R                                               $6, !1, ->24
   55     6    >   NOP                                                      
          7        FAST_CONCAT                                      ~7      !1, '%3A%0A'
          8        ECHO                                                     ~7
   56     9        NEW                                              $8      'ReflectionFunction'
         10        SEND_VAR_EX                                              !1
         11        DO_FCALL                                      0          
         12        ASSIGN                                                   !2, $8
   57    13        INIT_METHOD_CALL                                         !2, 'getParameters'
         14        DO_FCALL                                      0  $11     
         15      > FE_RESET_R                                       $12     $11, ->22
         16    > > FE_FETCH_R                                               $12, !3, ->22
   58    17    >   ROPE_INIT                                     3  ~14     '%09'
         18        ROPE_ADD                                      1  ~14     ~14, !3
         19        ROPE_END                                      2  ~13     ~14, '%0A'
         20        ECHO                                                     ~13
   57    21      > JMP                                                      ->16
         22    >   FE_FREE                                                  $12
   54    23      > JMP                                                      ->5
         24    >   FE_FREE                                                  $6
   61    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.82 ms | 1396 KiB | 15 Q