3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'http://www.google.com <img src="http://placehold.it/350x150" />'; $str = preg_replace('/^\b(https?):\/\/[-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i', '', $str); echo $str;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/d5l0I
function name:  (null)
number of ops:  9
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fwww.google.com+%3Cimg+src%3D%22http%3A%2F%2Fplacehold.it%2F350x150%22+%2F%3E'
    3     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5E%5Cb%28https%3F%29%3A%5C%2F%5C%2F%5B-A-Z0-9%2B%26%40%23%5C%2F%25%3F%3D%7E_%7C%24%21%3A%2C.%3B%5D%2A%5BA-Z0-9%2B%26%40%23%5C%2F%25%3D%7E_%7C%24%5D%2Fi'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    4     7        ECHO                                                     !0
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.02 ms | 1009 KiB | 14 Q