3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Tinker away! $dateString = "4 Квітень 2009"; date_default_timezone_set('UTC'); // сейчас $date = new DateTimeImmutable($dateString); // Выведет что-то подобное: Wednesday echo $date->format('l'), "\n"; // Выведет что-то подобное: Wednesday 19th of October 2022 08:40:48 AM echo $date->format('l jS \o\f F Y h:i:s A'), "\n"; /* Использование констант в параметре format */ // Выведет что-то подобное: Wed, 19 Oct 2022 08:40:48 +0000 echo $date->format(DateTimeInterface::RFC2822), "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8Q4HS
function name:  (null)
number of ops:  24
compiled vars:  !0 = $dateString, !1 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '4+%D0%9A%D0%B2%D1%96%D1%82%D0%B5%D0%BD%D1%8C+2009'
    5     1        INIT_FCALL                                               'date_default_timezone_set'
          2        SEND_VAL                                                 'UTC'
          3        DO_ICALL                                                 
    8     4        NEW                                              $4      'DateTimeImmutable'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $4
   11     8        INIT_METHOD_CALL                                         !1, 'format'
          9        SEND_VAL_EX                                              'l'
         10        DO_FCALL                                      0  $7      
         11        ECHO                                                     $7
         12        ECHO                                                     '%0A'
   14    13        INIT_METHOD_CALL                                         !1, 'format'
         14        SEND_VAL_EX                                              'l+jS+%5Co%5Cf+F+Y+h%3Ai%3As+A'
         15        DO_FCALL                                      0  $8      
         16        ECHO                                                     $8
         17        ECHO                                                     '%0A'
   18    18        INIT_METHOD_CALL                                         !1, 'format'
         19        SEND_VAL_EX                                              'D%2C+d+M+Y+H%3Ai%3As+O'
         20        DO_FCALL                                      0  $9      
         21        ECHO                                                     $9
         22        ECHO                                                     '%0A'
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.92 ms | 1410 KiB | 15 Q