3v4l.org

run code in 500+ PHP versions simultaneously
<?php foreach (['tr_TR', 'en_US', 'ar_SA', 'ar-u-nu-latn'] as $locale) { $numberFormatter = new NumberFormatter($locale, NumberFormatter::PERCENT); echo "$locale: 0.7 => " . $numberFormatter->format(0.7) . PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 1, Position 2 = 17
Branch analysis from position: 1
2 jumps found. (Code = 78) Position 1 = 2, Position 2 = 17
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 1
Branch analysis from position: 1
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/7ksVG
function name:  (null)
number of ops:  19
compiled vars:  !0 = $locale, !1 = $numberFormatter
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E > > FE_RESET_R                                           $2      <array>, ->17
          1    > > FE_FETCH_R                                                   $2, !0, ->17
    4     2    >   NEW                                                  $3      'NumberFormatter'
          3        SEND_VAR_EX                                                  !0
          4        FETCH_CLASS_CONSTANT                                 ~4      'NumberFormatter', 'PERCENT'
          5        SEND_VAL_EX                                                  ~4
          6        DO_FCALL                                          0          
          7        ASSIGN                                                       !1, $3
    5     8        NOP                                                          
          9        FAST_CONCAT                                          ~7      !0, '%3A+0.7+%3D%3E+'
         10        INIT_METHOD_CALL                                             !1, 'format'
         11        SEND_VAL_EX                                                  0.7
         12        DO_FCALL                                          0  $8      
         13        CONCAT                                               ~9      ~7, $8
         14        CONCAT                                               ~10     ~9, '%0A'
         15        ECHO                                                         ~10
    3    16      > JMP                                                          ->1
         17    >   FE_FREE                                                      $2
    6    18      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
170.65 ms | 1449 KiB | 13 Q