3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.02 ms | 1396 KiB | 17 Q