3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $files = glob("/tmp/sess_*"); $users = array(); foreach( $files as $file ){ $owner = fileowner($file); $user = posix_getpwuid($owner); if( !in_array( $user, $users ) ){ $users[] = $user; } foreach( $users as $user ){ $info = str_replace( ' ', ' ', print_r($user,true) ); echo nl2br($info); } ?>
Output for 5.4.0 - 5.4.28
Parse error: syntax error, unexpected end of file in /in/7gJHM on line 15
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end in /in/7gJHM on line 15
Process exited with code 255.