3v4l.org

run code in 500+ PHP versions simultaneously
<?php $input = '275,590'; $arr = explode(',',$input); $f = new NumberFormatter("en", NumberFormatter::SPELLOUT); echo $f->format($arr[0]).' dinar and '.$f->format($arr[1]).' millimes ';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YR2WB
function name:  (null)
number of ops:  27
compiled vars:  !0 = $input, !1 = $arr, !2 = $f
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '275%2C590'
    4     1        INIT_FCALL                                                   'explode'
          2        SEND_VAL                                                     '%2C'
          3        SEND_VAR                                                     !0
          4        DO_ICALL                                             $4      
          5        ASSIGN                                                       !1, $4
    6     6        NEW                                                  $6      'NumberFormatter'
          7        SEND_VAL_EX                                                  'en'
          8        FETCH_CLASS_CONSTANT                                 ~7      'NumberFormatter', 'SPELLOUT'
          9        SEND_VAL_EX                                                  ~7
         10        DO_FCALL                                          0          
         11        ASSIGN                                                       !2, $6
    7    12        INIT_METHOD_CALL                                             !2, 'format'
         13        CHECK_FUNC_ARG                                               
         14        FETCH_DIM_FUNC_ARG                                   $10     !1, 0
         15        SEND_FUNC_ARG                                                $10
         16        DO_FCALL                                          0  $11     
         17        CONCAT                                               ~12     $11, '+dinar+and+'
         18        INIT_METHOD_CALL                                             !2, 'format'
         19        CHECK_FUNC_ARG                                               
         20        FETCH_DIM_FUNC_ARG                                   $13     !1, 1
         21        SEND_FUNC_ARG                                                $13
         22        DO_FCALL                                          0  $14     
         23        CONCAT                                               ~15     ~12, $14
         24        CONCAT                                               ~16     ~15, '+millimes+'
         25        ECHO                                                         ~16
         26      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
166.79 ms | 1777 KiB | 14 Q