3v4l.org

run code in 300+ PHP versions simultaneously
<?php class One { public function first() { echo "1"; } protected function second() { echo "2"; } private function third() { echo "3"; } public function main() { $mid = array(3, 4); echo 4; array_reduce($mid, function ($key, $val) { $this->first(); $this->second(); $this->third(); }); } } $one = new One; $one->main();
Output for git.master, git.master_jit, rfc.property-hooks
4123123

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

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


preferences:
40.32 ms | 401 KiB | 8 Q