3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hoge = array(5,5,3,2,1,3); $hogehoge = array_map(function($arg){ if($arg[0] > 1){ return $arg; } },array_count_values($hoge)); var_dump($hogehoge);
Output for git.master, git.master_jit
Warning: Trying to access array offset on value of type int in /in/OIpdT on line 4 Warning: Trying to access array offset on value of type int in /in/OIpdT on line 4 Warning: Trying to access array offset on value of type int in /in/OIpdT on line 4 Warning: Trying to access array offset on value of type int in /in/OIpdT on line 4 array(4) { [5]=> NULL [3]=> NULL [2]=> NULL [1]=> NULL }
Output for rfc.property-hooks
Warning: Trying to access array offset on int in /in/OIpdT on line 4 Warning: Trying to access array offset on int in /in/OIpdT on line 4 Warning: Trying to access array offset on int in /in/OIpdT on line 4 Warning: Trying to access array offset on int in /in/OIpdT on line 4 array(4) { [5]=> NULL [3]=> NULL [2]=> NULL [1]=> NULL }

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