3v4l.org

run code in 500+ PHP versions simultaneously
<?php $star_time = "2015-05-15 09:30 PM"; $end_time = "2015-05-15 09:40 AM"; $start = new \DateTime($star_time); $end = new \DateTime($end_time); if($start > $end) echo $star_time .">". $end_time; else echo $star_time ."<". $end_time;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 16
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZbJbZ
function name:  (null)
number of ops:  20
compiled vars:  !0 = $star_time, !1 = $end_time, !2 = $start, !3 = $end
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '2015-05-15+09%3A30+PM'
    3     1        ASSIGN                                                   !1, '2015-05-15+09%3A40+AM'
    5     2        NEW                                              $6      'DateTime'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !2, $6
    6     6        NEW                                              $9      'DateTime'
          7        SEND_VAR_EX                                              !1
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !3, $9
    8    10        IS_SMALLER                                               !3, !2
         11      > JMPZ                                                     ~12, ->16
    9    12    >   CONCAT                                           ~13     !0, '%3E'
         13        CONCAT                                           ~14     ~13, !1
         14        ECHO                                                     ~14
    8    15      > JMP                                                      ->19
   11    16    >   CONCAT                                           ~15     !0, '%3C'
         17        CONCAT                                           ~16     ~15, !1
         18        ECHO                                                     ~16
         19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
215.61 ms | 2628 KiB | 13 Q