3v4l.org

run code in 300+ PHP versions simultaneously
<?php $formatter = new NumberFormatter('nb', NumberFormatter::SPELLOUT); $formatter->setTextAttribute(NumberFormatter::DEFAULT_RULESET, "%spellout-ordinal-masculine"); echo $formatter->format(10000).' '; echo $formatter->format(13000).' '; echo $formatter->format(14000).' '; echo $formatter->format(15000).' '; echo $formatter->format(16000).' '; echo $formatter->format(17000); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MSR3c
function name:  (null)
number of ops:  41
compiled vars:  !0 = $formatter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'NumberFormatter'
          1        SEND_VAL_EX                                              'nb'
          2        FETCH_CLASS_CONSTANT                             ~2      'NumberFormatter', 'SPELLOUT'
          3        SEND_VAL_EX                                              ~2
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $1
    4     6        INIT_METHOD_CALL                                         !0, 'setTextAttribute'
          7        FETCH_CLASS_CONSTANT                             ~5      'NumberFormatter', 'DEFAULT_RULESET'
          8        SEND_VAL_EX                                              ~5
          9        SEND_VAL_EX                                              '%25spellout-ordinal-masculine'
         10        DO_FCALL                                      0          
    6    11        INIT_METHOD_CALL                                         !0, 'format'
         12        SEND_VAL_EX                                              10000
         13        DO_FCALL                                      0  $7      
         14        CONCAT                                           ~8      $7, '+'
         15        ECHO                                                     ~8
    7    16        INIT_METHOD_CALL                                         !0, 'format'
         17        SEND_VAL_EX                                              13000
         18        DO_FCALL                                      0  $9      
         19        CONCAT                                           ~10     $9, '+'
         20        ECHO                                                     ~10
    8    21        INIT_METHOD_CALL                                         !0, 'format'
         22        SEND_VAL_EX                                              14000
         23        DO_FCALL                                      0  $11     
         24        CONCAT                                           ~12     $11, '+'
         25        ECHO                                                     ~12
    9    26        INIT_METHOD_CALL                                         !0, 'format'
         27        SEND_VAL_EX                                              15000
         28        DO_FCALL                                      0  $13     
         29        CONCAT                                           ~14     $13, '+'
         30        ECHO                                                     ~14
   10    31        INIT_METHOD_CALL                                         !0, 'format'
         32        SEND_VAL_EX                                              16000
         33        DO_FCALL                                      0  $15     
         34        CONCAT                                           ~16     $15, '+'
         35        ECHO                                                     ~16
   11    36        INIT_METHOD_CALL                                         !0, 'format'
         37        SEND_VAL_EX                                              17000
         38        DO_FCALL                                      0  $17     
         39        ECHO                                                     $17
   12    40      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.02 ms | 940 KiB | 14 Q