3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.62 ms | 1395 KiB | 13 Q