3v4l.org

run code in 500+ PHP versions simultaneously
<?php $summary = [ "person1" => [ 'question1' => '3', 'question2' => '5' ], "person2" => [ 'question1' => '2', 'question2' => '3' ], "person3" => [ 'question1' => '1', 'question2' => '2' ] ]; var_export( array_map(fn($questions) => ['questions' => array_sum($questions)], $summary) );
Output for rfc.property-hooks, git.master, git.master_jit
array ( 'person1' => array ( 'questions' => 8, ), 'person2' => array ( 'questions' => 5, ), 'person3' => array ( 'questions' => 3, ), )

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.03 ms | 1283 KiB | 4 Q