3v4l.org

run code in 500+ PHP versions simultaneously
<?php class MyClass { public static function oldFunction() { trigger_error( vsprintf('Using "%s" is deprecated, use "%s" instead.', [__METHOD__, __CLASS__ . '::newFunction']), E_USER_DEPRECATED ); } public static function newFunction() { } } MyClass::oldFunction(); trigger_error("Cannot divide by zero", E_USER_ERROR);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uHoLn
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   16     0  E >   INIT_STATIC_METHOD_CALL                                      'MyClass', 'oldFunction'
          1        DO_FCALL                                          0          
   17     2        INIT_FCALL                                                   'trigger_error'
          3        SEND_VAL                                                     'Cannot+divide+by+zero'
          4        SEND_VAL                                                     256
          5        DO_ICALL                                                     
          6      > RETURN                                                       1

Class MyClass:
Function oldfunction:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uHoLn
function name:  oldFunction
number of ops:  9
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                                   'trigger_error'
    8     1        INIT_FCALL                                                   'vsprintf'
          2        SEND_VAL                                                     'Using+%22%25s%22+is+deprecated%2C+use+%22%25s%22+instead.'
          3        SEND_VAL                                                     <array>
          4        DO_ICALL                                             $0      
          5        SEND_VAR                                                     $0
    9     6        SEND_VAL                                                     16384
    7     7        DO_ICALL                                                     
   11     8      > RETURN                                                       null

End of function oldfunction

Function newfunction:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uHoLn
function name:  newFunction
number of ops:  1
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E > > RETURN                                                       null

End of function newfunction

End of class MyClass.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
130.22 ms | 478 KiB | 9 Q