3v4l.org

run code in 300+ PHP versions simultaneously
<?php $midnight = (new \DateTime())->setTimestamp(time())->modify('tomorrow'); var_dump($midnight);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/m7tcu
function name:  (null)
number of ops:  15
compiled vars:  !0 = $midnight
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'DateTime'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $1, 'setTimestamp'
          3        INIT_FCALL                                               'time'
          4        DO_ICALL                                         $3      
          5        SEND_VAR_NO_REF_EX                                       $3
          6        DO_FCALL                                      0  $4      
          7        INIT_METHOD_CALL                                         $4, 'modify'
          8        SEND_VAL_EX                                              'tomorrow'
          9        DO_FCALL                                      0  $5      
         10        ASSIGN                                                   !0, $5
    3    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.86 ms | 1394 KiB | 17 Q