3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.7 ms | 1396 KiB | 19 Q