3v4l.org

run code in 300+ PHP versions simultaneously
<?php setlocale(LC_MONETARY, 'tr_TR.UTF-8'); $formatter = new \NumberFormatter('tr_TR.UTF-8', \NumberFormatter::CURRENCY); var_dump($formatter->format(1200)); var_dump(money_format('%n', 1200));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6MJmn
function name:  (null)
number of ops:  24
compiled vars:  !0 = $formatter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'setlocale'
          1        SEND_VAL                                                 4
          2        SEND_VAL                                                 'tr_TR.UTF-8'
          3        DO_ICALL                                                 
    5     4        NEW                                              $2      'NumberFormatter'
          5        SEND_VAL_EX                                              'tr_TR.UTF-8'
          6        FETCH_CLASS_CONSTANT                             ~3      'NumberFormatter', 'CURRENCY'
          7        SEND_VAL_EX                                              ~3
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !0, $2
    7    10        INIT_FCALL                                               'var_dump'
         11        INIT_METHOD_CALL                                         !0, 'format'
         12        SEND_VAL_EX                                              1200
         13        DO_FCALL                                      0  $6      
         14        SEND_VAR                                                 $6
         15        DO_ICALL                                                 
    8    16        INIT_FCALL                                               'var_dump'
         17        INIT_FCALL_BY_NAME                                       'money_format'
         18        SEND_VAL_EX                                              '%25n'
         19        SEND_VAL_EX                                              1200
         20        DO_FCALL                                      0  $8      
         21        SEND_VAR                                                 $8
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.6 ms | 1395 KiB | 17 Q