3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array( 'report_id' => (int) $r['report_id'], 'openDate' => self::isoDate($r['open_date']? $r['open_date'] : '2015-09-08 12:06:00'), 'openedBy' => $r['opened_by']? (int) $r['opened_by'] : 42, 'response' => array( 'text' => $r['answer'], 'creationDate' => self::isoDate($r['answer_date']), 'author' => (int) $r['account_id'] ), 'credits' => array( 'member_id' => (int) $r['member_id'], 'campaign_id' => (int) $r['project_id'], 'category' => (empty($r['points_category']))? 5: 5, 'description' => $r['points_reason'], 'date' => self::isoDate($r['answer_date']), 'amount' => $r['points'] ) ); //if(!empty($r['publish'])) { array_merge ($data, array('published'=> $r['publish'])); //} die(var_dump($data));
Output for git.master, git.master_jit
Warning: Undefined variable $r in /in/9amcW on line 4 Warning: Trying to access array offset on value of type null in /in/9amcW on line 4 Fatal error: Uncaught Error: Cannot access "self" when no class scope is active in /in/9amcW:5 Stack trace: #0 {main} thrown in /in/9amcW on line 5
Process exited with code 255.
Output for rfc.property-hooks
Warning: Undefined variable $r in /in/9amcW on line 4 Warning: Trying to access array offset on null in /in/9amcW on line 4 Fatal error: Uncaught Error: Cannot access "self" when no class scope is active in /in/9amcW:5 Stack trace: #0 {main} thrown in /in/9amcW on line 5
Process exited with code 255.

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