3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n = 9.83; $currency = 'CHF'; $locale = null; var_dump($n); $formatter = new NumberFormatter($locale, NumberFormatter::CURRENCY); $formatted_value = $formatter->formatCurrency($n, $currency); var_dump($formatted_value);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u9IY6
function name:  (null)
number of ops:  21
compiled vars:  !0 = $n, !1 = $currency, !2 = $locale, !3 = $formatter, !4 = $formatted_value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 9.83
    4     1        ASSIGN                                                   !1, 'CHF'
    5     2        ASSIGN                                                   !2, null
    7     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
    8     6        NEW                                              $9      'NumberFormatter'
          7        SEND_VAR_EX                                              !2
          8        FETCH_CLASS_CONSTANT                             ~10     'NumberFormatter', 'CURRENCY'
          9        SEND_VAL_EX                                              ~10
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !3, $9
    9    12        INIT_METHOD_CALL                                         !3, 'formatCurrency'
         13        SEND_VAR_EX                                              !0
         14        SEND_VAR_EX                                              !1
         15        DO_FCALL                                      0  $13     
         16        ASSIGN                                                   !4, $13
   10    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !4
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.46 ms | 1395 KiB | 15 Q