3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date('H:i:s Y-m-d',strtotime("midnight today")); echo (new DateTime("2015-11-05 16:00:00") < new DateTime("midnight today") ? "earlier" : "later"); echo (new DateTime("2015-11-04 16:00:00") < new DateTime("midnight today") ? "earlier" : "later");
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 28, Position 2 = 30
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 28, Position 2 = 30
Branch analysis from position: 28
Branch analysis from position: 30
filename:       /in/3MZ3m
function name:  (null)
number of ops:  33
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'H%3Ai%3As+Y-m-d'
          2        INIT_FCALL                                               'strtotime'
          3        SEND_VAL                                                 'midnight+today'
          4        DO_ICALL                                         $0      
          5        SEND_VAR                                                 $0
          6        DO_ICALL                                         $1      
          7        ECHO                                                     $1
    4     8        NEW                                              $2      'DateTime'
          9        SEND_VAL_EX                                              '2015-11-05+16%3A00%3A00'
         10        DO_FCALL                                      0          
         11        NEW                                              $4      'DateTime'
         12        SEND_VAL_EX                                              'midnight+today'
         13        DO_FCALL                                      0          
         14        IS_SMALLER                                               $2, $4
         15      > JMPZ                                                     ~6, ->18
         16    >   QM_ASSIGN                                        ~7      'earlier'
         17      > JMP                                                      ->19
         18    >   QM_ASSIGN                                        ~7      'later'
         19    >   ECHO                                                     ~7
    5    20        NEW                                              $8      'DateTime'
         21        SEND_VAL_EX                                              '2015-11-04+16%3A00%3A00'
         22        DO_FCALL                                      0          
         23        NEW                                              $10     'DateTime'
         24        SEND_VAL_EX                                              'midnight+today'
         25        DO_FCALL                                      0          
         26        IS_SMALLER                                               $8, $10
         27      > JMPZ                                                     ~12, ->30
         28    >   QM_ASSIGN                                        ~13     'earlier'
         29      > JMP                                                      ->31
         30    >   QM_ASSIGN                                        ~13     'later'
         31    >   ECHO                                                     ~13
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.51 ms | 1396 KiB | 17 Q