3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fmt = new NumberFormatter('en', 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/aWLfn
function name:  (null)
number of ops:  24
compiled vars:  !0 = $fmt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'NumberFormatter'
          1        SEND_VAL_EX                                              'en'
          2        FETCH_CLASS_CONSTANT                             ~2      'NumberFormatter', 'DURATION'
          3        SEND_VAL_EX                                              ~2
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $1
    4     6        INIT_FCALL                                               'var_dump'
          7        INIT_METHOD_CALL                                         !0, 'format'
          8        SEND_VAL_EX                                              12345
          9        DO_FCALL                                      0  $5      
         10        SEND_VAR                                                 $5
         11        DO_ICALL                                                 
    9    12        INIT_METHOD_CALL                                         !0, 'setTextAttribute'
         13        FETCH_CLASS_CONSTANT                             ~7      'NumberFormatter', 'DEFAULT_RULESET'
         14        SEND_VAL_EX                                              ~7
         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  $9      
         21        SEND_VAR                                                 $9
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.85 ms | 1395 KiB | 15 Q