3v4l.org

run code in 500+ PHP versions simultaneously
<?php $dt = date_create("2018-2-19"); $icuFormat = "yyyy:MM:dd"; $fmt = datefmt_create( "fa_IR@calendar=persian" ,IntlDateFormatter::FULL, IntlDateFormatter::FULL, 'Europe/Berlin',IntlDateFormatter::TRADITIONAL ,"yyyy:MM:dd"); echo datefmt_format( $fmt ,$dt);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HAem9
function name:  (null)
number of ops:  23
compiled vars:  !0 = $dt, !1 = $icuFormat, !2 = $fmt
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'date_create'
          1        SEND_VAL                                                     '2018-2-19'
          2        DO_ICALL                                             $3      
          3        ASSIGN                                                       !0, $3
    4     4        ASSIGN                                                       !1, 'yyyy%3AMM%3Add'
    6     5        INIT_FCALL_BY_NAME                                           'datefmt_create'
          6        SEND_VAL_EX                                                  'fa_IR%40calendar%3Dpersian'
          7        FETCH_CLASS_CONSTANT                                 ~6      'IntlDateFormatter', 'FULL'
          8        SEND_VAL_EX                                                  ~6
          9        FETCH_CLASS_CONSTANT                                 ~7      'IntlDateFormatter', 'FULL'
         10        SEND_VAL_EX                                                  ~7
    7    11        SEND_VAL_EX                                                  'Europe%2FBerlin'
         12        FETCH_CLASS_CONSTANT                                 ~8      'IntlDateFormatter', 'TRADITIONAL'
         13        SEND_VAL_EX                                                  ~8
         14        SEND_VAL_EX                                                  'yyyy%3AMM%3Add'
    6    15        DO_FCALL                                          0  $9      
         16        ASSIGN                                                       !2, $9
    8    17        INIT_FCALL_BY_NAME                                           'datefmt_format'
         18        SEND_VAR_EX                                                  !2
         19        SEND_VAR_EX                                                  !0
         20        DO_FCALL                                          0  $11     
         21        ECHO                                                         $11
         22      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
166.88 ms | 1881 KiB | 14 Q