3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'CustomErrorLog "/errorlog wtf" hello bvc "jjrr" hello rrgg/x^$46/ "rggg£"'; preg_match_all('/"([^"]*)"|\S+/', $str, $matches); var_dump($matches);
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { [0]=> array(8) { [0]=> string(14) "CustomErrorLog" [1]=> string(15) ""/errorlog wtf"" [2]=> string(5) "hello" [3]=> string(3) "bvc" [4]=> string(6) ""jjrr"" [5]=> string(5) "hello" [6]=> string(11) "rrgg/x^$46/" [7]=> string(8) ""rggg£"" } [1]=> array(8) { [0]=> string(0) "" [1]=> string(13) "/errorlog wtf" [2]=> string(0) "" [3]=> string(0) "" [4]=> string(4) "jjrr" [5]=> string(0) "" [6]=> string(0) "" [7]=> string(6) "rggg£" } }

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:
39.05 ms | 402 KiB | 8 Q