3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tab = "78, 60, 62, 68, 71, 68, 73, 85, 66, 64, 76, 63, 81, 76, 73, 68, 72, 73, 75, 65, 74, 63, 67, 65, 64, 68, 73, 75, 79, 73"; $tab = explode(',', $tab); echo 'Srednia: ' . $srednia = array_sum($tab)/count($tab) . '/n'; sort($tab); for ($i = 0; $i<=6; $i++) { echo $tab[$i]; } echo '\n'; for ($i = count($tab)-7; $i<=count($tab); $i++) { echo $tab[$i]; }
Output for git.master, git.master_jit, rfc.property-hooks
Srednia: 70.6/n 60 62 63 63 64 64 65\n 75 76 7678 79 81 85 Warning: Undefined array key 30 in /in/V5fc7 on line 15

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