3v4l.org

run code in 300+ PHP versions simultaneously
<?php function divide(float $dividend, float $divisor): float { if ($divisor === 0.) { throw throw throw throw throw throw new Exception("Division by zero"); } return $dividend / $divisor; } echo divide(5, 0);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4cd1b
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'divide'
          1        SEND_VAL                                                 5
          2        SEND_VAL                                                 0
          3        DO_FCALL                                      0  $0      
          4        ECHO                                                     $0
          5      > RETURN                                                   1

Function divide:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 13
Branch analysis from position: 4
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4cd1b
function name:  divide
number of ops:  18
compiled vars:  !0 = $dividend, !1 = $divisor
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    6     2        IS_IDENTICAL                                             !1, 0
          3      > JMPZ                                                     ~2, ->13
    7     4    >   NEW                                              $3      'Exception'
          5        SEND_VAL_EX                                              'Division+by+zero'
          6        DO_FCALL                                      0          
          7      > THROW                                         1          $3
          8*       THROW                                         1          <true>
          9*       THROW                                         1          <true>
         10*       THROW                                         1          <true>
         11*       THROW                                         1          <true>
         12*       THROW                                         0          <true>
   10    13    >   DIV                                              ~5      !0, !1
         14        VERIFY_RETURN_TYPE                                       ~5
         15      > RETURN                                                   ~5
   11    16*       VERIFY_RETURN_TYPE                                       
         17*     > RETURN                                                   null

End of function divide

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.87 ms | 1398 KiB | 14 Q