3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fmt = NumberFormatter::create('fr_CA', NumberFormatter::DURATION); var_dump($fmt->format(12345)); //$fmt->setTextAttribute(NumberFormatter::DEFAULT_RULESET, "%in-numerals"); //var_dump($fmt->format(12345)); $fmt->setTextAttribute(NumberFormatter::DEFAULT_RULESET, "%with-words"); var_dump($fmt->format(12345));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kTKTj
function name:  (null)
number of ops:  24
compiled vars:  !0 = $fmt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_STATIC_METHOD_CALL                                  'NumberFormatter', 'create'
          1        SEND_VAL_EX                                              'fr_CA'
          2        FETCH_CLASS_CONSTANT                             ~1      'NumberFormatter', 'DURATION'
          3        SEND_VAL_EX                                              ~1
          4        DO_FCALL                                      0  $2      
          5        ASSIGN                                                   !0, $2
    4     6        INIT_FCALL                                               'var_dump'
          7        INIT_METHOD_CALL                                         !0, 'format'
          8        SEND_VAL_EX                                              12345
          9        DO_FCALL                                      0  $4      
         10        SEND_VAR                                                 $4
         11        DO_ICALL                                                 
    9    12        INIT_METHOD_CALL                                         !0, 'setTextAttribute'
         13        FETCH_CLASS_CONSTANT                             ~6      'NumberFormatter', 'DEFAULT_RULESET'
         14        SEND_VAL_EX                                              ~6
         15        SEND_VAL_EX                                              '%25with-words'
         16        DO_FCALL                                      0          
   10    17        INIT_FCALL                                               'var_dump'
         18        INIT_METHOD_CALL                                         !0, 'format'
         19        SEND_VAL_EX                                              12345
         20        DO_FCALL                                      0  $8      
         21        SEND_VAR                                                 $8
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.55 ms | 1395 KiB | 15 Q