3v4l.org

run code in 300+ PHP versions simultaneously
<?php function functionName($number) { $formatter = new NumberFormatter('en_US', NumberFormatter::CURRENCY); echo $formatter->formatCurrency($number, 'USD'); } functionName(232323223);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Zniqj
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'functionname'
          1        SEND_VAL                                                 232323223
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Function functionname:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Zniqj
function name:  functionName
number of ops:  13
compiled vars:  !0 = $number, !1 = $formatter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    9     1        NEW                                              $2      'NumberFormatter'
          2        SEND_VAL_EX                                              'en_US'
          3        FETCH_CLASS_CONSTANT                             ~3      'NumberFormatter', 'CURRENCY'
          4        SEND_VAL_EX                                              ~3
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $2
   10     7        INIT_METHOD_CALL                                         !1, 'formatCurrency'
          8        SEND_VAR_EX                                              !0
          9        SEND_VAL_EX                                              'USD'
         10        DO_FCALL                                      0  $6      
         11        ECHO                                                     $6
   11    12      > RETURN                                                   null

End of function functionname

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.75 ms | 1397 KiB | 14 Q