3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $levels = [0, 24999, 49999, 74999, 9999, 124999]; myallcreadits = 60000; $result = max(array_filter($levels, function($x) use ($myallcreadits) { return $x<$myallcreadits; })); $details='<div id="$result">'.$result.'</div>'; echo $details;
Output for 5.4.0 - 5.5.6
Parse error: syntax error, unexpected '=' in /in/hsm64 on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected '[' in /in/hsm64 on line 2
Process exited with code 255.