3v4l.org

run code in 500+ PHP versions simultaneously
<?php $time = new DateTime(); echo IntlDateFormatter::formatObject($time)."\n"; echo IntlDateFormatter::formatObject($time, [IntlDateFormatter::NONE, IntlDateFormatter::MEDIUM])."\n"; echo IntlDateFormatter::formatObject($time, [IntlDateFormatter::MEDIUM, IntlDateFormatter::NONE])."\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UdtoX
function name:  (null)
number of ops:  29
compiled vars:  !0 = $time
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   NEW                                                  $1      'DateTime'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
    4     3        INIT_STATIC_METHOD_CALL                                      'IntlDateFormatter', 'formatObject'
          4        SEND_VAR_EX                                                  !0
          5        DO_FCALL                                          0  $4      
          6        CONCAT                                               ~5      $4, '%0A'
          7        ECHO                                                         ~5
    5     8        INIT_STATIC_METHOD_CALL                                      'IntlDateFormatter', 'formatObject'
          9        SEND_VAR_EX                                                  !0
         10        FETCH_CLASS_CONSTANT                                 ~6      'IntlDateFormatter', 'NONE'
         11        INIT_ARRAY                                           ~7      ~6
         12        FETCH_CLASS_CONSTANT                                 ~8      'IntlDateFormatter', 'MEDIUM'
         13        ADD_ARRAY_ELEMENT                                    ~7      ~8
         14        SEND_VAL_EX                                                  ~7
         15        DO_FCALL                                          0  $9      
         16        CONCAT                                               ~10     $9, '%0A'
         17        ECHO                                                         ~10
    6    18        INIT_STATIC_METHOD_CALL                                      'IntlDateFormatter', 'formatObject'
         19        SEND_VAR_EX                                                  !0
         20        FETCH_CLASS_CONSTANT                                 ~11     'IntlDateFormatter', 'MEDIUM'
         21        INIT_ARRAY                                           ~12     ~11
         22        FETCH_CLASS_CONSTANT                                 ~13     'IntlDateFormatter', 'NONE'
         23        ADD_ARRAY_ELEMENT                                    ~12     ~13
         24        SEND_VAL_EX                                                  ~12
         25        DO_FCALL                                          0  $14     
         26        CONCAT                                               ~15     $14, '%0A'
         27        ECHO                                                         ~15
         28      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
167.95 ms | 3083 KiB | 13 Q