3v4l.org

run code in 500+ 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:  15
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        ROPE_INIT                                         3  ~4      'The+order+%22'
          5        ROPE_ADD                                          1  ~4      ~4, !0
          6        ROPE_END                                          2  ~3      ~4, '%22+could+not+be+found.'
          7        SEND_VAL_EX                                                  ~3, 'message'
   12     8        SEND_VAL_EX                                                  <array>, 'headers'
          9        CHECK_UNDEF_ARGS                                             
    9    10        DO_FCALL                                          1          
   12    11        VERIFY_RETURN_TYPE                                           $1
         12      > RETURN                                                       $1
   14    13*       VERIFY_RETURN_TYPE                                           
         14*     > RETURN                                                       null

End of function create

End of class OrderNotFound.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
166.09 ms | 1792 KiB | 13 Q