3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { $date1 = new DateTime('02:00:00'); $date2 = new DateTime('01:30:00'); $sub = $date1 - $date2; var_dump($sub); } catch (Exception $e) { echo $e->getMessage(); exit(1); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 14
Branch analysis from position: 14
2 jumps found. (Code = 107) Position 1 = 15, Position 2 = -2
Branch analysis from position: 15
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/vmN0R
function name:  (null)
number of ops:  20
compiled vars:  !0 = $date1, !1 = $date2, !2 = $sub, !3 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $4      'DateTime'
          1        SEND_VAL_EX                                              '02%3A00%3A00'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $4
    5     4        NEW                                              $7      'DateTime'
          5        SEND_VAL_EX                                              '01%3A30%3A00'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $7
    7     8        SUB                                              ~10     !0, !1
          9        ASSIGN                                                   !2, ~10
    8    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                                 
         13      > JMP                                                      ->19
   10    14  E > > CATCH                                       last         'Exception'
   11    15    >   INIT_METHOD_CALL                                         !3, 'getMessage'
         16        DO_FCALL                                      0  $13     
         17        ECHO                                                     $13
   12    18      > EXIT                                                     1
   13    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.1 ms | 1399 KiB | 15 Q