3v4l.org

run code in 300+ PHP versions simultaneously
<?php $locale = 'cs_CZ.ISO8859-2'; setlocale( LC_CTYPE, $locale); $char = 'ž'; echo "Testing strtoupper('{$char}'):\n"; echo "Expected result: Ž\n"; echo 'Actual result: ' . strtoupper($char) . "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WVMmP
function name:  (null)
number of ops:  18
compiled vars:  !0 = $locale, !1 = $char
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'cs_CZ.ISO8859-2'
    4     1        INIT_FCALL                                               'setlocale'
          2        SEND_VAL                                                 0
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
    6     5        ASSIGN                                                   !1, '%C5%BE'
    7     6        ROPE_INIT                                     3  ~6      'Testing+strtoupper%28%27'
          7        ROPE_ADD                                      1  ~6      ~6, !1
          8        ROPE_END                                      2  ~5      ~6, '%27%29%3A%0A'
          9        ECHO                                                     ~5
    8    10        ECHO                                                     'Expected+result%3A+%C5%BD%0A'
    9    11        INIT_FCALL                                               'strtoupper'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $8      
         14        CONCAT                                           ~9      'Actual+result%3A+', $8
         15        CONCAT                                           ~10     ~9, '%0A'
         16        ECHO                                                     ~10
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.52 ms | 1394 KiB | 17 Q