3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $f = new \NumberFormatter('ro_RO', \NumberFormatter::CURRENCY); echo $f->formatCurrency('2.25', 'EUR');
based on os7R2
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/DJ4Z2
function name:  (null)
number of ops:  12
compiled vars:  !0 = $f
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NEW                                              $1      :-6
         1        SEND_VAL_EX                                              'ro_RO'
         2        FETCH_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                                              '2.25'
         8        SEND_VAL_EX                                              'EUR'
         9        DO_FCALL                                      0  $5      
        10        ECHO                                                     $5
        11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0