3v4l.org

run code in 500+ PHP versions simultaneously
<?php echo INTL_ICU_VERSION . "\n"; $language = 'ru-RU'; $pattern = '{n, spellout,%spellout-ordinal}'; $params = ['n' => 91398.71]; $formatter = new \MessageFormatter($language, $pattern); if ($formatter === null) { echo "Invalid pattern: " . intl_get_error_code() . "\n" . intl_get_error_message(); } echo $formatter->format($params); echo "\n";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 21
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/VbaYc
function name:  (null)
number of ops:  27
compiled vars:  !0 = $language, !1 = $pattern, !2 = $params, !3 = $formatter
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   FETCH_CONSTANT                                       ~4      'INTL_ICU_VERSION'
          1        CONCAT                                               ~5      ~4, '%0A'
          2        ECHO                                                         ~5
    5     3        ASSIGN                                                       !0, 'ru-RU'
    6     4        ASSIGN                                                       !1, '%7Bn%2C+spellout%2C%25spellout-ordinal%7D'
    7     5        ASSIGN                                                       !2, <array>
    9     6        NEW                                                  $9      'MessageFormatter'
          7        SEND_VAR_EX                                                  !0
          8        SEND_VAR_EX                                                  !1
          9        DO_FCALL                                          0          
         10        ASSIGN                                                       !3, $9
   10    11        TYPE_CHECK                                        2          !3
         12      > JMPZ                                                         ~12, ->21
   11    13    >   INIT_FCALL_BY_NAME                                           'intl_get_error_code'
         14        DO_FCALL                                          0  $13     
         15        CONCAT                                               ~14     'Invalid+pattern%3A+', $13
         16        CONCAT                                               ~15     ~14, '%0A'
         17        INIT_FCALL_BY_NAME                                           'intl_get_error_message'
         18        DO_FCALL                                          0  $16     
         19        CONCAT                                               ~17     ~15, $16
         20        ECHO                                                         ~17
   13    21    >   INIT_METHOD_CALL                                             !3, 'format'
         22        SEND_VAR_EX                                                  !2
         23        DO_FCALL                                          0  $18     
         24        ECHO                                                         $18
   14    25        ECHO                                                         '%0A'
         26      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
216.43 ms | 2192 KiB | 8 Q