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 5.6.38, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.30, 8.2.0 - 8.2.25, 8.3.0 - 8.3.13
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 )

preferences:
74.95 ms | 408 KiB | 5 Q