3v4l.org

run code in 500+ PHP versions simultaneously
<?php $foo = [ '50/2021-10-31@2', '93/2021-11-14@2', '300/2022-02-14@2', ]; $bar = '2021-11-12'; $getTransitos = fn(string $test, array $values) => sscanf(array_values(array_filter( $values, fn($value) => strpos($value, $test) ))[0] ?? '', '%d/')[0] ?? null; var_dump($getTransitos($bar, $foo));
Output for rfc.property-hooks, git.master, git.master_jit
NULL

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:
43.65 ms | 1388 KiB | 4 Q