3v4l.org

run code in 300+ PHP versions simultaneously
<?php $enToCz = [ 'Monday' => 'Pondělí', 'Tuesday' => 'Úterý' ]; $data = [ ['tutor_name' => 'John Doe', 'course_day' => 'Monday',], ['tutor_name' => 'John Doe', 'course_day' => 'Tuesday',] ]; var_export( array_map( fn($row) => $row + ['course_day_cz' => $enToCz[$row['course_day']]], $data ) );
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => array ( 'tutor_name' => 'John Doe', 'course_day' => 'Monday', 'course_day_cz' => 'Pondělí', ), 1 => array ( 'tutor_name' => 'John Doe', 'course_day' => 'Tuesday', 'course_day_cz' => 'Úterý', ), )

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:
78.55 ms | 406 KiB | 5 Q