3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = mktime(); echo "Midnight of $d\n"; $date = new Date("Midnight of $d"); echo $date;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/c24m9
function name:  (null)
number of ops:  15
compiled vars:  !0 = $d, !1 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'mktime'
          1        DO_ICALL                                         $2      
          2        ASSIGN                                                   !0, $2
    3     3        ROPE_INIT                                     3  ~5      'Midnight+of+'
          4        ROPE_ADD                                      1  ~5      ~5, !0
          5        ROPE_END                                      2  ~4      ~5, '%0A'
          6        ECHO                                                     ~4
    4     7        NEW                                              $7      'Date'
          8        NOP                                                      
          9        FAST_CONCAT                                      ~8      'Midnight+of+', !0
         10        SEND_VAL_EX                                              ~8
         11        DO_FCALL                                      0          
         12        ASSIGN                                                   !1, $7
    5    13        ECHO                                                     !1
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.48 ms | 1386 KiB | 15 Q