3v4l.org

run code in 500+ PHP versions simultaneously
<?php $data = json_decode('[ {"expiration": "0000-00", "quantity": -50}, {"expiration": "2023-02", "quantity": 100}, {"expiration": "2022-03", "quantity": 50} ]'); // extract 'expiration', remove '0000-00' $data = array_filter(array_column($data, 'expiration'), fn($item) => $item != '0000-00'); sort($data); var_dump(reset($data)); // string(7) "2023-03"
Output for rfc.property-hooks, git.master, git.master_jit
string(7) "2022-03"

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:
38.5 ms | 1262 KiB | 4 Q