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));
Output for git.master, git.master_jit, rfc.property-hooks
array(5) { [0]=> string(12) "filename.png" [1]=> string(12) "filename.png" [2]=> string(12) "filename.png" [3]=> string(12) "filename.png" [4]=> string(13) "file name.png" } array(5) { [0]=> string(12) "filename.png" [1]=> string(13) "filename2.png" [2]=> string(13) "filename3.png" [3]=> string(13) "filename4.png" [4]=> string(14) "file name5.png" }

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
24.63 ms | 406 KiB | 5 Q