3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = [ "Pizza 'PizzaName' this is a certain pizza", "Pizza 'NamePizza' this is a certain pizza", "Pizza 'Hawaii' this is a certain pizza", "Pizza 'Pepperoni' this is a certain pizza", "Pizza is a very nice pizza" ]; foreach ($strings as $string) { print_r(preg_split("~[^']+'[^']+'\K ~", $string)); }
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Pizza 'PizzaName' [1] => this is a certain pizza ) Array ( [0] => Pizza 'NamePizza' [1] => this is a certain pizza ) Array ( [0] => Pizza 'Hawaii' [1] => this is a certain pizza ) Array ( [0] => Pizza 'Pepperoni' [1] => this is a certain pizza ) Array ( [0] => Pizza is a very nice pizza )

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