3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fmt = IntlDateFormatter::create('nl_NL', IntlDateFormatter::SHORT, IntlDateFormatter::NONE); echo $fmt->format(1234567890), "\n"; $fmt->setPattern(preg_replace('~y+~', 'y', $fmt->getPattern())); echo $fmt->format(1234567890), "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rhB4S
function name:  (null)
number of ops:  29
compiled vars:  !0 = $fmt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_STATIC_METHOD_CALL                                  'IntlDateFormatter', 'create'
          1        SEND_VAL_EX                                              'nl_NL'
          2        FETCH_CLASS_CONSTANT                             ~1      'IntlDateFormatter', 'SHORT'
          3        SEND_VAL_EX                                              ~1
          4        FETCH_CLASS_CONSTANT                             ~2      'IntlDateFormatter', 'NONE'
          5        SEND_VAL_EX                                              ~2
          6        DO_FCALL                                      0  $3      
          7        ASSIGN                                                   !0, $3
    4     8        INIT_METHOD_CALL                                         !0, 'format'
          9        SEND_VAL_EX                                              1234567890
         10        DO_FCALL                                      0  $5      
         11        ECHO                                                     $5
         12        ECHO                                                     '%0A'
    6    13        INIT_METHOD_CALL                                         !0, 'setPattern'
         14        INIT_FCALL                                               'preg_replace'
         15        SEND_VAL                                                 '%7Ey%2B%7E'
         16        SEND_VAL                                                 'y'
         17        INIT_METHOD_CALL                                         !0, 'getPattern'
         18        DO_FCALL                                      0  $6      
         19        SEND_VAR                                                 $6
         20        DO_ICALL                                         $7      
         21        SEND_VAR_NO_REF_EX                                       $7
         22        DO_FCALL                                      0          
    7    23        INIT_METHOD_CALL                                         !0, 'format'
         24        SEND_VAL_EX                                              1234567890
         25        DO_FCALL                                      0  $9      
         26        ECHO                                                     $9
         27        ECHO                                                     '%0A'
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.67 ms | 1395 KiB | 15 Q