3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array ( 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' ) ); echo json_encode ($a); echo "test"; ?>
Output for 5.2.0 - 7.1.0
{"2":["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"],"3":["Agacorp","Mysoft Inc.","Robolordz.deth","Elite Escort Services","Crashmaster LLC","Stevecorp","WDC","Scorpsoft","The people who make good"]}test
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_encode() in /in/5rvbZ on line 154
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_encode() in /in/5rvbZ on line 154
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_encode() in /in/5rvbZ on line 154
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_encode() in /in/5rvbZ on line 154