3v4l.org

run code in 300+ PHP versions simultaneously
<?php class HttpException extends \Exception { const HTTP_NOT_FOUND = 404; const ERROR_404_RESPONSE = 'Page not found'; // One off error messages can use this method... public static function notFound() { throw new static("Error code 404: " . static::ERROR_404_RESPONSE); } } HttpException::notFound();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ttUTa
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_STATIC_METHOD_CALL                                  'HttpException', 'notFound'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Class HttpException:
Function notfound:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/ttUTa
function name:  notFound
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                          static              $0      
          1        FETCH_CLASS_CONSTANT                             ~1      'ERROR_404_RESPONSE'
          2        CONCAT                                           ~2      'Error+code+404%3A+', ~1
          3        SEND_VAL_EX                                              ~2
          4        DO_FCALL                                      0          
          5      > THROW                                         0          $0
   12     6*     > RETURN                                                   null

End of function notfound

End of class HttpException.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.49 ms | 1393 KiB | 13 Q