3v4l.org

run code in 500+ PHP versions simultaneously
<?php try { DateInterval::createFromDateString('FAIL'); } catch (Exception $e) { var_dump($e::class); var_dump($e instanceof DateMalformedStringException); }
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: 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 = 62) Position 1 = -2
filename:       /in/EF631
function name:  (null)
number of ops:  14
compiled vars:  !0 = $e
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   INIT_STATIC_METHOD_CALL                                      'DateInterval', 'createFromDateString'
          1        SEND_VAL                                                     'FAIL'
          2        DO_FCALL                                          0          
          3      > JMP                                                          ->13
    5     4  E > > CATCH                                           last         'Exception'
    6     5    >   INIT_FCALL                                                   'var_dump'
          6        FETCH_CLASS_NAME                                     ~2      !0
          7        SEND_VAL                                                     ~2
          8        DO_ICALL                                                     
    7     9        INIT_FCALL                                                   'var_dump'
         10        INSTANCEOF                                           ~4      !0, 'DateMalformedStringException'
         11        SEND_VAL                                                     ~4
         12        DO_ICALL                                                     
    8    13    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
153.44 ms | 1313 KiB | 14 Q