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(18000).' '; echo $formatter->format(19000).' '; echo $formatter->format(20000).' '; echo $formatter->format(30000).' '; echo $formatter->format(40000).' '; echo $formatter->format(50000).' '; echo $formatter->format(60000).' '; echo $formatter->format(70000).' '; echo $formatter->format(80000); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NCq7q
function name:  (null)
number of ops:  56
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                                              18000
         13        DO_FCALL                                      0  $7      
         14        CONCAT                                           ~8      $7, '+'
         15        ECHO                                                     ~8
    7    16        INIT_METHOD_CALL                                         !0, 'format'
         17        SEND_VAL_EX                                              19000
         18        DO_FCALL                                      0  $9      
         19        CONCAT                                           ~10     $9, '+'
         20        ECHO                                                     ~10
    8    21        INIT_METHOD_CALL                                         !0, 'format'
         22        SEND_VAL_EX                                              20000
         23        DO_FCALL                                      0  $11     
         24        CONCAT                                           ~12     $11, '+'
         25        ECHO                                                     ~12
    9    26        INIT_METHOD_CALL                                         !0, 'format'
         27        SEND_VAL_EX                                              30000
         28        DO_FCALL                                      0  $13     
         29        CONCAT                                           ~14     $13, '+'
         30        ECHO                                                     ~14
   10    31        INIT_METHOD_CALL                                         !0, 'format'
         32        SEND_VAL_EX                                              40000
         33        DO_FCALL                                      0  $15     
         34        CONCAT                                           ~16     $15, '+'
         35        ECHO                                                     ~16
   11    36        INIT_METHOD_CALL                                         !0, 'format'
         37        SEND_VAL_EX                                              50000
         38        DO_FCALL                                      0  $17     
         39        CONCAT                                           ~18     $17, '+'
         40        ECHO                                                     ~18
   12    41        INIT_METHOD_CALL                                         !0, 'format'
         42        SEND_VAL_EX                                              60000
         43        DO_FCALL                                      0  $19     
         44        CONCAT                                           ~20     $19, '+'
         45        ECHO                                                     ~20
   13    46        INIT_METHOD_CALL                                         !0, 'format'
         47        SEND_VAL_EX                                              70000
         48        DO_FCALL                                      0  $21     
         49        CONCAT                                           ~22     $21, '+'
         50        ECHO                                                     ~22
   14    51        INIT_METHOD_CALL                                         !0, 'format'
         52        SEND_VAL_EX                                              80000
         53        DO_FCALL                                      0  $23     
         54        ECHO                                                     $23
   15    55      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.95 ms | 1399 KiB | 13 Q