3v4l.org

run code in 200+ PHP versions simultaneously
<?php !print "Line 1\n". !print "Line 2\n". !print "Line 3\n". !print "Line 4\n";

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
Line 4 Line 3 Line 2 Line 1
Output for Arrow functions
Line 4 Line 3 Line 2 Line 1
Output for Object typehint
Line 4 Line 3 Line 2 Line 1
Output for Array change keys
Line 4 Line 3 Line 2 Line 1
Output for Lexical anon
Line 4 Line 3 Line 2 Line 1

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