3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = new DateTime(); var_dump($now->format('H:i:s')); $now->setTimezone('Europe/London'); var_dump($now->format('H:i:s'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/C6tPg
function name:  (null)
number of ops:  19
compiled vars:  !0 = $now
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $1      'DateTime'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    5     3        INIT_FCALL                                               'var_dump'
          4        INIT_METHOD_CALL                                         !0, 'format'
          5        SEND_VAL_EX                                              'H%3Ai%3As'
          6        DO_FCALL                                      0  $4      
          7        SEND_VAR                                                 $4
          8        DO_ICALL                                                 
    7     9        INIT_METHOD_CALL                                         !0, 'setTimezone'
         10        SEND_VAL_EX                                              'Europe%2FLondon'
         11        DO_FCALL                                      0          
    9    12        INIT_FCALL                                               'var_dump'
         13        INIT_METHOD_CALL                                         !0, 'format'
         14        SEND_VAL_EX                                              'H%3Ai%3As'
         15        DO_FCALL                                      0  $7      
         16        SEND_VAR                                                 $7
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.49 ms | 1394 KiB | 15 Q