3v4l.org - online PHP & HHVM shell, execute code in 100+ different versions!

based on g8uNF
Output for 5.1.0 - 5.5.1
2
Output for 4.3.1 - 5.0.5
1