3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function v1($data) { $data = str_replace("\r", '', $data); $data = explode("\n", $data); foreach ($data as $line) { if (isset($line[0]) && $line[0] === '.') { $line = '.' . $line; } //send } } $data = str_repeat("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\r\n", 100000); v1($data);
Output for 4.3.3 - 4.4.9, 5.0.2 - 7.1.0, 7.1.6 - 7.1.7, 7.2.0
Output for 7.1.5, 7.1.10

Process exited with code 137.
Output for 4.3.0 - 4.3.2, 5.0.0 - 5.0.1
Notice: Uninitialized string offset: 0 in /in/vfrZj on line 7