3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = <<<STR Turicum was a Swiss automobile manufactured between 1904 and 1906 in Zurich, 1907 till 1912 in Uster. Turicum is the Latin name of Zurich. The first car made by Martin Fischer was a small single-seater go-kart like vehicle, 140 cm long, with pedal-operated steering and powered by a motorcycle engine. It had chain drive but a second prototype had friction drive. The friction drive consisted of a flat steel disc coupled to the engine which drove a small, leather-covered wheel running at right angles to its surface. The small wheel could be moved across the surface of the large disc, giving an infinitely variable gear ratio. They attracted little public interest. The Swiss industrialist Jakob Heusser was also involved to establish the car manufacturer. STR; $pattern = '%[.] %'; $result = preg_split($pattern, $subject); var_dump($result);
Output for git.master, git.master_jit, rfc.property-hooks
array(8) { [0]=> string(100) "Turicum was a Swiss automobile manufactured between 1904 and 1906 in Zurich, 1907 till 1912 in Uster" [1]=> string(35) "Turicum is the Latin name of Zurich" [2]=> string(161) "The first car made by Martin Fischer was a small single-seater go-kart like vehicle, 140 cm long, with pedal-operated steering and powered by a motorcycle engine" [3]=> string(60) "It had chain drive but a second prototype had friction drive" [4]=> string(153) "The friction drive consisted of a flat steel disc coupled to the engine which drove a small, leather-covered wheel running at right angles to its surface" [5]=> string(109) "The small wheel could be moved across the surface of the large disc, giving an infinitely variable gear ratio" [6]=> string(37) "They attracted little public interest" [7]=> string(90) "The Swiss industrialist Jakob Heusser was also involved to establish the car manufacturer." }

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:
74.92 ms | 408 KiB | 5 Q