3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array ( 0 => array ( 0 => '1', 1 => '2', 2 => '3', 3 => '4', 4 => '5', 5 => '6', 6 => '7', 7 => '8', 8 => '9', 9 => '10', 10 => '11', 11 => '12', 12 => '13', 13 => '14', 14 => '15', 15 => '16', 16 => '17', 17 => '18', 18 => '19', 19 => '20', 20 => '21', 21 => '22', 22 => '23', 23 => '24', 24 => '25', 25 => '26', 26 => '27', 27 => '28', 28 => '29', 29 => '30', 30 => '31', 31 => '32', 32 => '33', 33 => '34', 34 => '36', 35 => '37', 36 => '38', 37 => '39', 38 => '40', 39 => '41', 40 => '42', 41 => '43', 42 => '44', 43 => '45', 44 => '46', 45 => '47', 46 => '48', 47 => '49', 48 => '50', 49 => '51', 50 => '52', 51 => '53', 52 => '54', 53 => '58', 54 => '60', 55 => '61', 56 => '65', 57 => '66', 58 => '67', 59 => '78', 60 => '86', 61 => '87', 62 => '88', 63 => '89', 64 => '90', 65 => '92', 66 => '93', 67 => '94', 68 => '95', 69 => '96', 70 => '97', 71 => '98', 72 => '99', 73 => '100', 74 => '101', 75 => '102', 76 => '103', 77 => '104', 78 => '105', 79 => '106', 80 => '107', 81 => '109', 82 => '110', 83 => '118', 84 => '119', 85 => '129', 86 => '130', 87 => '131', 88 => '132', 89 => '133', 90 => '134', 91 => '136', 92 => '137', 93 => '139', 94 => '144', 95 => '145', 96 => '146', 97 => '147', 98 => '148', 99 => '149', 100 => '150', 101 => '151', 102 => '152', 103 => '153', 104 => '156', 105 => '157', 106 => '165', 107 => '166', 108 => '167', 109 => '168', 110 => '169', 111 => '170', 112 => '171', 113 => '172', 114 => '173', 115 => '174', 116 => '177', 117 => '178', 118 => '179', 119 => '180', 120 => '181', 121 => '182', 122 => '183', 123 => '184', 124 => '185', 125 => '186', 126 => '187', 127 => '188', 128 => '189', 129 => '190', 130 => '191', 131 => '192', 132 => '193', ), 1 => array ( 0 => '', 1 => '', 2 => '', 3 => 'Personally Servicing Ladies In Need.', 4 => '', 5 => '', 6 => '', 7 => 'A Corporation whose main aim is to kill as many anti-Fb coders as they can, using their scorpion stings.', 8 => '', 9 => 'Makes Windows/Linux computers. We offer a bunch of stuff: monitors, towers, servers, printers, faxers, and more...\\r\\nOur computer towers come with a maximum of 5 TERABYTES (5120 gigs)!', 10 => '', 11 => '', 12 => '', 13 => 'An International Chaordic Conglomerate Collective. Chardic = Bringing Order out of Chaos. We model our business practices after natural chaotic manifestations such as weather patterns, evolution and plate techtonics. We feel this will allow us to grow and face any and all challenges and eventually outstrip all others and become the only corporation left on earth. God Corp. ', 14 => '', 15 => '', 16 => '', 17 => '', 18 => 'Uh...Well, we sell stuff.', 19 => 'Producer of mentants.', 20 => 'We make things.', 21 => '', 22 => '', 23 => '', 24 => 'A corporation that has been build by a family that believe that they were descendants of the great Pharaoh Zilfa, the head of the family, the young and ambitious Zilfa Fi-Ramn believe that with the power of the Fi-Ramn family in the new world of this corporation utopia will bring glorious achievements like their Nile descendants.', 25 => 'We\'re making money ^^.', 26 => '', 27 => 'Retro Computer Game Company.', 28 => 'We ROCK!! Literally =) The Best Corporation Ever Seen in the World! ! ! All Rights Reserved to Arthur Gebhard (future game programmer u.u\\\\\\", in university this year).....Made in Brasil....BRASIL É NÓIS!', 29 => 'If I cannot break it, I cannot repair it.', 30 => '', 31 => 'Protection from the demons that haunt the streets at night.', 32 => '', 33 => '', 34 => NULL, 35 => '', 36 => '', 37 => '', 38 => '', 39 => '', 40 => 'We make cool things. ', 41 => ':P', 42 => '', 43 => '', 44 => '', 45 => '', 46 => NULL, 47 => NULL, 48 => 'We all eat babies.', 49 => '', 50 => '', 51 => 'It\'s a nice place to go', 52 => NULL, 53 => NULL, 54 => NULL, 55 => NULL, 56 => NULL, 57 => NULL, 58 => NULL, 59 => NULL, 60 => NULL, 61 => NULL, 62 => NULL, 63 => NULL, 64 => NULL, 65 => NULL, 66 => NULL, 67 => NULL, 68 => NULL, 69 => NULL, 70 => NULL, 71 => NULL, 72 => NULL, 73 => NULL, 74 => NULL, 75 => NULL, 76 => NULL, 77 => NULL, 78 => NULL, 79 => NULL, 80 => NULL, 81 => NULL, 82 => NULL, 83 => NULL, 84 => NULL, 85 => NULL, 86 => NULL, 87 => NULL, 88 => NULL, 89 => NULL, 90 => NULL, 91 => NULL, 92 => NULL, 93 => NULL, 94 => NULL, 95 => NULL, 96 => NULL, 97 => NULL, 98 => NULL, 99 => NULL, 100 => NULL, 101 => NULL, 102 => NULL, 103 => NULL, 104 => NULL, 105 => NULL, 106 => NULL, 107 => NULL, 108 => NULL, 109 => NULL, 110 => NULL, 111 => NULL, 112 => NULL, 113 => NULL, 114 => NULL, 115 => NULL, 116 => NULL, 117 => NULL, 118 => NULL, 119 => NULL, 120 => NULL, 121 => NULL, 122 => NULL, 123 => NULL, 124 => NULL, 125 => NULL, 126 => NULL, 127 => NULL, 128 => NULL, 129 => NULL, 130 => NULL, 131 => NULL, 132 => NULL, ), 2 => array ( 0 => '48290803190', 1 => '30000', 2 => '30000', 3 => '30000', 4 => '30000', 5 => '30000', 6 => '30000', 7 => '20000', 8 => '30000', 9 => '30000', 10 => '30000', 11 => '30000', 12 => '30000', 13 => '30000', 14 => '30000', 15 => '30000', 16 => '30000', 17 => '30000', 18 => '30000', 19 => '30000', 20 => '30000', 21 => '30000', 22 => '30000', 23 => '30000', 24 => '30000', 25 => '30000', 26 => '30000', 27 => '30000', 28 => '30000', 29 => '30000', 30 => '30000', 31 => '30000', 32 => '30000', 33 => '30000', 34 => '30000', 35 => '30000', 36 => '30000', 37 => '30000', 38 => '30000', 39 => '30000', 40 => '30000', 41 => '30000', 42 => '59', 43 => '30000', 44 => '30000', 45 => '30000', 46 => '30000', 47 => '30000', 48 => '30000', 49 => '4', 50 => '30000', 51 => '30000', 52 => '30000', 53 => '30000', 54 => '30000', 55 => '30000', 56 => '30000', 57 => '30000', 58 => '30000', 59 => '30000', 60 => '30000', 61 => '30000', 62 => '30000', 63 => '5', 64 => '263', 65 => '30000', 66 => '0', 67 => '25300', 68 => '30000', 69 => '30000', 70 => '30000', 71 => '30000', 72 => '30000', 73 => '30000', 74 => '30000', 75 => '30000', 76 => '30000', 77 => '30000', 78 => '30000', 79 => '30000', 80 => '30000', 81 => '7', 82 => '1', 83 => '29600', 84 => '29600', 85 => '30000', 86 => '29900', 87 => '30000', 88 => '3', 89 => '30000', 90 => '30000', 91 => '29900', 92 => '28900', 93 => '0', 94 => '25260', 95 => '1', 96 => '30000', 97 => '30000', 98 => '30000', 99 => '30000', 100 => '30000', 101 => '7', 102 => '12', 103 => '30000', 104 => '30000', 105 => '30000', 106 => '30000', 107 => '0', 108 => '397173092', 109 => '2072215334', 110 => '30000', 111 => '30000', 112 => '30000', 113 => '30000', 114 => '6000', 115 => '300000', 116 => '90', 117 => '30000', 118 => '100', 119 => '6000', 120 => '30000', 121 => '3590150', 122 => '54779240', 123 => '8443450', 124 => '30000', 125 => '70373350', 126 => '2400', 127 => '5200', 128 => '1000', 129 => '30000', 130 => '3255550', 131 => '30000', 132 => '7135531474', ), 3 => array ( 0 => 'Agacorp', 1 => 'Mysoft Inc.', 2 => 'Robolordz.deth', 3 => 'Elite Escort Services', 4 => 'Crashmaster LLC', 5 => 'Stevecorp', 6 => 'WDC', 7 => 'Scorpsoft', 8 => 'The people who make good games', 9 => 'Emperor Computers', 10 => 'stylin\'s corporation', 11 => 'Joth Esmo Enterprises', 12 => 'selfstyled masters of the univ', 13 => 'God Corp Ltd.', 14 => 'Empire', 15 => 'Rebels R Us', 16 => 'Yoshimo Inc', 17 => 'Tarova Corp.', 18 => 'Kunde Corp.', 19 => 'Nico Bella', 20 => 'Bloogton Inc.', 21 => 'Mothworks', 22 => 'Searnas', 23 => 'Abulf', 24 => 'Sobek\'s Ankh Corp.', 25 => 'noonescorp', 26 => 'Banco Maua Cia.', 27 => 'Bazosoft', 28 => 'Kallon Games Inc.', 29 => 'Niemps Repair Company', 30 => 'Tinkerbell Co.', 31 => 'NightPro Corp.', 32 => 'HexCorp', 33 => 'October Corporation', 34 => 'non', 35 => 'inimino', 36 => 'Vongard alliance', 37 => 'AnoCorp', 38 => 'Battlecorp', 39 => 'crap', 40 => 'Tycarian Industries', 41 => 'TbbW', 42 => 'Agas Babys Mamma LLC', 43 => 'MokaLife', 44 => 'Slugs', 45 => 'Titanic', 46 => 'Azk', 47 => '123', 48 => 'Egg', 49 => 'Public', 50 => 'DudeMix', 51 => 'Saxen', 52 => 'Indanedione', 53 => 'wefwef', 54 => 'Foozle', 55 => 'flying lobsters', 56 => 'macrosoft', 57 => 'Vyker PLC', 58 => 'Muds Magical Emporium', 59 => 'rnxx', 60 => 'Knight Enterprises', 61 => 'asshat, inc', 62 => 'Hell Inc.', 63 => 'The Cute Goats', 64 => 'AntiAgaCorp', 65 => 'Widgets Inc.', 66 => 'orange', 67 => 'RandCorp', 68 => 'Tron', 69 => 'Financiers', 70 => 'Aerocity', 71 => 'moosedoom corp', 72 => 'test corp', 73 => 'Magical Ponies LTD', 74 => 'Bolt Inc.', 75 => 'Monstropoly', 76 => 'Cleanercorp', 77 => 'Bug Inc', 78 => 'ballsmcgeeinc', 79 => 'vincent\'s corporation', 80 => 'az blue\'s corporation', 81 => 'ToysForever', 82 => 'VOLEFLOWER', 83 => 'Massive Dynamic', 84 => 'Crafty', 85 => 'PlunnDarr', 86 => 'tatayoyo', 87 => 'LJ Corp', 88 => 'Yeti Slave Corp 3001', 89 => 'gbcorp', 90 => 'Dested', 91 => 'DerpCo', 92 => 'Moneybags Holdings', 93 => 'SetusUpTheBomb', 94 => 'Quills and Sofas', 95 => 'Bank', 96 => 'Mafia Corp', 97 => 'GixBox', 98 => 'ArmenCorp', 99 => 'poiu', 100 => 'pigpen', 101 => 'TesaCorp', 102 => 'Bubble Corp', 103 => 'DingoAteMyBaby', 104 => 'Hess International', 105 => 'InstaCorp', 106 => 'Emay', 107 => 'Gorlami', 108 => 'Empire_IR', 109 => 'SynTech', 110 => 'Fred AG', 111 => 'nishant', 112 => 'OllyCorp', 113 => 'Aberrant Industries, Inc.', 114 => 'evoshell', 115 => 'blackmoondevGames', 116 => 'Agacorp 3', 117 => 'pr0di', 118 => 'amitp', 119 => 'walmart', 120 => 'ppy corp', 121 => 'Schmoigl', 122 => 'Synesthesia Industries', 123 => 'The pros', 124 => 'unstoppable inc', 125 => 'Apple', 126 => 'MyCorp', 127 => 'Line', 128 => 'Corporation', 129 => 'C.E. Stendall', 130 => 'agcorp4', 131 => 'Agacorp 5', 132 => 'centcorp', ), ); echo json_encode ($a); echo "test"; ?>
Output for 5.2.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
[["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","58","60","61","65","66","67","78","86","87","88","89","90","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","109","110","118","119","129","130","131","132","133","134","136","137","139","144","145","146","147","148","149","150","151","152","153","156","157","165","166","167","168","169","170","171","172","173","174","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193"],["","","","Personally Servicing Ladies In Need.","","","","A Corporation whose main aim is to kill as many anti-Fb coders as they can, using their scorpion stings.","","Makes Windows\/Linux computers. We offer a bunch of stuff: monitors, towers, servers, printers, faxers, and more...\\r\\nOur computer towers come with a maximum of 5 TERABYTES (5120 gigs)!","","","","An International Chaordic Conglomerate Collective. Chardic = Bringing Order out of Chaos. We model our business practices after natural chaotic manifestations such as weather patterns, evolution and plate techtonics. We feel this will allow us to grow and face any and all challenges and eventually outstrip all others and become the only corporation left on earth. God Corp. ","","","","","Uh...Well, we sell stuff.","Producer of mentants.","We make things.","","","","A corporation that has been build by a family that believe that they were descendants of the great Pharaoh Zilfa, the head of the family, the young and ambitious Zilfa Fi-Ramn believe that with the power of the Fi-Ramn family in the new world of this corporation utopia will bring glorious achievements like their Nile descendants.","We're making money ^^.","","Retro Computer Game Company.","We ROCK!! Literally =) The Best Corporation Ever Seen in the World! ! ! All Rights Reserved to Arthur Gebhard (future game programmer u.u\\\\\\\", in university this year).....Made in Brasil....BRASIL \u00c9 N\u00d3IS!","If I cannot break it, I cannot repair it.","","Protection from the demons that haunt the streets at night.","","",null,"","","","","","We make cool things. ",":P","","","","",null,null,"We all eat babies.","","","It's a nice place to go",null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],["48290803190","30000","30000","30000","30000","30000","30000","20000","30000","30000","30000","30000","30000","30000","30000","30000","30000","30000","30000","30000","30000","30000","30000","30000","30000","30000","30000","30000","30000","30000","30000","30000","30000","30000","30000","30000","30000","30000","30000","30000","30000","30000","59","30000","30000","30000","30000","30000","30000","4","30000","30000","30000","30000","30000","30000","30000","30000","30000","30000","30000","30000","30000","5","263","30000","0","25300","30000","30000","30000","30000","30000","30000","30000","30000","30000","30000","30000","30000","30000","7","1","29600","29600","30000","29900","30000","3","30000","30000","29900","28900","0","25260","1","30000","30000","30000","30000","30000","7","12","30000","30000","30000","30000","0","397173092","2072215334","30000","30000","30000","30000","6000","300000","90","30000","100","6000","30000","3590150","54779240","8443450","30000","70373350","2400","5200","1000","30000","3255550","30000","7135531474"],["Agacorp","Mysoft Inc.","Robolordz.deth","Elite Escort Services","Crashmaster LLC","Stevecorp","WDC","Scorpsoft","The people who make good games","Emperor Computers","stylin's corporation","Joth Esmo Enterprises","selfstyled masters of the univ","God Corp Ltd.","Empire","Rebels R Us","Yoshimo Inc","Tarova Corp.","Kunde Corp.","Nico Bella","Bloogton Inc.","Mothworks","Searnas","Abulf","Sobek's Ankh Corp.","noonescorp","Banco Maua Cia.","Bazosoft","Kallon Games Inc.","Niemps Repair Company","Tinkerbell Co.","NightPro Corp.","HexCorp","October Corporation","non","inimino","Vongard alliance","AnoCorp","Battlecorp","crap","Tycarian Industries","TbbW","Agas Babys Mamma LLC","MokaLife","Slugs","Titanic","Azk","123","Egg","Public","DudeMix","Saxen","Indanedione","wefwef","Foozle","flying lobsters","macrosoft","Vyker PLC","Muds Magical Emporium","rnxx","Knight Enterprises","asshat, inc","Hell Inc.","The Cute Goats","AntiAgaCorp","Widgets Inc.","orange","RandCorp","Tron","Financiers","Aerocity","moosedoom corp","test corp","Magical Ponies LTD","Bolt Inc.","Monstropoly","Cleanercorp","Bug Inc","ballsmcgeeinc","vincent's corporation","az blue's corporation","ToysForever","VOLEFLOWER","Massive Dynamic","Crafty","PlunnDarr","tatayoyo","LJ Corp","Yeti Slave Corp 3001","gbcorp","Dested","DerpCo","Moneybags Holdings","SetusUpTheBomb","Quills and Sofas","Bank","Mafia Corp","GixBox","ArmenCorp","poiu","pigpen","TesaCorp","Bubble Corp","DingoAteMyBaby","Hess International","InstaCorp","Emay","Gorlami","Empire_IR","SynTech","Fred AG","nishant","OllyCorp","Aberrant Industries, Inc.","evoshell","blackmoondevGames","Agacorp 3","pr0di","amitp","walmart","ppy corp","Schmoigl","Synesthesia Industries","The pros","unstoppable inc","Apple","MyCorp","Line","Corporation","C.E. Stendall","agcorp4","Agacorp 5","centcorp"]]test
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_encode() in /in/FqCYv on line 550
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_encode() in /in/FqCYv on line 550
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_encode() in /in/FqCYv on line 550
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_encode() in /in/FqCYv on line 550