3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $actual = new DateTime($view->result[$i]->field_data_field_event_times_field_event_times_value, new DateTimeZone('Europe/London')); $actual->modify('+1 hour'); $times = (string) $actual->format('G.i'); print($times); $actual = new DateTime($view->result[$i]->field_data_field_event_times_field_event_times_value, new DateTimeZone('Europe/London')); $actual->modify('+5 hour'); print($times);
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/UkoAR
function name:  (null)
number of ops:  36
compiled vars:  !0 = $actual, !1 = $view, !2 = $i, !3 = $times
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   NEW                                              $4      :-6
         1        FETCH_OBJ_FUNC_ARG                               $5      !1, 'result'
         2        FETCH_DIM_FUNC_ARG                               $6      $5, !2
         3        FETCH_OBJ_FUNC_ARG                               $7      $6, 'field_data_field_event_times_field_event_times_value'
         4        SEND_VAR_EX                                              $7
         5        NEW                                              $8      :-2
         6        SEND_VAL_EX                                              'Europe%2FLondon'
         7        DO_FCALL                                      0          
         8        SEND_VAR_NO_REF                               0          $8
         9        DO_FCALL                                      0          
        10        ASSIGN                                                   !0, $4
   3    11        INIT_METHOD_CALL                                         !0, 'modify'
        12        SEND_VAL_EX                                              '%2B1+hour'
        13        DO_FCALL                                      0          
   5    14        INIT_METHOD_CALL                                         !0, 'format'
        15        SEND_VAL_EX                                              'G.i'
        16        DO_FCALL                                      0  $13     
        17        CAST                                          6  ~14     $13
        18        ASSIGN                                                   !3, ~14
   8    19        ECHO                                                     !3
   9    20        NEW                                              $16     :7
        21        FETCH_OBJ_FUNC_ARG                               $17     !1, 'result'
        22        FETCH_DIM_FUNC_ARG                               $18     $17, !2
        23        FETCH_OBJ_FUNC_ARG                               $19     $18, 'field_data_field_event_times_field_event_times_value'
        24        SEND_VAR_EX                                              $19
        25        NEW                                              $20     :11
        26        SEND_VAL_EX                                              'Europe%2FLondon'
        27        DO_FCALL                                      0          
        28        SEND_VAR_NO_REF                               0          $20
        29        DO_FCALL                                      0          
        30        ASSIGN                                                   !0, $16
  10    31        INIT_METHOD_CALL                                         !0, 'modify'
        32        SEND_VAL_EX                                              '%2B5+hour'
        33        DO_FCALL                                      0          
  11    34        ECHO                                                     !3
        35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0