3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sub="happy"; $ser="a"; $rep="i"; echo str_replace($ser,$rep,$sub);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Q15DQ
function name:  (null)
number of ops:  10
compiled vars:  !0 = $sub, !1 = $ser, !2 = $rep
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'happy'
          1        ASSIGN                                                   !1, 'a'
          2        ASSIGN                                                   !2, 'i'
          3        INIT_FCALL                                               'str_replace'
          4        SEND_VAR                                                 !1
          5        SEND_VAR                                                 !2
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $6      
          8        ECHO                                                     $6
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.45 ms | 1394 KiB | 15 Q