3v4l.org

run code in 500+ PHP versions simultaneously
<?php use Psr\Log\LogLevel; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Attribute\WithHttpStatus; use Symfony\Component\HttpKernel\Attribute\WithLogLevel; #[WithHttpStatus(Response::HTTP_NOT_FOUND, headers: ['x-header' => 'foo'])] #[WithLogLevel(LogLevel::DEBUG)] class OrderNotFound extends \Exception { public static function create(string $id): self { return new self( message: sprintf('The order "%s" could not be found.', $id) ); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7HqB4
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   18     0  E > > RETURN                                                       1

Class OrderNotFound:
Function create:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7HqB4
function name:  create
number of ops:  12
compiled vars:  !0 = $id
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   12     0  E >   RECV                                                 !0      
   14     1        NEW                              self                $1      
   15     2        ROPE_INIT                                         3  ~3      'The+order+%22'
          3        ROPE_ADD                                          1  ~3      ~3, !0
          4        ROPE_END                                          2  ~2      ~3, '%22+could+not+be+found.'
          5        SEND_VAL_EX                                                  ~2, 'message'
          6        CHECK_UNDEF_ARGS                                             
   14     7        DO_FCALL                                          1          
   15     8        VERIFY_RETURN_TYPE                                           $1
          9      > RETURN                                                       $1
   17    10*       VERIFY_RETURN_TYPE                                           
         11*     > RETURN                                                       null

End of function create

End of class OrderNotFound.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
155.88 ms | 1697 KiB | 13 Q