3v4l.org

run code in 300+ PHP versions simultaneously
<?php $formatter = new NumberFormatter('en_US', NumberFormatter::CURRENCY); echo $formatter->formatCurrency(1234.56, '') . PHP_EOL; $formatter = new NumberFormatter('de_DE', NumberFormatter::CURRENCY); echo $formatter->formatCurrency(1234.56, 'USD');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6sQIo
function name:  (null)
number of ops:  24
compiled vars:  !0 = $formatter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'NumberFormatter'
          1        SEND_VAL_EX                                              'en_US'
          2        FETCH_CLASS_CONSTANT                             ~2      'NumberFormatter', 'CURRENCY'
          3        SEND_VAL_EX                                              ~2
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $1
    4     6        INIT_METHOD_CALL                                         !0, 'formatCurrency'
          7        SEND_VAL_EX                                              1234.56
          8        SEND_VAL_EX                                              ''
          9        DO_FCALL                                      0  $5      
         10        CONCAT                                           ~6      $5, '%0A'
         11        ECHO                                                     ~6
    6    12        NEW                                              $7      'NumberFormatter'
         13        SEND_VAL_EX                                              'de_DE'
         14        FETCH_CLASS_CONSTANT                             ~8      'NumberFormatter', 'CURRENCY'
         15        SEND_VAL_EX                                              ~8
         16        DO_FCALL                                      0          
         17        ASSIGN                                                   !0, $7
    7    18        INIT_METHOD_CALL                                         !0, 'formatCurrency'
         19        SEND_VAL_EX                                              1234.56
         20        SEND_VAL_EX                                              'USD'
         21        DO_FCALL                                      0  $11     
         22        ECHO                                                     $11
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.34 ms | 1398 KiB | 13 Q