3v4l.org

run code in 500+ PHP versions simultaneously
<?php $percent_formatter = NumberFormatter::create('de_DE', NumberFormatter::PERCENT); $value1 = $percent_formatter->format('0.5'); $value2 = "50\u{A0}%"; var_dump($value1==$value2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Y4Uue
function name:  (null)
number of ops:  16
compiled vars:  !0 = $percent_formatter, !1 = $value1, !2 = $value2
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_STATIC_METHOD_CALL                                      'NumberFormatter', 'create'
          1        SEND_VAL_EX                                                  'de_DE'
          2        FETCH_CLASS_CONSTANT                                 ~3      'NumberFormatter', 'PERCENT'
          3        SEND_VAL_EX                                                  ~3
          4        DO_FCALL                                          0  $4      
          5        ASSIGN                                                       !0, $4
    3     6        INIT_METHOD_CALL                                             !0, 'format'
          7        SEND_VAL_EX                                                  '0.5'
          8        DO_FCALL                                          0  $6      
          9        ASSIGN                                                       !1, $6
    4    10        ASSIGN                                                       !2, '50%C2%A0%25'
    5    11        INIT_FCALL                                                   'var_dump'
         12        IS_EQUAL                                             ~9      !1, !2
         13        SEND_VAL                                                     ~9
         14        DO_ICALL                                                     
         15      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
151.7 ms | 1294 KiB | 14 Q