3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('CET'); $time1 = strtotime('02:07:03 Feb 04, 2013 PST'); var_dump($time1); $string1 = date('d-m-Y h:i:s', $time1); var_dump($string1); $time2 = strtotime($string1 . ' GMT'); var_dump($time2); $string2 = date('d-m-Y h:i:s', $time2); var_dump($string2); date_default_timezone_set('GMT'); $time1 = strtotime('02:07:03 Feb 04, 2013 PST'); var_dump($time1); $string1 = date('d-m-Y h:i:s', $time1); var_dump($string1); $time2 = strtotime($string1 . ' GMT'); var_dump($time2); $string2 = date('d-m-Y h:i:s', $time2); var_dump($string2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/I96tr
function name:  (null)
number of ops:  69
compiled vars:  !0 = $time1, !1 = $string1, !2 = $time2, !3 = $string2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'CET'
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'strtotime'
          4        SEND_VAL                                                 '02%3A07%3A03++Feb++04%2C++2013++PST'
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !0, $5
    5     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
    6    10        INIT_FCALL                                               'date'
         11        SEND_VAL                                                 'd-m-Y+h%3Ai%3As'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $8      
         14        ASSIGN                                                   !1, $8
    7    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
    8    18        INIT_FCALL                                               'strtotime'
         19        CONCAT                                           ~11     !1, '+GMT'
         20        SEND_VAL                                                 ~11
         21        DO_ICALL                                         $12     
         22        ASSIGN                                                   !2, $12
    9    23        INIT_FCALL                                               'var_dump'
         24        SEND_VAR                                                 !2
         25        DO_ICALL                                                 
   10    26        INIT_FCALL                                               'date'
         27        SEND_VAL                                                 'd-m-Y+h%3Ai%3As'
         28        SEND_VAR                                                 !2
         29        DO_ICALL                                         $15     
         30        ASSIGN                                                   !3, $15
   11    31        INIT_FCALL                                               'var_dump'
         32        SEND_VAR                                                 !3
         33        DO_ICALL                                                 
   12    34        INIT_FCALL                                               'date_default_timezone_set'
         35        SEND_VAL                                                 'GMT'
         36        DO_ICALL                                                 
   13    37        INIT_FCALL                                               'strtotime'
         38        SEND_VAL                                                 '02%3A07%3A03++Feb++04%2C++2013++PST'
         39        DO_ICALL                                         $19     
         40        ASSIGN                                                   !0, $19
   14    41        INIT_FCALL                                               'var_dump'
         42        SEND_VAR                                                 !0
         43        DO_ICALL                                                 
   15    44        INIT_FCALL                                               'date'
         45        SEND_VAL                                                 'd-m-Y+h%3Ai%3As'
         46        SEND_VAR                                                 !0
         47        DO_ICALL                                         $22     
         48        ASSIGN                                                   !1, $22
   16    49        INIT_FCALL                                               'var_dump'
         50        SEND_VAR                                                 !1
         51        DO_ICALL                                                 
   17    52        INIT_FCALL                                               'strtotime'
         53        CONCAT                                           ~25     !1, '+GMT'
         54        SEND_VAL                                                 ~25
         55        DO_ICALL                                         $26     
         56        ASSIGN                                                   !2, $26
   18    57        INIT_FCALL                                               'var_dump'
         58        SEND_VAR                                                 !2
         59        DO_ICALL                                                 
   19    60        INIT_FCALL                                               'date'
         61        SEND_VAL                                                 'd-m-Y+h%3Ai%3As'
         62        SEND_VAR                                                 !2
         63        DO_ICALL                                         $29     
         64        ASSIGN                                                   !3, $29
   20    65        INIT_FCALL                                               'var_dump'
         66        SEND_VAR                                                 !3
         67        DO_ICALL                                                 
         68      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.69 ms | 1013 KiB | 17 Q