3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo join('<br/>', array_map(function($x) { return sprintf('%.02f', 4+floor($x/12)+$x%12/100); }, range(0, 47)));
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
4.00<br/>4.01<br/>4.02<br/>4.03<br/>4.04<br/>4.05<br/>4.06<br/>4.07<br/>4.08<br/>4.09<br/>4.10<br/>4.11<br/>5.00<br/>5.01<br/>5.02<br/>5.03<br/>5.04<br/>5.05<br/>5.06<br/>5.07<br/>5.08<br/>5.09<br/>5.10<br/>5.11<br/>6.00<br/>6.01<br/>6.02<br/>6.03<br/>6.04<br/>6.05<br/>6.06<br/>6.07<br/>6.08<br/>6.09<br/>6.10<br/>6.11<br/>7.00<br/>7.01<br/>7.02<br/>7.03<br/>7.04<br/>7.05<br/>7.06<br/>7.07<br/>7.08<br/>7.09<br/>7.10<br/>7.11
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /in/5TVNs on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_FUNCTION, expecting ')' in /in/5TVNs on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `')'' in /in/5TVNs on line 3
Process exited with code 255.