3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/Zurich'); $now = time(); $timeHourFraction = strtotime("+0.4 days"); // ~ +1 hour echo "+0.4: " . date("d.m.Y H:i:s", $timeHourFraction) . PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5XgJV
function name:  (null)
number of ops:  18
compiled vars:  !0 = $now, !1 = $timeHourFraction
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'Europe%2FZurich'
          2        DO_ICALL                                                 
    5     3        INIT_FCALL                                               'time'
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !0, $3
    7     6        INIT_FCALL                                               'strtotime'
          7        SEND_VAL                                                 '%2B0.4+days'
          8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !1, $5
    9    10        INIT_FCALL                                               'date'
         11        SEND_VAL                                                 'd.m.Y+H%3Ai%3As'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $7      
         14        CONCAT                                           ~8      '%2B0.4%3A+', $7
         15        CONCAT                                           ~9      ~8, '%0A'
         16        ECHO                                                     ~9
   10    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.71 ms | 1018 KiB | 17 Q