3v4l.org

run code in 300+ PHP versions simultaneously
<?php function plus(int $firstNumber, int $secondNumber) : int { return $firstNumber + $secondNumber; } try { echo plus("0.1", "1"); } catch (Throwable $t){}
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 6
Branch analysis from position: 6
2 jumps found. (Code = 107) Position 1 = 7, Position 2 = -2
Branch analysis from position: 7
filename:       /in/Mup3o
function name:  (null)
number of ops:  8
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'plus'
          1        SEND_VAL                                                 '0.1'
          2        SEND_VAL                                                 '1'
          3        DO_FCALL                                      0  $1      
          4        ECHO                                                     $1
          5      > JMP                                                      ->7
   10     6  E > > CATCH                                       last         'Throwable'
          7    > > RETURN                                                   1

Function plus:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Mup3o
function name:  plus
number of ops:  7
compiled vars:  !0 = $firstNumber, !1 = $secondNumber
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2        ADD                                              ~2      !0, !1
          3        VERIFY_RETURN_TYPE                                       ~2
          4      > RETURN                                                   ~2
    6     5*       VERIFY_RETURN_TYPE                                       
          6*     > RETURN                                                   null

End of function plus

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.49 ms | 1397 KiB | 14 Q