3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace App\Function; function str_repeat() { return __FUNCTION__; } $filter = 'str_repeat'; echo $filter('a', 10) . PHP_EOL; $filter = '\str_repeat'; echo $filter('a', 10) . PHP_EOL; $filter = 'App\Function\str_repeat'; echo $filter('a', 10) . PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JArO7
function name:  (null)
number of ops:  25
compiled vars:  !0 = $filter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN                                                   !0, 'str_repeat'
   10     1        INIT_DYNAMIC_CALL                                        !0
          2        SEND_VAL_EX                                              'a'
          3        SEND_VAL_EX                                              10
          4        DO_FCALL                                      0  $2      
          5        FETCH_CONSTANT                                   ~3      'App%5CFunction%5CPHP_EOL'
          6        CONCAT                                           ~4      $2, ~3
          7        ECHO                                                     ~4
   12     8        ASSIGN                                                   !0, '%5Cstr_repeat'
   13     9        INIT_DYNAMIC_CALL                                        !0
         10        SEND_VAL_EX                                              'a'
         11        SEND_VAL_EX                                              10
         12        DO_FCALL                                      0  $6      
         13        FETCH_CONSTANT                                   ~7      'App%5CFunction%5CPHP_EOL'
         14        CONCAT                                           ~8      $6, ~7
         15        ECHO                                                     ~8
   15    16        ASSIGN                                                   !0, 'App%5CFunction%5Cstr_repeat'
   16    17        INIT_DYNAMIC_CALL                                        !0
         18        SEND_VAL_EX                                              'a'
         19        SEND_VAL_EX                                              10
         20        DO_FCALL                                      0  $10     
         21        FETCH_CONSTANT                                   ~11     'App%5CFunction%5CPHP_EOL'
         22        CONCAT                                           ~12     $10, ~11
         23        ECHO                                                     ~12
   17    24      > RETURN                                                   1

Function app%5Cfunction%5Cstr_repeat:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JArO7
function name:  App\Function\str_repeat
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E > > RETURN                                                   'App%5CFunction%5Cstr_repeat'
    7     1*     > RETURN                                                   null

End of function app%5Cfunction%5Cstr_repeat

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.13 ms | 1000 KiB | 13 Q