3v4l.org

run code in 300+ PHP versions simultaneously
<?php $title = "ÛŞÃ is going to dèport 80% öf indians&citizens are #concerned -- Breaking News / News India"; echo trim( preg_replace( '/[^a-z\d]+/', '-', str_replace( '&', ' and ', strtolower($title) ) ), '-' );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Mi3pX
function name:  (null)
number of ops:  20
compiled vars:  !0 = $title
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%C3%9B%C5%9E%C3%83+is+going+to+d%C3%A8port+80%25+%C3%B6f+indians%26citizens+are+%23concerned+--+Breaking+News+%2F+News+India'
    5     1        INIT_FCALL                                               'trim'
    6     2        INIT_FCALL                                               'preg_replace'
    7     3        SEND_VAL                                                 '%2F%5B%5Ea-z%5Cd%5D%2B%2F'
    8     4        SEND_VAL                                                 '-'
    9     5        INIT_FCALL                                               'str_replace'
   10     6        SEND_VAL                                                 '%26'
   11     7        SEND_VAL                                                 '+and+'
   12     8        INIT_FCALL                                               'strtolower'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $2      
         11        SEND_VAR                                                 $2
    9    12        DO_ICALL                                         $3      
   12    13        SEND_VAR                                                 $3
    6    14        DO_ICALL                                         $4      
   12    15        SEND_VAR                                                 $4
   15    16        SEND_VAL                                                 '-'
    5    17        DO_ICALL                                         $5      
   15    18        ECHO                                                     $5
   16    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180 ms | 1004 KiB | 17 Q