3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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) = split ('[:,]', $title); list ($highCelsius, $highFarenheit) = split ('[(]' , $maxTemp); list ($lowCelsius, $lowFarenheit) = split ('[(]', $minTemp); var_dump($day, $forecast, $maxTitle, $maxTemp, $minTitle, $minTemp);
based on 5stns
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function split() in /in/V1jsK:5 Stack trace: #0 {main} thrown in /in/V1jsK on line 5
Process exited with code 255.
Output for 4.3.0 - 5.2.17, hhvm-3.10.0 - 3.12.0
string(9) "Wednesday" string(11) " light rain" string(9) " Max Temp" string(21) " 7&#xB0;C (45&#xB0;F)" string(9) " Min Temp" string(21) " 3&#xB0;C (37&#xB0;F)"
Output for 5.3.0 - 5.6.28
Deprecated: Function split() is deprecated in /in/V1jsK on line 5 Deprecated: Function split() is deprecated in /in/V1jsK on line 6 Deprecated: Function split() is deprecated in /in/V1jsK on line 7 string(9) "Wednesday" string(11) " light rain" string(9) " Max Temp" string(21) " 7&#xB0;C (45&#xB0;F)" string(9) " Min Temp" string(21) " 3&#xB0;C (37&#xB0;F)"