3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = '/,\s?/'; $filenames = 'filename.png,filename.png,filename.png,filename.png,file name.png'; var_dump(preg_split($pattern, $filenames)); $filenames = 'filename.png, filename2.png, filename3.png, filename4.png, file name5.png'; var_dump(preg_split($pattern, $filenames));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/j87Qs
function name:  (null)
number of ops:  18
compiled vars:  !0 = $pattern, !1 = $filenames
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2F%2C%5Cs%3F%2F'
    4     1        ASSIGN                                                   !1, 'filename.png%2Cfilename.png%2Cfilename.png%2Cfilename.png%2Cfile+name.png'
    5     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'preg_split'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $4      
          7        SEND_VAR                                                 $4
          8        DO_ICALL                                                 
    7     9        ASSIGN                                                   !1, 'filename.png%2C+filename2.png%2C+filename3.png%2C+filename4.png%2C+file+name5.png'
    8    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'preg_split'
         12        SEND_VAR                                                 !0
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $7      
         15        SEND_VAR                                                 $7
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.18 ms | 1437 KiB | 15 Q