3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { $date1 = new DateTime('02:00:00'); $date2 = new DateTime('01:30:00'); $diff = $date1->diff($date2); echo $diff->h . ':' . $diff->i . ':' . $diff->s; } catch (Exception $e) { echo $e->getMessage(); exit(1); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 21
Branch analysis from position: 21
2 jumps found. (Code = 107) Position 1 = 22, Position 2 = -2
Branch analysis from position: 22
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/5gptC
function name:  (null)
number of ops:  27
compiled vars:  !0 = $date1, !1 = $date2, !2 = $diff, !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        INIT_METHOD_CALL                                         !0, 'diff'
          9        SEND_VAR_EX                                              !1
         10        DO_FCALL                                      0  $10     
         11        ASSIGN                                                   !2, $10
    8    12        FETCH_OBJ_R                                      ~12     !2, 'h'
         13        CONCAT                                           ~13     ~12, '%3A'
         14        FETCH_OBJ_R                                      ~14     !2, 'i'
         15        CONCAT                                           ~15     ~13, ~14
         16        CONCAT                                           ~16     ~15, '%3A'
         17        FETCH_OBJ_R                                      ~17     !2, 's'
         18        CONCAT                                           ~18     ~16, ~17
         19        ECHO                                                     ~18
         20      > JMP                                                      ->26
   10    21  E > > CATCH                                       last         'Exception'
   11    22    >   INIT_METHOD_CALL                                         !3, 'getMessage'
         23        DO_FCALL                                      0  $19     
         24        ECHO                                                     $19
   12    25      > EXIT                                                     1
   13    26    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.06 ms | 1394 KiB | 13 Q