3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array ( 2 => array ( 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 => '30000', 43 => '30000', 44 => '30000', 45 => '30000', 46 => '30000', 47 => '30000', 48 => '30000', 49 => '30000', 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 => '30000', 64 => '30000', 65 => '30000', 66 => '30000', 67 => '30000', 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 => '30000', 82 => '30000', 83 => '30000', 84 => '30000', 85 => '30000', 86 => '30000', 87 => '30000', 88 => '30000', 89 => '30000', 90 => '30000', 91 => '30000', 92 => '30000', 93 => '30000', 94 => '30000', 95 => '30000', 96 => '30000', 97 => '30000', 98 => '30000', 99 => '30000', 100 => '30000', 101 => '30000', 102 => '30000', 103 => '30000', 104 => '30000', 105 => '30000', 106 => '30000', 107 => '30000', 108 => '30000', 109 => '30000', 110 => '30000', 111 => '30000', 112 => '30000', 113 => '30000', 114 => '30000', 115 => '30000', 116 => '30000', 117 => '30000', 118 => '30000', 119 => '30000', 120 => '30000', 121 => '30000', 122 => '30000', 123 => '30000', 124 => '30000', 125 => '30000', 126 => '30000', 127 => '30000', 128 => '30000', 129 => '30000', 130 => '30000' ), 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 => 'Agacorp5', 132 => 'centcorp', ), ); echo json_encode ($a);
Output for 5.2.0 - 7.1.0
{"2":{"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":"30000","43":"30000","44":"30000","45":"30000","46":"30000","47":"30000","48":"30000","49":"30000","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":"30000","64":"30000","65":"30000","66":"30000","67":"30000","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":"30000","82":"30000","83":"30000","84":"30000","85":"30000","86":"30000","87":"30000","88":"30000","89":"30000","90":"30000","91":"30000","92":"30000","93":"30000","94":"30000","95":"30000","96":"30000","97":"30000","98":"30000","99":"30000","100":"30000","101":"30000","102":"30000","103":"30000","104":"30000","105":"30000","106":"30000","107":"30000","108":"30000","109":"30000","110":"30000","111":"30000","112":"30000","113":"30000","114":"30000","115":"30000","116":"30000","117":"30000","118":"30000","119":"30000","120":"30000","121":"30000","122":"30000","123":"30000","124":"30000","125":"30000","126":"30000","127":"30000","128":"30000","129":"30000","130":"30000"},"3":["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","Agacorp5","centcorp"]}
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_encode() in /in/BZE75 on line 258
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_encode() in /in/BZE75 on line 258
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_encode() in /in/BZE75 on line 258
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_encode() in /in/BZE75 on line 258