3v4l.org

run code in 300+ PHP versions simultaneously
<?php $source = '2rer*(0👍ගම්මැද්ද V FORCE ඉනොවේශන් නේෂන් සඳහා එවූ නිර්මාණය'; $target = '2rer0ගම්මැද්ද-v-force-ඉනොවේශන්-නේෂන්-සඳහා-එවූ-නිර්මාණය'; $slug = mb_strtolower($source); $slug = str_replace(' ', '-', $slug); $slug = preg_replace('/[^\p{L}\p{N}\p{M}-]+/u', '', $slug); var_dump($target === $slug);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/melBh
function name:  (null)
number of ops:  23
compiled vars:  !0 = $source, !1 = $target, !2 = $slug
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '2rer%2A%280%F0%9F%91%8D%E0%B6%9C%E0%B6%B8%E0%B7%8A%E0%B6%B8%E0%B7%90%E0%B6%AF%E0%B7%8A%E0%B6%AF+V+FORCE+%E0%B6%89%E0%B6%B1%E0%B7%9C%E0%B7%80%E0%B7%9A%E0%B7%81%E0%B6%B1%E0%B7%8A+%E0%B6%B1%E0%B7%9A%E0%B7%82%E0%B6%B1%E0%B7%8A+%E0%B7%83%E0%B6%B3%E0%B7%84%E0%B7%8F+%E0%B6%91%E0%B7%80%E0%B7%96+%E0%B6%B1%E0%B7%92%E0%B6%BB%E0%B7%8A%E0%B6%B8%E0%B7%8F%E0%B6%AB%E0%B6%BA'
    5     1        ASSIGN                                                   !1, '2rer0%E0%B6%9C%E0%B6%B8%E0%B7%8A%E0%B6%B8%E0%B7%90%E0%B6%AF%E0%B7%8A%E0%B6%AF-v-force-%E0%B6%89%E0%B6%B1%E0%B7%9C%E0%B7%80%E0%B7%9A%E0%B7%81%E0%B6%B1%E0%B7%8A-%E0%B6%B1%E0%B7%9A%E0%B7%82%E0%B6%B1%E0%B7%8A-%E0%B7%83%E0%B6%B3%E0%B7%84%E0%B7%8F-%E0%B6%91%E0%B7%80%E0%B7%96-%E0%B6%B1%E0%B7%92%E0%B6%BB%E0%B7%8A%E0%B6%B8%E0%B7%8F%E0%B6%AB%E0%B6%BA'
    7     2        INIT_FCALL                                               'mb_strtolower'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !2, $5
    8     6        INIT_FCALL                                               'str_replace'
          7        SEND_VAL                                                 '+'
          8        SEND_VAL                                                 '-'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                         $7      
         11        ASSIGN                                                   !2, $7
    9    12        INIT_FCALL                                               'preg_replace'
         13        SEND_VAL                                                 '%2F%5B%5E%5Cp%7BL%7D%5Cp%7BN%7D%5Cp%7BM%7D-%5D%2B%2Fu'
         14        SEND_VAL                                                 ''
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                         $9      
         17        ASSIGN                                                   !2, $9
   12    18        INIT_FCALL                                               'var_dump'
         19        IS_IDENTICAL                                     ~11     !1, !2
         20        SEND_VAL                                                 ~11
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
295.89 ms | 1017 KiB | 17 Q