3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTime(null, new DateTimeZone('Europe/London')); $formatter = new \IntlDateFormatter( 'fr_FR', \IntlDateFormatter::NONE, \IntlDateFormatter::NONE, $date->getTimezone() ); echo $formatter->format($date);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BchV7
function name:  (null)
number of ops:  24
compiled vars:  !0 = $date, !1 = $formatter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DateTime'
          1        SEND_VAL_EX                                              null
          2        NEW                                              $3      'DateTimeZone'
          3        SEND_VAL_EX                                              'Europe%2FLondon'
          4        DO_FCALL                                      0          
          5        SEND_VAR_NO_REF_EX                                       $3
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !0, $2
    5     8        NEW                                              $7      'IntlDateFormatter'
    6     9        SEND_VAL_EX                                              'fr_FR'
    7    10        FETCH_CLASS_CONSTANT                             ~8      'IntlDateFormatter', 'NONE'
         11        SEND_VAL_EX                                              ~8
    8    12        FETCH_CLASS_CONSTANT                             ~9      'IntlDateFormatter', 'NONE'
         13        SEND_VAL_EX                                              ~9
    9    14        INIT_METHOD_CALL                                         !0, 'getTimezone'
         15        DO_FCALL                                      0  $10     
         16        SEND_VAR_NO_REF_EX                                       $10
         17        DO_FCALL                                      0          
    5    18        ASSIGN                                                   !1, $7
   12    19        INIT_METHOD_CALL                                         !1, 'format'
         20        SEND_VAR_EX                                              !0
         21        DO_FCALL                                      0  $13     
         22        ECHO                                                     $13
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.12 ms | 1393 KiB | 13 Q