3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = 'lorem lis pum'; for( $i = 0, $ilen = strlen( $input ), $result = array(); $i < $ilen; $i++ ) { $chr = $input[ $i ]; if( $chr === ' ' ) { $chr = '_'; } $result[ $chr ] = isset( $result[ $chr ] ) ? $result[ $chr ] + 1 : 1; } var_dump( $result );
Output for git.master, git.master_jit, rfc.property-hooks
array(10) { ["l"]=> int(2) ["o"]=> int(1) ["r"]=> int(1) ["e"]=> int(1) ["m"]=> int(2) ["_"]=> int(2) ["i"]=> int(1) ["s"]=> int(1) ["p"]=> int(1) ["u"]=> int(1) }

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