3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function count($arr) { echo "I am called each time.\n"; return count($arr); } } $test = new Test(); $arr = array(1,2,3,4,5); for($i=0; $i < $test->count($arr); ++$i) { echo $arr[$i] . "\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
I am called each time. 1 I am called each time. 2 I am called each time. 3 I am called each time. 4 I am called each time. 5 I am called each time.

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:
43.89 ms | 401 KiB | 8 Q