3v4l.org

run code in 500+ PHP versions simultaneously
<?php $str = "[House-3-BLUE]"; echo substr_replace($str, strtolower(substr($str,1,1)), 1, 1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oDoXB
function name:  (null)
number of ops:  14
compiled vars:  !0 = $str
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%5BHouse-3-BLUE%5D'
    4     1        INIT_FCALL                                                   'substr_replace'
          2        SEND_VAR                                                     !0
          3        INIT_FCALL                                                   'strtolower'
          4        FRAMELESS_ICALL_3                substr              ~2      !0, 1
          5        OP_DATA                                                      1
          6        SEND_VAL                                                     ~2
          7        DO_ICALL                                             $3      
          8        SEND_VAR                                                     $3
          9        SEND_VAL                                                     1
         10        SEND_VAL                                                     1
         11        DO_ICALL                                             $4      
         12        ECHO                                                         $4
         13      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
144.06 ms | 2106 KiB | 15 Q