3v4l.org

run code in 500+ PHP versions simultaneously
<?php $data = '{"data":"key=IAfpK, age=58, key=WNVdi, age=64, key=jp9zt, age=47"}'; preg_match_all('/(?:age=)([0-9]+)/', json_decode($data)->data, $matches, PREG_PATTERN_ORDER); if (array_key_exists(1, $matches)) { $greaterThan50 = array_filter($matches[1], function($age) { return intval($age) > 50; }); var_dump($greaterThan50); }
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { [0]=> string(2) "58" [1]=> string(2) "64" }

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:
48.42 ms | 1122 KiB | 4 Q