3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('UTC'); $timeNow = strtotime(date('h:i')); $lastShip = strtotime('15:00'); $diff = $lastShip - $timeNow; if($diff){ echo 'Order by '.date('H:i', $diff).' to to get same day dispatch'; }else{ #do nothing; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 25
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
filename:       /in/GCMaH
function name:  (null)
number of ops:  26
compiled vars:  !0 = $timeNow, !1 = $lastShip, !2 = $diff
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'UTC'
          2        DO_ICALL                                                 
    3     3        INIT_FCALL                                               'strtotime'
          4        INIT_FCALL                                               'date'
          5        SEND_VAL                                                 'h%3Ai'
          6        DO_ICALL                                         $4      
          7        SEND_VAR                                                 $4
          8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !0, $5
    4    10        INIT_FCALL                                               'strtotime'
         11        SEND_VAL                                                 '15%3A00'
         12        DO_ICALL                                         $7      
         13        ASSIGN                                                   !1, $7
    5    14        SUB                                              ~9      !1, !0
         15        ASSIGN                                                   !2, ~9
    7    16      > JMPZ                                                     !2, ->25
    8    17    >   INIT_FCALL                                               'date'
         18        SEND_VAL                                                 'H%3Ai'
         19        SEND_VAR                                                 !2
         20        DO_ICALL                                         $11     
         21        CONCAT                                           ~12     'Order+by+', $11
         22        CONCAT                                           ~13     ~12, '+to+to+get+same+day+dispatch'
         23        ECHO                                                     ~13
         24      > JMP                                                      ->25
   12    25    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.1 ms | 1395 KiB | 19 Q