3v4l.org

run code in 300+ PHP versions simultaneously
<?php $classes = get_declared_classes(); $enums = array_filter( $classes, enum_exists(...) ); var_dump( $enums );
Output for git.master_jit, git.master
array(4) { [49]=> string(20) "Dom\AdjacentPosition" [162]=> string(23) "Random\IntervalBoundary" [187]=> string(16) "PropertyHookType" [190]=> string(12) "RoundingMode" }

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:
29.79 ms | 405 KiB | 5 Q