3v4l.org

run code in 300+ PHP versions simultaneously
<?php if ( ! defined('PHP_EOL')) { define('PHP_EOL', "\n"); } $now = time(); $plusThreeHours = gmdate('M-j-Y-H-i', strtotime('+3 hours', $now)); echo 'Now: ', gmdate('M-j-Y-H-i', $now), PHP_EOL; echo 'Plus 3 Hours: ', $plusThreeHours, PHP_EOL;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 1, Position 2 = 5
Branch analysis from position: 1
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
filename:       /in/jVjoQ
function name:  (null)
number of ops:  28
compiled vars:  !0 = $now, !1 = $plusThreeHours
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E > > JMPZ                                                     <false>, ->5
    3     1    >   INIT_FCALL                                               'define'
          2        SEND_VAL                                                 'PHP_EOL'
          3        SEND_VAL                                                 '%0A'
          4        DO_ICALL                                                 
    6     5    >   INIT_FCALL                                               'time'
          6        DO_ICALL                                         $3      
          7        ASSIGN                                                   !0, $3
    8     8        INIT_FCALL                                               'gmdate'
          9        SEND_VAL                                                 'M-j-Y-H-i'
         10        INIT_FCALL                                               'strtotime'
         11        SEND_VAL                                                 '%2B3+hours'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $5      
         14        SEND_VAR                                                 $5
         15        DO_ICALL                                         $6      
         16        ASSIGN                                                   !1, $6
   10    17        ECHO                                                     'Now%3A+'
         18        INIT_FCALL                                               'gmdate'
         19        SEND_VAL                                                 'M-j-Y-H-i'
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                         $8      
         22        ECHO                                                     $8
         23        ECHO                                                     '%0A'
   11    24        ECHO                                                     'Plus+3+Hours%3A+'
         25        ECHO                                                     !1
         26        ECHO                                                     '%0A'
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.67 ms | 1395 KiB | 21 Q