3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array=Array ( [01] => Array ( [facebook] => 375, [twitter] => 3276, [email] => 3276 ), [02] => Array ( [facebook] => 385, [twitter] => 3326, [email] => 3326 ), [03] => Array ( [facebook] => 391, [twitter] => 3327, [email] => 3327 ), [04] => Array ( [facebook] => 446, [twitter] => 3327, [email] => 3327 ), [05] => Array ( [facebook] => 486, [twitter] => 3334, [email] => 3334 ), [06] => Array ( [facebook] => 2, [twitter] => 6, [email] => 6 ), [07] => Array ( [facebook] => 1, [twitter] => 7, [email] => 7 ), [08] => Array ( [facebook] => 3, [twitter] => 11, [email] => 11 ), [09] => Array ( [facebook] => 0, [twitter] => 0, [email] => 0 ), [10] => Array ( [facebook] => 0, [twitter] => 0, [email] => 0 ), [11] => Array ( [facebook] => 0, [twitter] => 0, [email] => 0 ), [12] => Array ( [facebook] => 0, [twitter] => 0, [email] => 0 ), ); print_r($array); die(); array_column($records, 'first_name');
Output for 5.5.0 - 5.6.28
Notice: Use of undefined constant facebook - assumed 'facebook' in /in/MbNfI on line 7 Warning: Illegal offset type in /in/MbNfI on line 7 Notice: Use of undefined constant twitter - assumed 'twitter' in /in/MbNfI on line 8 Warning: Illegal offset type in /in/MbNfI on line 8 Notice: Use of undefined constant email - assumed 'email' in /in/MbNfI on line 9 Warning: Illegal offset type in /in/MbNfI on line 10 Warning: Illegal offset type in /in/MbNfI on line 10 Notice: Use of undefined constant facebook - assumed 'facebook' in /in/MbNfI on line 14 Warning: Illegal offset type in /in/MbNfI on line 14 Notice: Use of undefined constant twitter - assumed 'twitter' in /in/MbNfI on line 15 Warning: Illegal offset type in /in/MbNfI on line 15 Notice: Use of undefined constant email - assumed 'email' in /in/MbNfI on line 16 Warning: Illegal offset type in /in/MbNfI on line 17 Warning: Illegal offset type in /in/MbNfI on line 17 Notice: Use of undefined constant facebook - assumed 'facebook' in /in/MbNfI on line 21 Warning: Illegal offset type in /in/MbNfI on line 21 Notice: Use of undefined constant twitter - assumed 'twitter' in /in/MbNfI on line 22 Warning: Illegal offset type in /in/MbNfI on line 22 Notice: Use of undefined constant email - assumed 'email' in /in/MbNfI on line 23 Warning: Illegal offset type in /in/MbNfI on line 24 Warning: Illegal offset type in /in/MbNfI on line 24 Notice: Use of undefined constant facebook - assumed 'facebook' in /in/MbNfI on line 28 Warning: Illegal offset type in /in/MbNfI on line 28 Notice: Use of undefined constant twitter - assumed 'twitter' in /in/MbNfI on line 29 Warning: Illegal offset type in /in/MbNfI on line 29 Notice: Use of undefined constant email - assumed 'email' in /in/MbNfI on line 30 Warning: Illegal offset type in /in/MbNfI on line 31 Warning: Illegal offset type in /in/MbNfI on line 31 Notice: Use of undefined constant facebook - assumed 'facebook' in /in/MbNfI on line 35 Warning: Illegal offset type in /in/MbNfI on line 35 Notice: Use of undefined constant twitter - assumed 'twitter' in /in/MbNfI on line 36 Warning: Illegal offset type in /in/MbNfI on line 36 Notice: Use of undefined constant email - assumed 'email' in /in/MbNfI on line 37 Warning: Illegal offset type in /in/MbNfI on line 38 Warning: Illegal offset type in /in/MbNfI on line 38 Notice: Use of undefined constant facebook - assumed 'facebook' in /in/MbNfI on line 42 Warning: Illegal offset type in /in/MbNfI on line 42 Notice: Use of undefined constant twitter - assumed 'twitter' in /in/MbNfI on line 43 Warning: Illegal offset type in /in/MbNfI on line 43 Notice: Use of undefined constant email - assumed 'email' in /in/MbNfI on line 44 Warning: Illegal offset type in /in/MbNfI on line 45 Warning: Illegal offset type in /in/MbNfI on line 45 Notice: Use of undefined constant facebook - assumed 'facebook' in /in/MbNfI on line 49 Warning: Illegal offset type in /in/MbNfI on line 49 Notice: Use of undefined constant twitter - assumed 'twitter' in /in/MbNfI on line 50 Warning: Illegal offset type in /in/MbNfI on line 50 Notice: Use of undefined constant email - assumed 'email' in /in/MbNfI on line 51 Warning: Illegal offset type in /in/MbNfI on line 52 Warning: Illegal offset type in /in/MbNfI on line 52 Notice: Use of undefined constant facebook - assumed 'facebook' in /in/MbNfI on line 56 Warning: Illegal offset type in /in/MbNfI on line 56 Notice: Use of undefined constant twitter - assumed 'twitter' in /in/MbNfI on line 57 Warning: Illegal offset type in /in/MbNfI on line 57 Notice: Use of undefined constant email - assumed 'email' in /in/MbNfI on line 58 Warning: Illegal offset type in /in/MbNfI on line 59 Warning: Illegal offset type in /in/MbNfI on line 59 Notice: Use of undefined constant facebook - assumed 'facebook' in /in/MbNfI on line 63 Warning: Illegal offset type in /in/MbNfI on line 63 Notice: Use of undefined constant twitter - assumed 'twitter' in /in/MbNfI on line 64 Warning: Illegal offset type in /in/MbNfI on line 64 Notice: Use of undefined constant email - assumed 'email' in /in/MbNfI on line 65 Warning: Illegal offset type in /in/MbNfI on line 66 Warning: Illegal offset type in /in/MbNfI on line 66 Notice: Use of undefined constant facebook - assumed 'facebook' in /in/MbNfI on line 70 Warning: Illegal offset type in /in/MbNfI on line 70 Notice: Use of undefined constant twitter - assumed 'twitter' in /in/MbNfI on line 71 Warning: Illegal offset type in /in/MbNfI on line 71 Notice: Use of undefined constant email - assumed 'email' in /in/MbNfI on line 72 Warning: Illegal offset type in /in/MbNfI on line 73 Warning: Illegal offset type in /in/MbNfI on line 73 Notice: Use of undefined constant facebook - assumed 'facebook' in /in/MbNfI on line 77 Warning: Illegal offset type in /in/MbNfI on line 77 Notice: Use of undefined constant twitter - assumed 'twitter' in /in/MbNfI on line 78 Warning: Illegal offset type in /in/MbNfI on line 78 Notice: Use of undefined constant email - assumed 'email' in /in/MbNfI on line 79 Warning: Illegal offset type in /in/MbNfI on line 80 Warning: Illegal offset type in /in/MbNfI on line 80 Notice: Use of undefined constant facebook - assumed 'facebook' in /in/MbNfI on line 84 Warning: Illegal offset type in /in/MbNfI on line 84 Notice: Use of undefined constant twitter - assumed 'twitter' in /in/MbNfI on line 85 Warning: Illegal offset type in /in/MbNfI on line 85 Notice: Use of undefined constant email - assumed 'email' in /in/MbNfI on line 86 Warning: Illegal offset type in /in/MbNfI on line 87 Warning: Illegal offset type in /in/MbNfI on line 87 Array ( )
Output for 5.4.0 - 5.4.45
Warning: Illegal offset type in /in/MbNfI on line 7 Warning: Illegal offset type in /in/MbNfI on line 8 Warning: Illegal offset type in /in/MbNfI on line 10 Warning: Illegal offset type in /in/MbNfI on line 10 Warning: Illegal offset type in /in/MbNfI on line 14 Warning: Illegal offset type in /in/MbNfI on line 15 Warning: Illegal offset type in /in/MbNfI on line 17 Warning: Illegal offset type in /in/MbNfI on line 17 Warning: Illegal offset type in /in/MbNfI on line 21 Warning: Illegal offset type in /in/MbNfI on line 22 Warning: Illegal offset type in /in/MbNfI on line 24 Warning: Illegal offset type in /in/MbNfI on line 24 Warning: Illegal offset type in /in/MbNfI on line 28 Warning: Illegal offset type in /in/MbNfI on line 29 Warning: Illegal offset type in /in/MbNfI on line 31 Warning: Illegal offset type in /in/MbNfI on line 31 Warning: Illegal offset type in /in/MbNfI on line 35 Warning: Illegal offset type in /in/MbNfI on line 36 Warning: Illegal offset type in /in/MbNfI on line 38 Warning: Illegal offset type in /in/MbNfI on line 38 Warning: Illegal offset type in /in/MbNfI on line 42 Warning: Illegal offset type in /in/MbNfI on line 43 Warning: Illegal offset type in /in/MbNfI on line 45 Warning: Illegal offset type in /in/MbNfI on line 45 Warning: Illegal offset type in /in/MbNfI on line 49 Warning: Illegal offset type in /in/MbNfI on line 50 Warning: Illegal offset type in /in/MbNfI on line 52 Warning: Illegal offset type in /in/MbNfI on line 52 Warning: Illegal offset type in /in/MbNfI on line 56 Warning: Illegal offset type in /in/MbNfI on line 57 Warning: Illegal offset type in /in/MbNfI on line 59 Warning: Illegal offset type in /in/MbNfI on line 59 Warning: Illegal offset type in /in/MbNfI on line 63 Warning: Illegal offset type in /in/MbNfI on line 64 Warning: Illegal offset type in /in/MbNfI on line 66 Warning: Illegal offset type in /in/MbNfI on line 66 Warning: Illegal offset type in /in/MbNfI on line 70 Warning: Illegal offset type in /in/MbNfI on line 71 Warning: Illegal offset type in /in/MbNfI on line 73 Warning: Illegal offset type in /in/MbNfI on line 73 Warning: Illegal offset type in /in/MbNfI on line 77 Warning: Illegal offset type in /in/MbNfI on line 78 Warning: Illegal offset type in /in/MbNfI on line 80 Warning: Illegal offset type in /in/MbNfI on line 80 Warning: Illegal offset type in /in/MbNfI on line 84 Warning: Illegal offset type in /in/MbNfI on line 85 Warning: Illegal offset type in /in/MbNfI on line 87 Warning: Illegal offset type in /in/MbNfI on line 87 Array ( )
Output for 5.2.3 - 5.3.27
Parse error: syntax error, unexpected '[', expecting ')' in /in/MbNfI on line 5
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.2
<br /> <b>Parse error</b>: syntax error, unexpected '[', expecting ')' in <b>/in/MbNfI</b> on line <b>5</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
<br /> <b>Parse error</b>: parse error, unexpected '[', expecting ')' in <b>/in/MbNfI</b> on line <b>5</b><br />
Process exited with code 255.
Output for 4.3.2 - 4.3.4
<br /> <b>Parse error</b>: parse error, expecting `')'' in <b>/in/MbNfI</b> on line <b>5</b><br />
Process exited with code 255.