3v4l.org

run code in 300+ PHP versions simultaneously
<?php function validateNumber($number) { try { $number = intval($number); } catch(Exception $e) { throw new PageNotAnInteger('That page number is not an integer'); } } validateNumber('as');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hhQg2
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_FCALL                                               'validatenumber'
          1        SEND_VAL                                                 'as'
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Function validatenumber:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 4
Branch analysis from position: 4
2 jumps found. (Code = 107) Position 1 = 5, Position 2 = -2
Branch analysis from position: 5
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/hhQg2
function name:  validateNumber
number of ops:  10
compiled vars:  !0 = $number, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        CAST                                          4  ~2      !0
          2        ASSIGN                                                   !0, ~2
          3      > JMP                                                      ->9
    7     4  E > > CATCH                                       last         'Exception'
    8     5    >   NEW                                              $4      'PageNotAnInteger'
          6        SEND_VAL_EX                                              'That+page+number+is+not+an+integer'
          7        DO_FCALL                                      0          
          8      > THROW                                         0          $4
   10     9    > > RETURN                                                   null

End of function validatenumber

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.89 ms | 1397 KiB | 14 Q