3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = "FREQ=WEEKLY;UNTIL=20170728T080000Z;BYDAY=MO,TU,WE,TH,FR"; preg_match_all('~(\w+)=([^;]+)~', $str, $matches); [$freq, $until, $byday] = $matches[2]; echo $freq, " ", $until, " ", $byday;
Output for 7.1.0 - 7.3.0rc3
WEEKLY 20170728T080000Z MO,TU,WE,TH,FR
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.0.20
Parse error: syntax error, unexpected '=' in /in/T2UhW on line 5
Process exited with code 255.
Output for hhvm-3.15.4
Fatal error: Uncaught Error: syntax error, unexpected '=' in /in/T2UhW:5 Stack trace: #0 {main}
Process exited with code 255.