3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Spintax { public static function Parse($text) { return self::Process($text); } private static function Process($text) { $pattern = '/\{(((?>[^\{\}]+)|(?R))*)\}/x'; return preg_replace_callback($pattern, ['Spintax', 'Replace'], $text); } private static function Replace($text) { $text = self::Process($text[1]); $parts = explode('|', $text); return $parts[array_rand($parts)]; } } $spintax = "{The|The actual|The particular|Your|This} breakthrough treatment {works by|functions|functions by|operates by|sticks to} oxygenating {the|the actual|the particular|your|this} blood {through an|with an|via an|using an|with the} injection {that can|that may|that will|which could|that could} hold {someone|somebody|an individual|a person|another person} alive {for up to|for approximately|for|for about|for as much as} 30 minutes {even if|even though|even when|regardless of whether|whether or not} they {are unable to|cannot|can't|can't seem to|are not able to} breath {at|from|with|in|on} everything {and could|and may|and might|and can|and may even} save {thousands of|a large number of|1000s of|a huge number of|many} lives."; echo Spintax::Parse($spintax);
based on 4dKWR
Output for 7.3.0rc2
This breakthrough treatment functions oxygenating the particular blood via an injection that could hold another person alive for 30 minutes regardless of whether they can't breath from everything and may even save a large number of lives.
Output for 7.3.0rc1
The particular breakthrough treatment operates by oxygenating the actual blood using an injection that could hold an individual alive for 30 minutes regardless of whether they can't breath in everything and may even save a large number of lives.
Output for 7.3.0beta3
The actual breakthrough treatment functions by oxygenating the particular blood with an injection that will hold an individual alive for approximately 30 minutes even when they can't seem to breath in everything and may even save a huge number of lives.
Output for 7.3.0beta2
The breakthrough treatment functions by oxygenating the blood via an injection that could hold someone alive for 30 minutes even when they can't seem to breath with everything and could save many lives.
Output for 7.3.0beta1
The breakthrough treatment works by oxygenating the blood with the injection that will hold an individual alive for up to 30 minutes even though they are not able to breath in everything and may even save a huge number of lives.
Output for 7.3.0alpha4
This breakthrough treatment sticks to oxygenating this blood with an injection that could hold someone alive for approximately 30 minutes regardless of whether they are unable to breath with everything and may even save many lives.
Output for 7.3.0alpha3
The particular breakthrough treatment sticks to oxygenating the particular blood using an injection that will hold someone alive for 30 minutes even if they can't seem to breath in everything and could save a huge number of lives.
Output for 7.3.0alpha2
The breakthrough treatment functions oxygenating this blood through an injection that will hold somebody alive for as much as 30 minutes even when they are not able to breath on everything and could save many lives.
Output for 7.3.0alpha1
The actual breakthrough treatment functions oxygenating this blood through an injection which could hold somebody alive for about 30 minutes regardless of whether they cannot breath from everything and may even save a huge number of lives.
Output for 7.2.11
Your breakthrough treatment sticks to oxygenating the blood via an injection that can hold somebody alive for as much as 30 minutes even when they are not able to breath on everything and may even save 1000s of lives.
Output for 7.2.10
The actual breakthrough treatment functions oxygenating your blood through an injection that can hold another person alive for 30 minutes whether or not they are not able to breath on everything and can save a huge number of lives.
Output for 7.2.9
The breakthrough treatment functions by oxygenating this blood with an injection which could hold someone alive for as much as 30 minutes even when they cannot breath from everything and could save 1000s of lives.
Output for 7.2.8
The breakthrough treatment functions oxygenating your blood with an injection that may hold another person alive for 30 minutes regardless of whether they can't breath from everything and might save 1000s of lives.
Output for 7.2.7
The particular breakthrough treatment functions oxygenating the blood via an injection that can hold somebody alive for about 30 minutes even if they can't seem to breath at everything and could save 1000s of lives.
Output for 7.2.6
The particular breakthrough treatment sticks to oxygenating the particular blood with an injection that could hold somebody alive for up to 30 minutes regardless of whether they are unable to breath in everything and may even save 1000s of lives.
Output for 7.2.5
The actual breakthrough treatment functions oxygenating the actual blood using an injection that can hold somebody alive for up to 30 minutes whether or not they can't breath at everything and may even save a huge number of lives.
Output for 7.2.4
Your breakthrough treatment operates by oxygenating the actual blood with the injection which could hold someone alive for approximately 30 minutes whether or not they can't breath on everything and may save thousands of lives.
Output for 7.2.3
The actual breakthrough treatment works by oxygenating this blood using an injection that will hold an individual alive for 30 minutes even if they are not able to breath in everything and might save many lives.
Output for 7.2.2
The actual breakthrough treatment sticks to oxygenating your blood with an injection that may hold somebody alive for about 30 minutes even if they can't breath in everything and may save 1000s of lives.
Output for 7.2.1
Your breakthrough treatment functions oxygenating the actual blood with an injection which could hold someone alive for as much as 30 minutes even though they are not able to breath in everything and could save a large number of lives.
Output for 7.2.0
This breakthrough treatment functions by oxygenating the particular blood using an injection that could hold a person alive for approximately 30 minutes even though they are unable to breath from everything and could save a large number of lives.
Output for 7.1.23
The actual breakthrough treatment functions oxygenating your blood with an injection that will hold a person alive for approximately 30 minutes even though they can't seem to breath in everything and might save 1000s of lives.
Output for 7.1.22
The actual breakthrough treatment functions oxygenating this blood through an injection that could hold a person alive for about 30 minutes whether or not they can't breath in everything and could save 1000s of lives.
Output for 7.1.21
The breakthrough treatment operates by oxygenating the particular blood through an injection that will hold someone alive for up to 30 minutes regardless of whether they cannot breath with everything and could save 1000s of lives.
Output for 7.1.20
Your breakthrough treatment operates by oxygenating your blood with an injection that will hold a person alive for approximately 30 minutes whether or not they cannot breath with everything and could save a huge number of lives.
Output for 7.1.19
The particular breakthrough treatment operates by oxygenating the actual blood with the injection that may hold an individual alive for approximately 30 minutes even if they can't breath in everything and may even save a huge number of lives.
Output for 7.1.18
The particular breakthrough treatment sticks to oxygenating the particular blood with the injection that can hold someone alive for about 30 minutes regardless of whether they cannot breath at everything and might save many lives.
Output for 7.1.17
The actual breakthrough treatment functions oxygenating the particular blood via an injection that can hold an individual alive for about 30 minutes whether or not they are unable to breath on everything and might save 1000s of lives.
Output for 7.1.16
The breakthrough treatment sticks to oxygenating your blood through an injection that could hold an individual alive for as much as 30 minutes regardless of whether they can't seem to breath in everything and can save a large number of lives.
Output for 7.1.15
This breakthrough treatment functions oxygenating your blood via an injection that could hold another person alive for up to 30 minutes whether or not they are unable to breath in everything and could save thousands of lives.
Output for 7.1.14
Your breakthrough treatment functions by oxygenating your blood via an injection which could hold another person alive for as much as 30 minutes regardless of whether they are not able to breath with everything and could save thousands of lives.
Output for 7.1.13
The actual breakthrough treatment functions oxygenating the blood with an injection that could hold a person alive for about 30 minutes even if they cannot breath on everything and could save a large number of lives.
Output for 7.1.12
Your breakthrough treatment works by oxygenating your blood through an injection that may hold somebody alive for 30 minutes even when they are not able to breath with everything and could save many lives.
Output for 7.1.11
The breakthrough treatment sticks to oxygenating your blood with the injection that will hold a person alive for up to 30 minutes even if they can't breath at everything and could save a huge number of lives.
Output for 7.1.10
The breakthrough treatment functions oxygenating the particular blood through an injection which could hold somebody alive for as much as 30 minutes whether or not they can't breath in everything and may save thousands of lives.
Output for 7.1.9
The breakthrough treatment functions oxygenating this blood through an injection that could hold another person alive for up to 30 minutes even when they are unable to breath from everything and can save a huge number of lives.
Output for 7.1.8
The particular breakthrough treatment functions by oxygenating the actual blood using an injection which could hold somebody alive for about 30 minutes even if they can't seem to breath at everything and may save a large number of lives.
Output for 7.1.7
The breakthrough treatment functions oxygenating this blood with an injection that could hold a person alive for 30 minutes even when they cannot breath with everything and might save a huge number of lives.
Output for 7.1.6
The breakthrough treatment works by oxygenating your blood via an injection that may hold another person alive for 30 minutes regardless of whether they can't seem to breath with everything and might save 1000s of lives.
Output for 7.1.5
The breakthrough treatment sticks to oxygenating this blood via an injection that will hold somebody alive for 30 minutes even if they are not able to breath from everything and could save thousands of lives.
Output for 7.1.4
The breakthrough treatment functions oxygenating this blood via an injection that will hold an individual alive for as much as 30 minutes even if they cannot breath from everything and can save a huge number of lives.
Output for 7.1.3
This breakthrough treatment operates by oxygenating the actual blood through an injection that could hold a person alive for approximately 30 minutes regardless of whether they are not able to breath in everything and could save many lives.
Output for 7.1.2
The particular breakthrough treatment functions oxygenating the actual blood using an injection that may hold another person alive for approximately 30 minutes even when they can't seem to breath with everything and might save 1000s of lives.
Output for 7.1.1
The breakthrough treatment sticks to oxygenating your blood with an injection that will hold someone alive for approximately 30 minutes even when they can't seem to breath at everything and might save a huge number of lives.
Output for 7.1.0
The particular breakthrough treatment sticks to oxygenating this blood via an injection that will hold a person alive for 30 minutes even though they cannot breath at everything and may even save many lives.
Output for 7.0.28
The particular breakthrough treatment operates by oxygenating the blood via an injection which could hold another person alive for 30 minutes even if they cannot breath in everything and might save a huge number of lives.
Output for 5.6.38
This breakthrough treatment works by oxygenating this blood with an injection that will hold a person alive for approximately 30 minutes regardless of whether they are not able to breath with everything and may save 1000s of lives.