3v4l.org

run code in 300+ PHP versions simultaneously
<?php function NukesSpam($input) { return preg_replace('/<img(.*?)src=.http(.*?)domain\.com/(.*?)>', '', $input); } echo NukesSpam('<img src="http://www.domain.com/test1.jpg">');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZNRfp
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'nukesspam'
          1        SEND_VAL                                                 '%3Cimg+src%3D%22http%3A%2F%2Fwww.domain.com%2Ftest1.jpg%22%3E'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Function nukesspam:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZNRfp
function name:  NukesSpam
number of ops:  8
compiled vars:  !0 = $input
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%3Cimg%28.%2A%3F%29src%3D.http%28.%2A%3F%29domain%5C.com%2F%28.%2A%3F%29%3E'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $1      
          6      > RETURN                                                   $1
    6     7*     > RETURN                                                   null

End of function nukesspam

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.92 ms | 1388 KiB | 16 Q