3v4l.org

run code in 300+ PHP versions simultaneously
<?php (new \DateTime('now', new \DateTimeZone('Europe/Berlin')))->modify('+30 minutes')->format('Hi');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0MHh8
function name:  (null)
number of ops:  14
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $0      'DateTime'
          1        SEND_VAL_EX                                              'now'
          2        NEW                                              $1      'DateTimeZone'
          3        SEND_VAL_EX                                              'Europe%2FBerlin'
          4        DO_FCALL                                      0          
          5        SEND_VAR_NO_REF_EX                                       $1
          6        DO_FCALL                                      0          
          7        INIT_METHOD_CALL                                         $0, 'modify'
          8        SEND_VAL_EX                                              '%2B30+minutes'
          9        DO_FCALL                                      0  $4      
         10        INIT_METHOD_CALL                                         $4, 'format'
         11        SEND_VAL_EX                                              'Hi'
         12        DO_FCALL                                      0          
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.37 ms | 1393 KiB | 13 Q