3v4l.org

run code in 300+ PHP versions simultaneously
<?php $paintings = [ ["24ef9-70076-4358c-48386.jpg", "La Donna Gravida", "649"], ["a7972-065a9-4c0f9-723d1.jpg", "Madonna and Child with the Book", "1254"], ["b054c-df208-0f600-e884e.jpg", "Madonna del Granduca", "1457"] ]; $painting = 'a7972-065a9-4c0f9-723d1.jpg'; var_export( array_values( array_filter( $paintings, fn($row) => $row[0] !== $painting ) ) );
Output for git.master, git.master_jit
array ( 0 => array ( 0 => '24ef9-70076-4358c-48386.jpg', 1 => 'La Donna Gravida', 2 => '649', ), 1 => array ( 0 => 'b054c-df208-0f600-e884e.jpg', 1 => 'Madonna del Granduca', 2 => '1457', ), )

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:
26.89 ms | 405 KiB | 5 Q