3v4l.org

run code in 300+ PHP versions simultaneously
<?php $in = '“Chess helps us overcome difficulties and sufferings,” said Unnikrishnan, taking my queen. “On a chess board you are fighting. as we are also fighting the hardships in our daily life.” he said.'; $out = preg_split('/ (?=“)/', $in, 0, PREG_SPLIT_NO_EMPTY); //$out = preg_match_all('/“.+?(?= “|$)/', $in, $out) ? $out[0] : null; $find = '/[“”]/u'; // unicode flag is essential $replace = '"'; $out = preg_replace($find, $replace, $out); // replace curly quotes with standard double quotes var_export($out);
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => '"Chess helps us overcome difficulties and sufferings," said Unnikrishnan, taking my queen.', 1 => '"On a chess board you are fighting. as we are also fighting the hardships in our daily life." he said.', )

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:
154.21 ms | 406 KiB | 5 Q