3v4l.org

run code in 300+ PHP versions simultaneously
<?php function newtime2($timestamp, $newtime='05:00'){ $a_times = explode(':', $newtime); $objDate = (new DateTime($timestamp, new DateTimeZone('Europe/Berlin')))->setTime($a_times[0], $a_times[1]); return $objDate->format("U"); } var_dump(newtime2(1449759874, '00:01'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1HIiL
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'newtime2'
          2        SEND_VAL                                                 1449759874
          3        SEND_VAL                                                 '00%3A01'
          4        DO_FCALL                                      0  $0      
          5        SEND_VAR                                                 $0
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Function newtime2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1HIiL
function name:  newtime2
number of ops:  28
compiled vars:  !0 = $timestamp, !1 = $newtime, !2 = $a_times, !3 = $objDate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      '05%3A00'
    3     2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '%3A'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !2, $4
    4     7        NEW                                              $6      'DateTime'
          8        SEND_VAR_EX                                              !0
          9        NEW                                              $7      'DateTimeZone'
         10        SEND_VAL_EX                                              'Europe%2FBerlin'
         11        DO_FCALL                                      0          
         12        SEND_VAR_NO_REF_EX                                       $7
         13        DO_FCALL                                      0          
         14        INIT_METHOD_CALL                                         $6, 'setTime'
         15        CHECK_FUNC_ARG                                           
         16        FETCH_DIM_FUNC_ARG                               $10     !2, 0
         17        SEND_FUNC_ARG                                            $10
         18        CHECK_FUNC_ARG                                           
         19        FETCH_DIM_FUNC_ARG                               $11     !2, 1
         20        SEND_FUNC_ARG                                            $11
         21        DO_FCALL                                      0  $12     
         22        ASSIGN                                                   !3, $12
    5    23        INIT_METHOD_CALL                                         !3, 'format'
         24        SEND_VAL_EX                                              'U'
         25        DO_FCALL                                      0  $14     
         26      > RETURN                                                   $14
    6    27*     > RETURN                                                   null

End of function newtime2

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.62 ms | 1399 KiB | 18 Q