3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php /** Takes an array of users and adds them to the database */ public function addUsers( $users ) { $users = (array)$users; foreach ( $users as $user ) { $user = is_int( $user ) ? User::newFromId( $user ) : is_string( $user ) ? User::newFromName( $user ) : ( $user instanceof User ) ? $user : null; if ( $user ) { $user->addToDatabase(); } } }
Output for 5.4.0 - 5.4.29
Parse error: syntax error, unexpected 'public' (T_PUBLIC) in /in/cOKfb on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_PUBLIC in /in/cOKfb on line 3
Process exited with code 255.