3v4l.org

run code in 300+ PHP versions simultaneously
<?php //foreach ($fnc_array as $fnc_name) { $ref_func = new ReflectionFunction('preg_replace_callback'); foreach($ref_func->getParameters() as $parm) { var_dump($parm->isCallable()); if($parm->isCallable()) { echo "$fnc_name (" . $ref_func->getNumberOfParameters() .")\n"; break; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 25
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 25
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 24
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 25
Branch analysis from position: 25
filename:       /in/8bk61
function name:  (null)
number of ops:  27
compiled vars:  !0 = $ref_func, !1 = $parm, !2 = $fnc_name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $3      'ReflectionFunction'
          1        SEND_VAL_EX                                              'preg_replace_callback'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
    6     4        INIT_METHOD_CALL                                         !0, 'getParameters'
          5        DO_FCALL                                      0  $6      
          6      > FE_RESET_R                                       $7      $6, ->25
          7    > > FE_FETCH_R                                               $7, !1, ->25
    7     8    >   INIT_FCALL                                               'var_dump'
          9        INIT_METHOD_CALL                                         !1, 'isCallable'
         10        DO_FCALL                                      0  $8      
         11        SEND_VAR                                                 $8
         12        DO_ICALL                                                 
    8    13        INIT_METHOD_CALL                                         !1, 'isCallable'
         14        DO_FCALL                                      0  $10     
         15      > JMPZ                                                     $10, ->24
    9    16    >   NOP                                                      
         17        FAST_CONCAT                                      ~11     !2, '+%28'
         18        INIT_METHOD_CALL                                         !0, 'getNumberOfParameters'
         19        DO_FCALL                                      0  $12     
         20        CONCAT                                           ~13     ~11, $12
         21        CONCAT                                           ~14     ~13, '%29%0A'
         22        ECHO                                                     ~14
   10    23      > JMP                                                      ->25
    6    24    > > JMP                                                      ->7
         25    >   FE_FREE                                                  $7
   13    26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.91 ms | 1396 KiB | 15 Q