3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function readLogs($rows = 5) { $contents = "Hey how are you\nI'm good how are you\nGood nice to meet you\nWhat are you doing?\nNothing much, you?"; $rows = explode('\n', $contents); $rows_len = count($rows); echo $rows; }
Output for 4.3.0 - 7.2.0