3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Ololo\Pyshpysh\Really; function test_namespaced_function() { } foreach (get_defined_functions() as $type => $definedFunctionNames) { foreach ($definedFunctionNames as $definedFunctionName) { print("$definedFunctionName\n"); if (false !== $namespaceSeparatorIndex = strrpos($definedFunctionName, '\\')) { $definedFunctionNameBasename = substr($definedFunctionName, $namespaceSeparatorIndex + 1); } else { $definedFunctionNameBasename = $definedFunctionName; } if ($definedFunctionNameBasename === "test_namespaced_function") { print('\\'.$definedFunctionName."\n"); } } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 33
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 33
Branch analysis from position: 4
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 31
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 31
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 24
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 30
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 30
Branch analysis from position: 24
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 30
Branch analysis from position: 27
Branch analysis from position: 30
Branch analysis from position: 31
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 31
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
filename:       /in/iQOPu
function name:  (null)
number of ops:  35
compiled vars:  !0 = $definedFunctionNames, !1 = $type, !2 = $definedFunctionName, !3 = $namespaceSeparatorIndex, !4 = $definedFunctionNameBasename
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_NS_FCALL_BY_NAME                                    'Ololo%5CPyshpysh%5CReally%5Cget_defined_functions'
          1        DO_FCALL                                      0  $5      
          2      > FE_RESET_R                                       $6      $5, ->33
          3    > > FE_FETCH_R                                       ~7      $6, !0, ->33
          4    >   ASSIGN                                                   !1, ~7
   10     5      > FE_RESET_R                                       $9      !0, ->31
          6    > > FE_FETCH_R                                               $9, !2, ->31
   11     7    >   NOP                                                      
          8        FAST_CONCAT                                      ~10     !2, '%0A'
          9        ECHO                                                     ~10
   12    10        INIT_NS_FCALL_BY_NAME                                    'Ololo%5CPyshpysh%5CReally%5Cstrrpos'
         11        SEND_VAR_EX                                              !2
         12        SEND_VAL_EX                                              '%5C'
         13        DO_FCALL                                      0  $11     
         14        ASSIGN                                           ~12     !3, $11
         15        TYPE_CHECK                                  1018          ~12
         16      > JMPZ                                                     ~13, ->24
   13    17    >   INIT_NS_FCALL_BY_NAME                                    'Ololo%5CPyshpysh%5CReally%5Csubstr'
         18        SEND_VAR_EX                                              !2
         19        ADD                                              ~14     !3, 1
         20        SEND_VAL_EX                                              ~14
         21        DO_FCALL                                      0  $15     
         22        ASSIGN                                                   !4, $15
         23      > JMP                                                      ->25
   15    24    >   ASSIGN                                                   !4, !2
   18    25    >   IS_IDENTICAL                                             !4, 'test_namespaced_function'
         26      > JMPZ                                                     ~18, ->30
   19    27    >   CONCAT                                           ~19     '%5C', !2
         28        CONCAT                                           ~20     ~19, '%0A'
         29        ECHO                                                     ~20
   10    30    > > JMP                                                      ->6
         31    >   FE_FREE                                                  $9
    9    32      > JMP                                                      ->3
         33    >   FE_FREE                                                  $6
   22    34      > RETURN                                                   1

Function ololo%5Cpyshpysh%5Creally%5Ctest_namespaced_function:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iQOPu
function name:  Ololo\Pyshpysh\Really\test_namespaced_function
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                   null

End of function ololo%5Cpyshpysh%5Creally%5Ctest_namespaced_function

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.2 ms | 1400 KiB | 19 Q