3v4l.org

run code in 300+ PHP versions simultaneously
<?php function doIt($string, $charset) { echo mb_strtoupper(mb_substr($string, 0, 1, $charset), $charset).mb_strtolower(mb_substr($string, 1, 2147483647, $charset), $charset), "\n"; } doIt('abcd', 'UTF-8'); doIt('abcd', 'ASCII'); doIt('abcd', 'ISO-8859-15');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qdpIK
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'doit'
          1        SEND_VAL                                                 'abcd'
          2        SEND_VAL                                                 'UTF-8'
          3        DO_FCALL                                      0          
    8     4        INIT_FCALL                                               'doit'
          5        SEND_VAL                                                 'abcd'
          6        SEND_VAL                                                 'ASCII'
          7        DO_FCALL                                      0          
    9     8        INIT_FCALL                                               'doit'
          9        SEND_VAL                                                 'abcd'
         10        SEND_VAL                                                 'ISO-8859-15'
         11        DO_FCALL                                      0          
         12      > RETURN                                                   1

Function doit:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qdpIK
function name:  doIt
number of ops:  26
compiled vars:  !0 = $string, !1 = $charset
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        INIT_FCALL                                               'mb_strtoupper'
          3        INIT_FCALL                                               'mb_substr'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 0
          6        SEND_VAL                                                 1
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $2      
          9        SEND_VAR                                                 $2
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $3      
         12        INIT_FCALL                                               'mb_strtolower'
         13        INIT_FCALL                                               'mb_substr'
         14        SEND_VAR                                                 !0
         15        SEND_VAL                                                 1
         16        SEND_VAL                                                 2147483647
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $4      
         19        SEND_VAR                                                 $4
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                         $5      
         22        CONCAT                                           ~6      $3, $5
         23        ECHO                                                     ~6
         24        ECHO                                                     '%0A'
    5    25      > RETURN                                                   null

End of function doit

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
196.44 ms | 1403 KiB | 22 Q