3v4l.org

run code in 300+ PHP versions simultaneously
<?php $title = 'Wednesday: light rain, Max Temp: 7&#xB0;C (45&#xB0;F), Min Temp: 3&#xB0;C (37&#xB0;F)'; list ($day, $forecast, $maxTitle, $maxTemp, $minTitle, $minTemp) = preg_split('[:,]', $title); list ($highCelsius, $highFarenheit) = explode('(' , $maxTemp); list ($lowCelsius, $lowFarenheit) = explode('(', $minTemp); var_dump($day, $forecast, $maxTitle, $maxTemp, $minTitle, $minTemp);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key 1 in /in/cO04F on line 5 Warning: Undefined array key 2 in /in/cO04F on line 5 Warning: Undefined array key 3 in /in/cO04F on line 5 Warning: Undefined array key 4 in /in/cO04F on line 5 Warning: Undefined array key 5 in /in/cO04F on line 5 Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /in/cO04F on line 6 Warning: Undefined array key 1 in /in/cO04F on line 6 Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /in/cO04F on line 7 Warning: Undefined array key 1 in /in/cO04F on line 7 string(85) "Wednesday: light rain, Max Temp: 7&#xB0;C (45&#xB0;F), Min Temp: 3&#xB0;C (37&#xB0;F)" NULL NULL NULL NULL NULL

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:
42.39 ms | 402 KiB | 8 Q