3v4l.org

run code in 500+ PHP versions simultaneously
<?php namespace Rector\Tests\CodeQuality\Rector\StmtsAwareInterface\MoveInnerFunctionToTopLevelRector\Fixture; function strlen(): int { return 1; } function SkipRedefineNativeFunction(): void { echo strlen(); } function bar() { echo strlen('abc'); } bar();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Galrb
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   21     0  E >   INIT_NS_FCALL_BY_NAME                                        'Rector%5CTests%5CCodeQuality%5CRector%5CStmtsAwareInterface%5CMoveInnerFunctionToTopLevelRector%5CFixture%5Cbar'
          1        DO_FCALL                                          0          
          2      > RETURN                                                       1

Function rector%5Ctests%5Ccodequality%5Crector%5Cstmtsawareinterface%5Cmoveinnerfunctiontotoplevelrector%5Cfixture%5Cstrlen:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Galrb
function name:  Rector\Tests\CodeQuality\Rector\StmtsAwareInterface\MoveInnerFunctionToTopLevelRector\Fixture\strlen
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                       1
    8     1*       VERIFY_RETURN_TYPE                                           
          2*     > RETURN                                                       null

End of function rector%5Ctests%5Ccodequality%5Crector%5Cstmtsawareinterface%5Cmoveinnerfunctiontotoplevelrector%5Cfixture%5Cstrlen

Function rector%5Ctests%5Ccodequality%5Crector%5Cstmtsawareinterface%5Cmoveinnerfunctiontotoplevelrector%5Cfixture%5Cskipredefinenativefunction:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Galrb
function name:  Rector\Tests\CodeQuality\Rector\StmtsAwareInterface\MoveInnerFunctionToTopLevelRector\Fixture\SkipRedefineNativeFunction
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   INIT_NS_FCALL_BY_NAME                                        'Rector%5CTests%5CCodeQuality%5CRector%5CStmtsAwareInterface%5CMoveInnerFunctionToTopLevelRector%5CFixture%5Cstrlen'
          1        DO_FCALL                                          0  $0      
          2        ECHO                                                         $0
   14     3      > RETURN                                                       null

End of function rector%5Ctests%5Ccodequality%5Crector%5Cstmtsawareinterface%5Cmoveinnerfunctiontotoplevelrector%5Cfixture%5Cskipredefinenativefunction

Function rector%5Ctests%5Ccodequality%5Crector%5Cstmtsawareinterface%5Cmoveinnerfunctiontotoplevelrector%5Cfixture%5Cbar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Galrb
function name:  Rector\Tests\CodeQuality\Rector\StmtsAwareInterface\MoveInnerFunctionToTopLevelRector\Fixture\bar
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   18     0  E >   INIT_NS_FCALL_BY_NAME                                        'Rector%5CTests%5CCodeQuality%5CRector%5CStmtsAwareInterface%5CMoveInnerFunctionToTopLevelRector%5CFixture%5Cstrlen'
          1        SEND_VAL_EX                                                  'abc'
          2        DO_FCALL                                          0  $0      
          3        ECHO                                                         $0
   19     4      > RETURN                                                       null

End of function rector%5Ctests%5Ccodequality%5Crector%5Cstmtsawareinterface%5Cmoveinnerfunctiontotoplevelrector%5Cfixture%5Cbar

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.02 ms | 1386 KiB | 15 Q