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 ('[:,]', $weather); list ($highCelsius, $highFarenheit) = split ('[(]' , $maxTemp); list ($lowCelsius, $lowFarenheit) = split ('[(]', $minTemp); var_dump($day, $forecast, $maxTitle, $maxTemp, $minTitle, $minTemp);
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function split() in /in/5stns:5 Stack trace: #0 {main} thrown in /in/5stns on line 5
Process exited with code 255.
Output for 5.3.0 - 5.6.28
Notice: Undefined variable: weather in /in/5stns on line 5 Deprecated: Function split() is deprecated in /in/5stns on line 5 Notice: Undefined offset: 5 in /in/5stns on line 5 Notice: Undefined offset: 4 in /in/5stns on line 5 Notice: Undefined offset: 3 in /in/5stns on line 5 Notice: Undefined offset: 2 in /in/5stns on line 5 Notice: Undefined offset: 1 in /in/5stns on line 5 Deprecated: Function split() is deprecated in /in/5stns on line 6 Notice: Undefined offset: 1 in /in/5stns on line 6 Deprecated: Function split() is deprecated in /in/5stns on line 7 Notice: Undefined offset: 1 in /in/5stns on line 7 string(0) "" NULL NULL NULL NULL NULL
Output for 5.0.4 - 5.2.17
Notice: Undefined variable: weather in /in/5stns on line 5 Notice: Undefined offset: 5 in /in/5stns on line 5 Notice: Undefined offset: 4 in /in/5stns on line 5 Notice: Undefined offset: 3 in /in/5stns on line 5 Notice: Undefined offset: 2 in /in/5stns on line 5 Notice: Undefined offset: 1 in /in/5stns on line 5 Notice: Undefined offset: 1 in /in/5stns on line 6 Notice: Undefined offset: 1 in /in/5stns on line 7 string(0) "" NULL NULL NULL NULL NULL
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: weather in /in/5stns on line 5 Notice: Undefined offset: 5 in /in/5stns on line 5 Notice: Undefined offset: 4 in /in/5stns on line 5 Notice: Undefined offset: 3 in /in/5stns on line 5 Notice: Undefined offset: 2 in /in/5stns on line 5 Notice: Undefined offset: 1 in /in/5stns on line 5 Notice: Undefined offset: 1 in /in/5stns on line 6 Notice: Undefined offset: 1 in /in/5stns on line 7 string(0) "" NULL NULL NULL NULL NULL