3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $output = fopen('php://output', 'w'); $data = fputcsv($output, ['a:3:{s:4:"type";i:3;s:8:"platform";s:10:"flirchi.ru";s:13:"channel_login";s:10:"flirchi.ru";}', 'ab"c']); $s = str_getcsv('a:5:{s:4:""type"";s:1:""3"";s:5:""price"";d:12;s:6:""period"";s:2:""30"";s:8:""platform"";s:14:""id.flirchi.com"";s:13:""channel_login"";s:11:""flirchi.com"";}'); var_dump($output); var_dump($s);
Output for 5.4.0 - 5.6.28, 7.0.0 - 7.1.0
"a:3:{s:4:""type"";i:3;s:8:""platform"";s:10:""flirchi.ru"";s:13:""channel_login"";s:10:""flirchi.ru"";}","ab""c" resource(5) of type (stream) array(1) { [0]=> string(159) "a:5:{s:4:""type"";s:1:""3"";s:5:""price"";d:12;s:6:""period"";s:2:""30"";s:8:""platform"";s:14:""id.flirchi.com"";s:13:""channel_login"";s:11:""flirchi.com"";}" }
Output for hhvm-3.10.0 - 3.12.0
"a:3:{s:4:""type"";i:3;s:8:""platform"";s:10:""flirchi.ru"";s:13:""channel_login"";s:10:""flirchi.ru"";}","ab""c" resource(4) of type (stream) array(1) { [0]=> string(159) "a:5:{s:4:""type"";s:1:""3"";s:5:""price"";d:12;s:6:""period"";s:2:""30"";s:8:""platform"";s:14:""id.flirchi.com"";s:13:""channel_login"";s:11:""flirchi.com"";}" }
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/AEgda on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[' in /in/AEgda on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/AEgda on line 4
Process exited with code 255.