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(json_decode('\u041d\u0435\u043b\u044c\u0437\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0441\u0435\u0431\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435'));
Output for 5.4.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" NULL
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/OP1qp 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/OP1qp on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/OP1qp on line 4
Process exited with code 255.