3v4l.org

run code in 500+ PHP versions simultaneously
<?php $formatter = new \NumberFormatter('lt', \NumberFormatter::DECIMAL); $value = $formatter->format('-150'); $valueAsAscii = iconv('utf8', 'ascii//translit', $value); var_dump($value); var_dump($valueAsAscii);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bhcEf
function name:  (null)
number of ops:  23
compiled vars:  !0 = $formatter, !1 = $value, !2 = $valueAsAscii
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   NEW                                                  $3      'NumberFormatter'
          1        SEND_VAL_EX                                                  'lt'
          2        FETCH_CLASS_CONSTANT                                 ~4      'NumberFormatter', 'DECIMAL'
          3        SEND_VAL_EX                                                  ~4
          4        DO_FCALL                                          0          
          5        ASSIGN                                                       !0, $3
    4     6        INIT_METHOD_CALL                                             !0, 'format'
          7        SEND_VAL_EX                                                  '-150'
          8        DO_FCALL                                          0  $7      
          9        ASSIGN                                                       !1, $7
    5    10        INIT_FCALL_BY_NAME                                           'iconv'
         11        SEND_VAL_EX                                                  'utf8'
         12        SEND_VAL_EX                                                  'ascii%2F%2Ftranslit'
         13        SEND_VAR_EX                                                  !1
         14        DO_FCALL                                          0  $9      
         15        ASSIGN                                                       !2, $9
    7    16        INIT_FCALL                                                   'var_dump'
         17        SEND_VAR                                                     !1
         18        DO_ICALL                                                     
    8    19        INIT_FCALL                                                   'var_dump'
         20        SEND_VAR                                                     !2
         21        DO_ICALL                                                     
         22      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
207.88 ms | 2209 KiB | 14 Q