3v4l.org

run code in 300+ 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:  13
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        INIT_FCALL                                               'sprintf'
          3        SEND_VAL                                                 'The+order+%22%25s%22+could+not+be+found.'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        SEND_VAR_NO_REF_EX                                       $2, 'message'
          7        CHECK_UNDEF_ARGS                                         
   14     8        DO_FCALL                                      1          
   15     9        VERIFY_RETURN_TYPE                                       $1
         10      > RETURN                                                   $1
   17    11*       VERIFY_RETURN_TYPE                                       
         12*     > RETURN                                                   null

End of function create

End of class OrderNotFound.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.79 ms | 953 KiB | 14 Q