3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hour = date('H'); $foo = mktime($hour); $bar = time('H'); var_dump(date('r', $foo), $hour, $bar, $foo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TYT6m
function name:  (null)
number of ops:  23
compiled vars:  !0 = $hour, !1 = $foo, !2 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'H'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    4     4        INIT_FCALL                                               'mktime'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
    5     8        INIT_FCALL                                               'time'
          9        SEND_VAL                                                 'H'
         10        DO_ICALL                                         $7      
         11        ASSIGN                                                   !2, $7
    6    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'date'
         14        SEND_VAL                                                 'r'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                         $9      
         17        SEND_VAR                                                 $9
         18        SEND_VAR                                                 !0
         19        SEND_VAR                                                 !2
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.17 ms | 940 KiB | 22 Q