3v4l.org

run code in 300+ PHP versions simultaneously
<?php $answer_data=["0","1","0"]; $show_data='a:4:{i:0;O:27:"WpProQuiz_Model_AnswerTypes":7:{s:10:"*_answer";s:12:"A . R rahman";s:8:"*_html";b:0;s:10:"*_points";i:1;s:11:"*_correct";b:1;s:14:"*_sortString";s:0:"";s:18:"*_sortStringHtml";b:0;s:10:"*_mapper";N;}i:1;O:27:"WpProQuiz_Model_AnswerTypes":7:{s:10:"*_answer";s:10:"Sonu Nigam";s:8:"*_html";b:0;s:10:"*_points";i:1;s:11:"*_correct";b:0;s:14:"*_sortString";s:0:"";s:18:"*_sortStringHtml";b:0;s:10:"*_mapper";N;}i:2;O:27:"WpProQuiz_Model_AnswerTypes":7:{s:10:"*_answer";s:10:"Lalu Yadav";s:8:"*_html";b:0;s:10:"*_points";i:1;s:11:"*_correct";b:0;s:14:"*_sortString";s:0:"";s:18:"*_sortStringHtml";b:0;s:10:"*_mapper";N;}i:3;O:27:"WpProQuiz_Model_AnswerTypes":7:{s:10:"*_answer";s:14:"Manmohan singh";s:8:"*_html";b:0;s:10:"*_points";i:1;s:11:"*_correct";b:0;s:14:"*_sortString";s:0:"";s:18:"*_sortStringHtml";b:0;s:10:"*_mapper";N;}}'; $user_answer=json_decode($show_data); echo $user_answer[0]->_answer();
Output for git.master, git.master_jit
Warning: Trying to access array offset on value of type null in /in/Vb7RG on line 5 Fatal error: Uncaught Error: Call to a member function _answer() on null in /in/Vb7RG:5 Stack trace: #0 {main} thrown in /in/Vb7RG on line 5
Process exited with code 255.
Output for rfc.property-hooks
Warning: Trying to access array offset on null in /in/Vb7RG on line 5 Fatal error: Uncaught Error: Call to a member function _answer() on null in /in/Vb7RG:5 Stack trace: #0 {main} thrown in /in/Vb7RG 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:
43.18 ms | 401 KiB | 8 Q