3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Levenshteinable { public function __call($name, $arguments) { $levenshteins = []; foreach (get_class_methods(static::class) as $method) { $levenshteins[$method] = levenshtein($method, $name); } return [$this, array_search(min($levenshteins), $levenshteins)](...$arguments); } } class LevenshteinableDateTime extends DateTime { use Levenshteinable; } $dt = new LevenshteinableDateTime; echo $dt->fomrat('r');
Output for git.master, git.master_jit, rfc.property-hooks
Wed, 26 Jul 2017 03:13:44 +0200

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:
60.69 ms | 401 KiB | 8 Q