3v4l.org

run code in 300+ PHP versions simultaneously
<?php $numberFormatter = new NumberFormatter('bg', NumberFormatter::DECIMAL_COMPACT_SHORT); echo $numberFormatter->format(1200) . PHP_EOL; $numberFormatter = new NumberFormatter('EN', NumberFormatter::DECIMAL_COMPACT_SHORT); echo $numberFormatter->format(1200); $numberFormatter = new NumberFormatter('ES', NumberFormatter::DECIMAL_COMPACT_SHORT); echo $numberFormatter->format(1200);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pKBRs
function name:  (null)
number of ops:  32
compiled vars:  !0 = $numberFormatter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'NumberFormatter'
          1        SEND_VAL_EX                                              'bg'
          2        FETCH_CLASS_CONSTANT                             ~2      'NumberFormatter', 'DECIMAL_COMPACT_SHORT'
          3        SEND_VAL_EX                                              ~2
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $1
    4     6        INIT_METHOD_CALL                                         !0, 'format'
          7        SEND_VAL_EX                                              1200
          8        DO_FCALL                                      0  $5      
          9        CONCAT                                           ~6      $5, '%0A'
         10        ECHO                                                     ~6
    6    11        NEW                                              $7      'NumberFormatter'
         12        SEND_VAL_EX                                              'EN'
         13        FETCH_CLASS_CONSTANT                             ~8      'NumberFormatter', 'DECIMAL_COMPACT_SHORT'
         14        SEND_VAL_EX                                              ~8
         15        DO_FCALL                                      0          
         16        ASSIGN                                                   !0, $7
    7    17        INIT_METHOD_CALL                                         !0, 'format'
         18        SEND_VAL_EX                                              1200
         19        DO_FCALL                                      0  $11     
         20        ECHO                                                     $11
    9    21        NEW                                              $12     'NumberFormatter'
         22        SEND_VAL_EX                                              'ES'
         23        FETCH_CLASS_CONSTANT                             ~13     'NumberFormatter', 'DECIMAL_COMPACT_SHORT'
         24        SEND_VAL_EX                                              ~13
         25        DO_FCALL                                      0          
         26        ASSIGN                                                   !0, $12
   10    27        INIT_METHOD_CALL                                         !0, 'format'
         28        SEND_VAL_EX                                              1200
         29        DO_FCALL                                      0  $16     
         30        ECHO                                                     $16
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.31 ms | 1008 KiB | 13 Q