3v4l.org

run code in 300+ PHP versions simultaneously
<?php $petr=array(1,2,4,5,6,8,4,7,5,6,3); function bazar($cyfr){ return ($cyfr & 2); } $petr_fil=array_filter($petr, bazar); print_r($petr); print_r($petr_fil);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Undefined constant "bazar" in /in/EmsSU:9 Stack trace: #0 {main} thrown in /in/EmsSU on line 9
Process exited with code 255.

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.11 ms | 401 KiB | 8 Q