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) = 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.0.20, 7.1.0 - 7.1.20, 7.2.6 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
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.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 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.0.5, 5.1.0 - 5.1.6, 5.2.0 - 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 - 4.3.11, 4.4.0 - 4.4.9, 5.0.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

preferences:
198.31 ms | 402 KiB | 308 Q