3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dates = [ '2022-10-23' => '2022-10-23', '2022-10-24' => '2022-10-24', '2022-10-25' => '2022-10-25', '2022-10-26' => '2022-10-26', '2022-10-27' => '2022-10-27', '2022-10-28' => '2022-10-28', '2022-10-29' => '2022-10-29' ]; $rows = [ '2022-10-24' => [ 'id' => 11, 'user_id' => 1, 'notitie' => 'Mag al helemaal niet', 'datum' => '2022-10-24', 'user_role' => 'client' ], '2022-10-26' => [ 'id' => 15, 'user_id' => 1, 'notitie' => 26, 'datum' => '2022-10-26', 'user_role' => 'client' ], ]; var_export( array_map( fn($v) => $rows[$v] ?? [], $dates ) );
Output for rfc.property-hooks, git.master, git.master_jit
array ( '2022-10-23' => array ( ), '2022-10-24' => array ( 'id' => 11, 'user_id' => 1, 'notitie' => 'Mag al helemaal niet', 'datum' => '2022-10-24', 'user_role' => 'client', ), '2022-10-25' => array ( ), '2022-10-26' => array ( 'id' => 15, 'user_id' => 1, 'notitie' => 26, 'datum' => '2022-10-26', 'user_role' => 'client', ), '2022-10-27' => array ( ), '2022-10-28' => array ( ), '2022-10-29' => array ( ), )

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:
50.14 ms | 1347 KiB | 4 Q