3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $transactionDetails= Array ( [METHOD] => 'gettransactionDetails', [VERSION] => '65.1', [PWD] => '########', [USER] => '###-facilitator_api1.gmail.com', [SIGNATURE] => '#######-ANdhu9ESaTkLG1iBBuUtsLA91D.M', [TRANSACTIONID] => '####', ); echo $transactionDetails['TRANSACTIONID'];
Output for 5.4.0 - 7.1.0
Notice: Use of undefined constant METHOD - assumed 'METHOD' in /in/uTKtd on line 7 Warning: Illegal offset type in /in/uTKtd on line 7 Notice: Use of undefined constant VERSION - assumed 'VERSION' in /in/uTKtd on line 8 Warning: Illegal offset type in /in/uTKtd on line 8 Notice: Use of undefined constant PWD - assumed 'PWD' in /in/uTKtd on line 9 Warning: Illegal offset type in /in/uTKtd on line 9 Notice: Use of undefined constant USER - assumed 'USER' in /in/uTKtd on line 10 Warning: Illegal offset type in /in/uTKtd on line 10 Notice: Use of undefined constant SIGNATURE - assumed 'SIGNATURE' in /in/uTKtd on line 11 Warning: Illegal offset type in /in/uTKtd on line 11 Notice: Use of undefined constant TRANSACTIONID - assumed 'TRANSACTIONID' in /in/uTKtd on line 12 Warning: Illegal offset type in /in/uTKtd on line 12 Notice: Undefined index: TRANSACTIONID in /in/uTKtd on line 14
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/uTKtd on line 7
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
Parse error: parse error, unexpected '[', expecting ')' in /in/uTKtd on line 7
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `')'' in /in/uTKtd on line 7
Process exited with code 255.