3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump("3,000,000 bananes" + "2 000 000 parpaings");

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Typed properties v2
Notice: A non well formed numeric value encountered in /in/A10k1 on line 3 Notice: A non well formed numeric value encountered in /in/A10k1 on line 3 int(5)
Output for Arrow functions
Notice: A non well formed numeric value encountered in /in/A10k1 on line 3 Notice: A non well formed numeric value encountered in /in/A10k1 on line 3 int(5)
Output for Object typehint
Notice: A non well formed numeric value encountered in /in/A10k1 on line 3 Notice: A non well formed numeric value encountered in /in/A10k1 on line 3 int(5)
Output for Array change keys
Notice: A non well formed numeric value encountered in /in/A10k1 on line 3 Notice: A non well formed numeric value encountered in /in/A10k1 on line 3 int(5)
Output for Lexical anon
int(5)

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page