3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php //date_default_timezone_set('UTC-1'); $timeNow = strtotime(date('h:i:s')); $lastShip = strtotime('15:00: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 $shippingResult;
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 14, Position 2 = 28
Branch analysis from position: 14
Jump found. Position 1 = 28
Branch analysis from position: 28
Jump found. Position 1 = -2
Branch analysis from position: 28
filename:       /in/uhE2C
function name:  (null)
number of ops:  30
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%3As'
         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%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                                                     !3
        29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0