3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/\bhttps?:\S+\.html?\b/m'; $str = 'Powerbank for videocamera Canon NB-5L: https://www.esseshop.it/caricabatterie-universale-da-auto-rete-fotocamera-videocamera-p-4452.html Powerbank for videocamera Canon NB-5L: https://www.esseshop.it/caricabatterie-universale-da-auto-rete-fotocamera-videocamera-p-4452.htm Powerbank for videocamera Canon NB-5L: http://www.esseshop.it/caricabatterie-universale-da-auto-rete-fotocamera-videocamera-p-4452.php'; $subst = ''; $result = preg_replace($re, $subst, $str); echo $result;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4DP3c
function name:  (null)
number of ops:  11
compiled vars:  !0 = $re, !1 = $str, !2 = $subst, !3 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2F%5Cbhttps%3F%3A%5CS%2B%5C.html%3F%5Cb%2Fm'
    4     1        ASSIGN                                                   !1, 'Powerbank+for+videocamera+Canon+NB-5L%3A+https%3A%2F%2Fwww.esseshop.it%2Fcaricabatterie-universale-da-auto-rete-fotocamera-videocamera-p-4452.html%0A%0APowerbank+for+videocamera+Canon+NB-5L%3A+%0Ahttps%3A%2F%2Fwww.esseshop.it%2Fcaricabatterie-universale-da-auto-rete-fotocamera-videocamera-p-4452.htm%0A%0APowerbank+for+videocamera+Canon+NB-5L%3A+%0Ahttp%3A%2F%2Fwww.esseshop.it%2Fcaricabatterie-universale-da-auto-rete-fotocamera-videocamera-p-4452.php'
   11     2        ASSIGN                                                   !2, ''
   13     3        INIT_FCALL                                               'preg_replace'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !2
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $7      
          8        ASSIGN                                                   !3, $7
   15     9        ECHO                                                     !3
   16    10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.05 ms | 997 KiB | 14 Q