3v4l.org

run code in 300+ PHP versions simultaneously
<?php try{ (gettype('a' + 0) == 'integer'); echo 'es integer'; } catch(Exception $e){ if($e == 'WARNING'){ echo 'es string'; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
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
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/I5ni1
function name:  (null)
number of ops:  11
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ADD                                              ~1      'a', 0
          1        GET_TYPE                                         ~2      ~1
          2        IS_EQUAL                                         ~3      ~2, 'integer'
          3        FREE                                                     ~3
    4     4        ECHO                                                     'es+integer'
          5      > JMP                                                      ->10
    6     6  E > > CATCH                                       last         'Exception'
    7     7    >   IS_EQUAL                                                 !0, 'WARNING'
          8      > JMPZ                                                     ~4, ->10
    8     9    >   ECHO                                                     'es+string'
   10    10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.13 ms | 1393 KiB | 13 Q