3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'bar', 'fdsfsf345#3gt#$%3^#$T$#tr43r43', 'test spaces', '"test spaces"', '"fdsfsf345#3gt#$%3^#$T$#tr43r43" #comment', 'test spaces" #comment', 'bar', '""', '""""', 'foo1 #comment2', '"with space value" #comment', 'with quote value\'', 'somestringstart', 'with spaces" # a comment', 'bar' ]; $result=preg_replace('~ #.*~','',$array); var_export($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8pje0
function name:  (null)
number of ops:  11
compiled vars:  !0 = $array, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   20     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%7E+%23.%2A%7E'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
   21     7        INIT_FCALL                                               'var_export'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
125.94 ms | 1010 KiB | 15 Q