3v4l.org

run code in 300+ PHP versions simultaneously
<?php $numberFormatter = new NumberFormatter('es-MX' , NumberFormatter::CURRENCY); echo( $numberFormatter->getLocale() . PHP_EOL); echo( $numberFormatter->formatCurrency(10, 'EUR') );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MY8S9
function name:  (null)
number of ops:  16
compiled vars:  !0 = $numberFormatter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'NumberFormatter'
          1        SEND_VAL_EX                                              'es-MX'
          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, 'getLocale'
          7        DO_FCALL                                      0  $5      
          8        CONCAT                                           ~6      $5, '%0A'
          9        ECHO                                                     ~6
    5    10        INIT_METHOD_CALL                                         !0, 'formatCurrency'
         11        SEND_VAL_EX                                              10
         12        SEND_VAL_EX                                              'EUR'
         13        DO_FCALL                                      0  $7      
         14        ECHO                                                     $7
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.88 ms | 1393 KiB | 13 Q