3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date('G', strtotime("00:00 AM")) . "\n"; $old = date_default_timezone_get(); date_default_timezone_set('UTC'); echo date('G', strtotime("00:00 AM")) . "\n"; date_default_timezone_set($old); echo date('G', strtotime("00:00 AM")) . "\n";;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Hlqdp
function name:  (null)
number of ops:  37
compiled vars:  !0 = $old
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'G'
          2        INIT_FCALL                                               'strtotime'
          3        SEND_VAL                                                 '00%3A00+AM'
          4        DO_ICALL                                         $1      
          5        SEND_VAR                                                 $1
          6        DO_ICALL                                         $2      
          7        CONCAT                                           ~3      $2, '%0A'
          8        ECHO                                                     ~3
    2     9        INIT_FCALL                                               'date_default_timezone_get'
         10        DO_ICALL                                         $4      
         11        ASSIGN                                                   !0, $4
         12        INIT_FCALL                                               'date_default_timezone_set'
         13        SEND_VAL                                                 'UTC'
         14        DO_ICALL                                                 
    3    15        INIT_FCALL                                               'date'
         16        SEND_VAL                                                 'G'
         17        INIT_FCALL                                               'strtotime'
         18        SEND_VAL                                                 '00%3A00+AM'
         19        DO_ICALL                                         $7      
         20        SEND_VAR                                                 $7
         21        DO_ICALL                                         $8      
         22        CONCAT                                           ~9      $8, '%0A'
         23        ECHO                                                     ~9
         24        INIT_FCALL                                               'date_default_timezone_set'
         25        SEND_VAR                                                 !0
         26        DO_ICALL                                                 
    4    27        INIT_FCALL                                               'date'
         28        SEND_VAL                                                 'G'
         29        INIT_FCALL                                               'strtotime'
         30        SEND_VAL                                                 '00%3A00+AM'
         31        DO_ICALL                                         $11     
         32        SEND_VAR                                                 $11
         33        DO_ICALL                                         $12     
         34        CONCAT                                           ~13     $12, '%0A'
         35        ECHO                                                     ~13
         36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
199.78 ms | 1006 KiB | 17 Q