3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(Array('b','d'), Array('c','a'), Array('b','d'), Array('a','d'), Array('c'), Array('c'), Array('a','d','e'), Array('d','b') ); function array_count_values_of($value, $array) { $counts = array_count_values($array); return $counts[$value]; } for($i=0 ; $i<count($array2) ; $i++) { $temp = array_count_values_of($array2[$i], $array); $result[$i][0] = $array2[$i]; $result[$i][1] = $temp; } print_r($result);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $array2 in /in/QDEjI on line 16 Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /in/QDEjI:16 Stack trace: #0 {main} thrown in /in/QDEjI on line 16
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:
35.54 ms | 401 KiB | 8 Q