3v4l.org

run code in 500+ 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:  7
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        FRAMELESS_ICALL_3                str_replace         ~3      'http%3A%2F%2Flocalhost', ''
          4        OP_DATA                                                      !0
          5        ECHO                                                         ~3
          6      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
166.68 ms | 2585 KiB | 13 Q