3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.73 ms | 1398 KiB | 15 Q