3v4l.org

run code in 300+ PHP versions simultaneously
<?php //set locale for currency setlocale(LC_MONETARY, 'en_GB'); $sales = '8932.83'; echo utf8_encode(money_format('%n.0', $sales));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3rgHF
function name:  (null)
number of ops:  14
compiled vars:  !0 = $sales
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'setlocale'
          1        SEND_VAL                                                 4
          2        SEND_VAL                                                 'en_GB'
          3        DO_ICALL                                                 
    6     4        ASSIGN                                                   !0, '8932.83'
    8     5        INIT_FCALL                                               'utf8_encode'
          6        INIT_FCALL_BY_NAME                                       'money_format'
          7        SEND_VAL_EX                                              '%25n.0'
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0  $3      
         10        SEND_VAR                                                 $3
         11        DO_ICALL                                         $4      
         12        ECHO                                                     $4
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.2 ms | 1394 KiB | 17 Q