3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = time(); echo "Midnight of $d\n"; $date = new DateTime($d); echo $date;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/l25eA
function name:  (null)
number of ops:  13
compiled vars:  !0 = $d, !1 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'time'
          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      'DateTime'
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !1, $7
    5    11        ECHO                                                     !1
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.37 ms | 1394 KiB | 15 Q