3v4l.org

run code in 500+ PHP versions simultaneously
<?php $strings = [ "paris-chambre-double-classique-avec-option-petit-dejeuner-a-lhotel-trianon-rive-gauche-4-pour-2-personnes-8ae0676c-aba2-4cf2-9391-91096a247672", "f707b0fe-31cb-4507-b7b3-7b91695bff9c-paris-chambre-double-standard-avec-petit-dejeuner-et-acces-spa-pour-2-personnes-a-lhotel-le-mareuil-4" ]; foreach ($strings as $string) { echo preg_replace( '/-?[a-f\d]{8}-[a-f\d]{4}-[a-f\d]{4}-[a-f\d]{4}-[a-f\d]{12}-?/', '', $string ) . '.html'; echo "\n---\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 9
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 9
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/b3v3v
function name:  (null)
number of ops:  11
compiled vars:  !0 = $strings, !1 = $string
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    8     1      > FE_RESET_R                                           $3      !0, ->9
          2    > > FE_FETCH_R                                                   $3, !1, ->9
    9     3    >   FRAMELESS_ICALL_3                preg_replace        ~4      '%2F-%3F%5Ba-f%5Cd%5D%7B8%7D-%5Ba-f%5Cd%5D%7B4%7D-%5Ba-f%5Cd%5D%7B4%7D-%5Ba-f%5Cd%5D%7B4%7D-%5Ba-f%5Cd%5D%7B12%7D-%3F%2F', ''
   12     4        OP_DATA                                                      !1
   13     5        CONCAT                                               ~5      ~4, '.html'
          6        ECHO                                                         ~5
   14     7        ECHO                                                         '%0A---%0A'
    8     8      > JMP                                                          ->2
          9    >   FE_FREE                                                      $3
   15    10      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
125.98 ms | 475 KiB | 7 Q