3v4l.org

run code in 300+ PHP versions simultaneously
<?php $my_employees_1 = array ( "Bob" => "37", "Jane" => 22, "Tom" => 58, "Amanda" => 41 ); $my_employees_2=$my_employees_1; asort($my_employees_2); $my_employees_3 =$my_employees_1; ksort($my_employees_3); foreach($my_employees_2 as $a => $v); { print ("<p>Employee $a is $v years old</p>"); } // foreach($my_employees_3 as $a => $v); { print ("<p>Employee $a is $v years old</p>"); }// print the elements of my_employees_3 ?>
Output for git.master, git.master_jit, rfc.property-hooks
<p>Employee Tom is 58 years old</p><p>Employee Tom is 58 years old</p>

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.91 ms | 401 KiB | 8 Q