3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = 'hello'; $s[-1] = strtoupper($s[-1]); echo $s;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4N7N4
function name:  (null)
number of ops:  9
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'hello'
    4     1        INIT_FCALL                                               'strtoupper'
          2        FETCH_DIM_R                                      ~3      !0, -1
          3        SEND_VAL                                                 ~3
          4        DO_ICALL                                         $4      
          5        ASSIGN_DIM                                               !0, -1
          6        OP_DATA                                                  $4
    6     7        ECHO                                                     !0
    7     8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.33 ms | 1401 KiB | 16 Q