3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s="sasas @prashnthm sdhjds @medonthi http://t.co/s3tZXim14e"; $url="http://t.co/s3tZXim14e"; $durl="pic.twitter.com/s3tZXim14e"; $data=str_replace($url,$durl,$s); var_dump($data); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/k9K5B
function name:  (null)
number of ops:  13
compiled vars:  !0 = $s, !1 = $url, !2 = $durl, !3 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'sasas+%40prashnthm+sdhjds+%40medonthi+http%3A%2F%2Ft.co%2Fs3tZXim14e'
    3     1        ASSIGN                                                   !1, 'http%3A%2F%2Ft.co%2Fs3tZXim14e'
    4     2        ASSIGN                                                   !2, 'pic.twitter.com%2Fs3tZXim14e'
    5     3        INIT_FCALL                                               'str_replace'
          4        SEND_VAR                                                 !1
          5        SEND_VAR                                                 !2
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $7      
          8        ASSIGN                                                   !3, $7
    6     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !3
         11        DO_ICALL                                                 
    7    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.59 ms | 1394 KiB | 17 Q