3v4l.org

run code in 300+ PHP versions simultaneously
<?php $postarr = array('_parent_id' => null, '_year' => 2013); $data['post_type'] = "easy-photo-album"; if(!isset($postarr)){ print_r($data); } if($data['post_type'] == 'easy-photo-album') { $title = 'Undefined album'; if(isset($postarr['_parent_id']) && !empty($postarr['_parent_id'])){ $event = get_post($postarr['_parent_id']); $title = $event->post_title; } $title .= ' ['.$postarr['_year'].']'; $data['post_title'] = $title; } print_r($data);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [post_type] => easy-photo-album [post_title] => Undefined album [2013] )

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