3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = new ArrayIterator(get_declared_classes()); $function = function($value, $key, $iterator) { return strpos($value, 'Exception'); }; $bar = new CallbackFilterIterator($foo, $function); echo 'Only Exceptions:' . PHP_EOL; foreach ($bar as $class) { echo $class . PHP_EOL; }
Output for git.master, git.master_jit
Only Exceptions: ErrorException ClosedGeneratorException DOMException JsonException LogicException BadFunctionCallException BadMethodCallException DomainException InvalidArgumentException LengthException OutOfRangeException RuntimeException OutOfBoundsException OverflowException RangeException UnderflowException UnexpectedValueException PDOException Random\RandomException ReflectionException PharException IntlException
Output for rfc.property-hooks
Only Exceptions: ErrorException ClosedGeneratorException DateException DateInvalidTimeZoneException DateInvalidOperationException DateMalformedStringException DateMalformedIntervalStringException DateMalformedPeriodStringException DOMException JsonException LogicException BadFunctionCallException BadMethodCallException DomainException InvalidArgumentException LengthException OutOfRangeException RuntimeException OutOfBoundsException OverflowException RangeException UnderflowException UnexpectedValueException PDOException Random\RandomException ReflectionException PharException IntlException

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:
76.45 ms | 402 KiB | 8 Q