3v4l.org

run code in 300+ PHP versions simultaneously
<?php $anonHeight = 169; //Рост Анона $classmates = array( 'Антон' => 172, 'Семен' => 165, 'Лена' => 189, 'Иван' => 171, 'Петр' => 182, 'Сидор' => 176, 'Аня' => 180, 'Таня' => 179, 'Маня' => 171 ); $array = array_filter($classmates, function($classmate) { if ($classmate > 169) { return true; } else { return false; } }); var_dump($array);
Output for git.master, git.master_jit, rfc.property-hooks
array(8) { ["Антон"]=> int(172) ["Лена"]=> int(189) ["Иван"]=> int(171) ["Петр"]=> int(182) ["Сидор"]=> int(176) ["Аня"]=> int(180) ["Таня"]=> int(179) ["Маня"]=> int(171) }

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:
27.33 ms | 406 KiB | 5 Q