3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = [ 'Brand_GoPro360', 'brand_My247test', 'bRanD_Apple_worth_84953', 'Brand_Xbox1_isawesome745', 'Microsoft', 'KFC_2345_growth', 'Playstation_iscool3424' ]; var_export(preg_replace('~^(?:brand_)?([^_]+).*~i', '$1', $list));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7qnNH
function name:  (null)
number of ops:  10
compiled vars:  !0 = $list
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   13     1        INIT_FCALL                                               'var_export'
          2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAL                                                 '%7E%5E%28%3F%3Abrand_%29%3F%28%5B%5E_%5D%2B%29.%2A%7Ei'
          4        SEND_VAL                                                 '%241'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.58 ms | 1009 KiB | 15 Q