3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'http://localhost/contact.html'; echo $str . "\n"; echo str_replace('http://localhost', '', $str);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rZSAj
function name:  (null)
number of ops:  10
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Flocalhost%2Fcontact.html'
    4     1        CONCAT                                           ~2      !0, '%0A'
          2        ECHO                                                     ~2
    5     3        INIT_FCALL                                               'str_replace'
          4        SEND_VAL                                                 'http%3A%2F%2Flocalhost'
          5        SEND_VAL                                                 ''
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8        ECHO                                                     $3
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.04 ms | 996 KiB | 14 Q