3v4l.org

run code in 300+ PHP versions simultaneously
<?php class InvalidPage extends Exception {} class PageNotAnInteger extends InvalidPage {} function validateNumber($number) { $number = filter_var($number, FILTER_VALIDATE_INT); if(!$number) { throw new PageNotAnInteger('That dddddpage number is not an integer'); } throw new PageNotAnInteger('That page number is not an integer'); } validateNumber('a0');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9RWnR
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   INIT_FCALL                                               'validatenumber'
          1        SEND_VAL                                                 'a0'
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Function validatenumber:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/9RWnR
function name:  validateNumber
number of ops:  17
compiled vars:  !0 = $number
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        INIT_FCALL                                               'filter_var'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 257
          4        DO_ICALL                                         $1      
          5        ASSIGN                                                   !0, $1
   10     6        BOOL_NOT                                         ~3      !0
          7      > JMPZ                                                     ~3, ->12
   11     8    >   NEW                                              $4      'PageNotAnInteger'
          9        SEND_VAL_EX                                              'That+dddddpage+number+is+not+an+integer'
         10        DO_FCALL                                      0          
         11      > THROW                                         0          $4
   15    12    >   NEW                                              $6      'PageNotAnInteger'
         13        SEND_VAL_EX                                              'That+page+number+is+not+an+integer'
         14        DO_FCALL                                      0          
         15      > THROW                                         0          $6
   17    16*     > RETURN                                                   null

End of function validatenumber

Class InvalidPage: [no user functions]
Class PageNotAnInteger: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.13 ms | 1397 KiB | 16 Q