3v4l.org

run code in 500+ PHP versions simultaneously
<?php $str = "😜House-3-BLUE]"; echo mb_substr($str,0,1).mb_strtolower(mb_substr($str,1,1)).mb_substr($str,2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NYe0r
function name:  (null)
number of ops:  22
compiled vars:  !0 = $str
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%F0%9F%98%9CHouse-3-BLUE%5D'
    4     1        INIT_FCALL                                                   'mb_substr'
          2        SEND_VAR                                                     !0
          3        SEND_VAL                                                     0
          4        SEND_VAL                                                     1
          5        DO_ICALL                                             $2      
          6        INIT_FCALL                                                   'mb_strtolower'
          7        INIT_FCALL                                                   'mb_substr'
          8        SEND_VAR                                                     !0
          9        SEND_VAL                                                     1
         10        SEND_VAL                                                     1
         11        DO_ICALL                                             $3      
         12        SEND_VAR                                                     $3
         13        DO_ICALL                                             $4      
         14        CONCAT                                               ~5      $2, $4
         15        INIT_FCALL                                                   'mb_substr'
         16        SEND_VAR                                                     !0
         17        SEND_VAL                                                     2
         18        DO_ICALL                                             $6      
         19        CONCAT                                               ~7      ~5, $6
         20        ECHO                                                         ~7
         21      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
209.46 ms | 2109 KiB | 15 Q