3v4l.org

run code in 300+ PHP versions simultaneously
<?php function validateNumber($number) { try { echo $number = filter_var($number, FILTER_VALIDATE_INT); } catch(Exception $e) { 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/EOKpg
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     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
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 8
Branch analysis from position: 8
2 jumps found. (Code = 107) Position 1 = 9, Position 2 = -2
Branch analysis from position: 9
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/EOKpg
function name:  validateNumber
number of ops:  14
compiled vars:  !0 = $number, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    7     1        INIT_FCALL                                               'filter_var'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 257
          4        DO_ICALL                                         $2      
          5        ASSIGN                                           ~3      !0, $2
          6        ECHO                                                     ~3
          7      > JMP                                                      ->13
   15     8  E > > CATCH                                       last         'Exception'
   16     9    >   NEW                                              $4      'PageNotAnInteger'
         10        SEND_VAL_EX                                              'That+page+number+is+not+an+integer'
         11        DO_FCALL                                      0          
         12      > THROW                                         0          $4
   18    13    > > RETURN                                                   null

End of function validatenumber

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.32 ms | 1389 KiB | 16 Q