3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = [[121,159,196],[121,159,196],[121,159,196],[121,159,196],[120,158,195],[119,157,194],[118,156,193],[117,155,192],[119,157,194],[118,156,193],[119,157,194],[121,159,196],[122,160,197],[122,160,197],[123,161,198],[124,162,199],[121,159,196],[122,160,197],[122,160,197],[123,161,198],[123,161,198],[123,161,198],[122,160,197],[122,160,197],[121,159,196],[121,159,196],[121,159,196],[121,159,196],[120,158,195],[120,158,195],[120,158,195],[120,158,195],[117,157,193],[118,158,194],[119,159,195],[119,159,195],[119,159,195],[119,159,195],[120,160,196],[121,161,197],[118,158,194],[118,158,194],[118,158,194],[119,159,195],[120,160,196],[121,161,197],[121,161,197],[120,160,196],[118,158,194],[118,158,194],[118,158,194],[117,157,193],[117,157,193],[117,157,193],[116,156,192],[116,156,192],[117,157,193],[117,157,193],[116,156,192],[117,157,193],[117,157,193],[118,158,194],[120,160,196],[120,160,196],[121,159,196],[121,159,196],[120,158,195],[120,158,195],[120,158,195],[119,157,194],[119,157,194],[119,157,194],[121,159,196],[120,158,195],[119,157,194],[118,156,193],[118,156,193],[119,157,194],[120,158,195],[121,159,196],[121,157,193],[121,157,193],[121,157,193],[121,157,193],[120,156,192],[120,156,192],[120,156,192],[120,156,192],[120,156,192],[121,157,193],[121,157,193],[122,158,194],[122,158,194],[121,157,193],[121,157,193],[120,156,192],[120,156,192],[120,156,192],[121,157,193],[121,157,193],[121,157,193],[121,157,193],[120,156,192],[120,156,192],[121,157,193],[122,158,194],[120,156,192],[120,156,192],[120,156,192],[119,155,191],[120,156,192],[119,155,191],[120,156,192],[121,157,193],[121,157,193],[120,156,192],[120,156,192],[120,156,192],[120,156,192],[119,155,191],[123,159,195],[123,159,195]]; $count_array = []; foreach($array as $item){ $key = json_encode($item); if(!isset($count_array[$key])){ $count_array[$key] =1 ; } else{ $count_array[$key]++; } } foreach ($count_array as $key => $val) { echo $key.": ".$val." times".PHP_EOL; }
Output for rfc.property-hooks, git.master, git.master_jit
[121,159,196]: 14 times [120,158,195]: 10 times [119,157,194]: 8 times [118,156,193]: 4 times [117,155,192]: 1 times [122,160,197]: 6 times [123,161,198]: 4 times [124,162,199]: 1 times [117,157,193]: 8 times [118,158,194]: 8 times [119,159,195]: 5 times [120,160,196]: 5 times [121,161,197]: 3 times [116,156,192]: 3 times [121,157,193]: 15 times [120,156,192]: 19 times [122,158,194]: 3 times [119,155,191]: 3 times [123,159,195]: 2 times

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.83 ms | 1336 KiB | 4 Q