3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myArray = Array ( 0 => 1, 1 => 2, 2 => 0, 3 => 0, 4 => 0, 5 => "", 6 => 0, 7 => "" ); echo array_sum($myArray) / count(array_filter($myArray));
Output for git.master, git.master_jit
1.5
Output for rfc.property-hooks
Warning: array_sum(): Addition is not supported on type string in /in/bs2gU on line 15 Warning: array_sum(): Addition is not supported on type string in /in/bs2gU on line 15 1.5

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