3v4l.org

run code in 300+ PHP versions simultaneously
<?php function value(integer $h) { if(!is_int($h)) { throw new InvalidArgumentException('integer expected'); } if($h <= 7) { throw new RangeException('integer should be greater than 7'); } echo $h; return $return; } $something = value(11111); echo $something;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/T15Hr
function name:  (null)
number of ops:  6
compiled vars:  !0 = $something
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'value'
          1        SEND_VAL                                                 11111
          2        DO_FCALL                                      0  $1      
          3        ASSIGN                                                   !0, $1
   15     4        ECHO                                                     !0
          5      > RETURN                                                   1

Function value:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 8
Branch analysis from position: 4
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/T15Hr
function name:  value
number of ops:  17
compiled vars:  !0 = $h, !1 = $return
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        TYPE_CHECK                                   16  ~2      !0
          2        BOOL_NOT                                         ~3      ~2
          3      > JMPZ                                                     ~3, ->8
    5     4    >   NEW                                              $4      'InvalidArgumentException'
          5        SEND_VAL_EX                                              'integer+expected'
          6        DO_FCALL                                      0          
          7      > THROW                                         0          $4
    7     8    >   IS_SMALLER_OR_EQUAL                                      !0, 7
          9      > JMPZ                                                     ~6, ->14
    8    10    >   NEW                                              $7      'RangeException'
         11        SEND_VAL_EX                                              'integer+should+be+greater+than+7'
         12        DO_FCALL                                      0          
         13      > THROW                                         0          $7
   10    14    >   ECHO                                                     !0
   11    15      > RETURN                                                   !1
   12    16*     > RETURN                                                   null

End of function value

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
292.59 ms | 1014 KiB | 14 Q