3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t1 = new DateTime('23:00:00'); $t2 = new DateTime('00:00:00'); if ($t2 === (new DateTime('00:00:00'))) { $t2 = new DateTime('tommorrow'); } print_r($t1->diff($t2));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 17
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/g16nO
function name:  (null)
number of ops:  24
compiled vars:  !0 = $t1, !1 = $t2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DateTime'
          1        SEND_VAL_EX                                              '23%3A00%3A00'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    4     4        NEW                                              $5      'DateTime'
          5        SEND_VAL_EX                                              '00%3A00%3A00'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $5
    6     8        NEW                                              $8      'DateTime'
          9        SEND_VAL_EX                                              '00%3A00%3A00'
         10        DO_FCALL                                      0          
         11        IS_IDENTICAL                                             !1, $8
         12      > JMPZ                                                     ~10, ->17
    7    13    >   NEW                                              $11     'DateTime'
         14        SEND_VAL_EX                                              'tommorrow'
         15        DO_FCALL                                      0          
         16        ASSIGN                                                   !1, $11
   10    17    >   INIT_FCALL                                               'print_r'
         18        INIT_METHOD_CALL                                         !0, 'diff'
         19        SEND_VAR_EX                                              !1
         20        DO_FCALL                                      0  $14     
         21        SEND_VAR                                                 $14
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.89 ms | 942 KiB | 16 Q