3v4l.org

run code in 500+ PHP versions simultaneously
<?php echo strtolower(preg_replace('/(?:person|animal)(*SKIP)(*FAIL)|./i', '', '123-ea-person.jpg 456456-on-Person.jpg a-animal-dog.png'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pZ9YC
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                                   'strtolower'
          1        FRAMELESS_ICALL_3                preg_replace        ~0      '%2F%28%3F%3Aperson%7Canimal%29%28%2ASKIP%29%28%2AFAIL%29%7C.%2Fi', ''
          2        OP_DATA                                                      '123-ea-person.jpg%0A456456-on-Person.jpg%0Aa-animal-dog.png'
          3        SEND_VAL                                                     ~0
          4        DO_ICALL                                             $1      
          5        ECHO                                                         $1
    4     6      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
185.82 ms | 1755 KiB | 14 Q