3v4l.org

run code in 300+ PHP versions simultaneously
<?php $my_array = array(); $my_array['id'] = 4127 ; $my_array['nick'] = 'Jonas'; $my_array['dte79855545'] = 5; foreach ($my_array as $key => $value) { if (substr ( $key , 0 , 3 )=='dte') { $the_dte_id = substr ( $key , 3); $the_dte_value = $value; } } echo "The dte id is:".$the_dte_id." and the value is ".$the_dte_value; ?>
Output for git.master, git.master_jit, rfc.property-hooks
The dte id is:79855545 and the value is 5

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