3v4l.org

run code in 300+ PHP versions simultaneously
<?php use Symfony\Component\HttpKernel\Exception\HttpException; class OrderNotFound extends HttpException { public static function create(string $id): self { return new self( statusCode: Response::HTTP_NOT_FOUND, message: sprintf('The order "%s" could not be found.', $id), headers: ['x-header' => 'foo'], ); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MHeT7
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   DECLARE_CLASS                                            'ordernotfound', 'symfony%5Ccomponent%5Chttpkernel%5Cexception%5Chttpexception'
   15     1      > RETURN                                                   1

Class OrderNotFound:
Function create:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MHeT7
function name:  create
number of ops:  16
compiled vars:  !0 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    9     1        NEW                          self                $1      
   10     2        FETCH_CLASS_CONSTANT                             ~2      'Response', 'HTTP_NOT_FOUND'
          3        SEND_VAL_EX                                              ~2, 'statusCode'
   11     4        INIT_FCALL                                               'sprintf'
          5        SEND_VAL                                                 'The+order+%22%25s%22+could+not+be+found.'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8        SEND_VAR_NO_REF_EX                                       $3, 'message'
   12     9        SEND_VAL_EX                                              <array>, 'headers'
         10        CHECK_UNDEF_ARGS                                         
    9    11        DO_FCALL                                      1          
   12    12        VERIFY_RETURN_TYPE                                       $1
         13      > RETURN                                                   $1
   14    14*       VERIFY_RETURN_TYPE                                       
         15*     > RETURN                                                   null

End of function create

End of class OrderNotFound.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.79 ms | 1450 KiB | 14 Q