3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fmt = new NumberFormatter( 'pwet', NumberFormatter::CURRENCY ); echo $fmt->format(1234567.891234567890000); if(intl_is_failure($fmt->getErrorCode())) { report_error("Erreur de formateur"); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 19
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/vnKUL
function name:  (null)
number of ops:  20
compiled vars:  !0 = $fmt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'NumberFormatter'
          1        SEND_VAL_EX                                              'pwet'
          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, 'format'
          7        SEND_VAL_EX                                              1.23457e+6
          8        DO_FCALL                                      0  $5      
          9        ECHO                                                     $5
    5    10        INIT_FCALL_BY_NAME                                       'intl_is_failure'
         11        INIT_METHOD_CALL                                         !0, 'getErrorCode'
         12        DO_FCALL                                      0  $6      
         13        SEND_VAR_NO_REF_EX                                       $6
         14        DO_FCALL                                      0  $7      
         15      > JMPZ                                                     $7, ->19
    6    16    >   INIT_FCALL_BY_NAME                                       'report_error'
         17        SEND_VAL_EX                                              'Erreur+de+formateur'
         18        DO_FCALL                                      0          
    7    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.27 ms | 1393 KiB | 16 Q