3v4l.org

run code in 500+ PHP versions simultaneously
<?php namespace A; class SomeClass { public static function run(): void { function strlen(): int { return 1; } echo strlen(); } } SomeClass::run();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HL6US
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   18     0  E >   INIT_STATIC_METHOD_CALL                                      'A%5CSomeClass', 'run'
          1        DO_FCALL                                          0          
          2      > RETURN                                                       1

Class A\SomeClass:
Function run:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HL6US
function name:  run
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   DECLARE_FUNCTION                                             'a%5Cstrlen'
   14     1        INIT_NS_FCALL_BY_NAME                                        'A%5Cstrlen'
          2        DO_FCALL                                          0  $0      
          3        ECHO                                                         $0
   15     4      > RETURN                                                       null


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HL6US
function name:  A\strlen
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   11     0  E > > RETURN                                                       1
   12     1*       VERIFY_RETURN_TYPE                                           
          2*     > RETURN                                                       null

End of Dynamic Function 0

End of function run

End of class A\SomeClass.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
155.34 ms | 1366 KiB | 14 Q