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(strtotime("midnight today")) ? "earlier" : "later"); echo (new DateTime("2015-11-04 16:00:00") < new DateTime(strtotime("midnight today")) ? "earlier" : "later");
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 21
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 34, Position 2 = 36
Branch analysis from position: 34
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 34, Position 2 = 36
Branch analysis from position: 34
Branch analysis from position: 36
filename:       /in/rvZtb
function name:  (null)
number of ops:  39
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        INIT_FCALL                                               'strtotime'
         13        SEND_VAL                                                 'midnight+today'
         14        DO_ICALL                                         $5      
         15        SEND_VAR_NO_REF_EX                                       $5
         16        DO_FCALL                                      0          
         17        IS_SMALLER                                               $2, $4
         18      > JMPZ                                                     ~7, ->21
         19    >   QM_ASSIGN                                        ~8      'earlier'
         20      > JMP                                                      ->22
         21    >   QM_ASSIGN                                        ~8      'later'
         22    >   ECHO                                                     ~8
    5    23        NEW                                              $9      'DateTime'
         24        SEND_VAL_EX                                              '2015-11-04+16%3A00%3A00'
         25        DO_FCALL                                      0          
         26        NEW                                              $11     'DateTime'
         27        INIT_FCALL                                               'strtotime'
         28        SEND_VAL                                                 'midnight+today'
         29        DO_ICALL                                         $12     
         30        SEND_VAR_NO_REF_EX                                       $12
         31        DO_FCALL                                      0          
         32        IS_SMALLER                                               $9, $11
         33      > JMPZ                                                     ~14, ->36
         34    >   QM_ASSIGN                                        ~15     'earlier'
         35      > JMP                                                      ->37
         36    >   QM_ASSIGN                                        ~15     'later'
         37    >   ECHO                                                     ~15
         38      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.97 ms | 1405 KiB | 17 Q