3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set(); $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 = 16, Position 2 = 30
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
filename:       /in/q2krT
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
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        DO_ICALL                                                 
    3     2        INIT_FCALL                                               'strtotime'
          3        INIT_FCALL                                               'date'
          4        SEND_VAL                                                 'h%3Ai'
          5        DO_ICALL                                         $5      
          6        SEND_VAR                                                 $5
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !0, $6
    4     9        INIT_FCALL                                               'strtotime'
         10        SEND_VAL                                                 '15%3A00'
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !1, $8
    5    13        SUB                                              ~10     !1, !0
         14        ASSIGN                                                   !2, ~10
    7    15      > JMPZ                                                     !2, ->30
    8    16    >   INIT_FCALL                                               'date'
         17        SEND_VAL                                                 'h'
         18        SEND_VAR                                                 !2
         19        DO_ICALL                                         $12     
         20        CONCAT                                           ~13     'Only+', $12
         21        CONCAT                                           ~14     ~13, '+hours+and+'
         22        INIT_FCALL                                               'date'
         23        SEND_VAL                                                 'i'
         24        SEND_VAR                                                 !2
         25        DO_ICALL                                         $15     
         26        CONCAT                                           ~16     ~14, $15
         27        CONCAT                                           ~17     ~16, '+minutes+to+to+get+same+day+dispatch'
         28        ASSIGN                                                   !3, ~17
         29      > JMP                                                      ->30
   12    30    >   ECHO                                                     !3
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.02 ms | 1396 KiB | 19 Q