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

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