3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function takes_array($input) { echo "$input[0] + $input[1] = ", $input[0]+$input[1]; } takes_array("Hello");

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
H + e = Warning: A non-numeric value encountered in /in/LIe75 on line 5 Warning: A non-numeric value encountered in /in/LIe75 on line 5 0
Output for Array change keys
H + e = Warning: A non-numeric value encountered in /in/LIe75 on line 5 Warning: A non-numeric value encountered in /in/LIe75 on line 5 0
Output for Lexical anon
H + e = 0

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