3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $transactions[date('Y-m-d', $transaction[0])][$transaction[4]] += $transaction[1]; if($transaction[4] == 'maintenance') { echo $transaction[1] . " converts to " . $transactions[date('Y-m-d', $transaction[0])][$transaction[4]] . "\n"; }
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: transaction in /in/hP35E on line 2 Notice: Undefined variable: transaction in /in/hP35E on line 2 Notice: Undefined variable: transaction in /in/hP35E on line 2 Notice: Undefined variable: transactions in /in/hP35E on line 2 Notice: Undefined index: 1970-01-01 in /in/hP35E on line 2 Notice: Undefined index: in /in/hP35E on line 2 Notice: Undefined variable: transaction in /in/hP35E on line 3
Output for hhvm-3.12.0
Notice: Undefined variable: transaction in /in/hP35E on line 2 Warning: date() expects parameter 2 to be integer, null given in /in/hP35E on line 2 Notice: Undefined variable: transaction in /in/hP35E on line 2 Notice: Undefined variable: transaction in /in/hP35E on line 2 Notice: Undefined variable: transaction in /in/hP35E on line 3
Output for hhvm-3.10.0
Notice: Undefined variable: transaction in /in/hP35E on line 2 Notice: Undefined variable: transaction in /in/hP35E on line 2 Notice: Undefined variable: transaction in /in/hP35E on line 2 Notice: Undefined variable: transaction in /in/hP35E on line 3
Output for 5.0.4 - 5.2.17
Notice: Undefined variable: transaction in /in/hP35E on line 2 Notice: Undefined variable: transaction in /in/hP35E on line 2 Notice: Undefined variable: transaction in /in/hP35E on line 2 Notice: Undefined variable: transactions in /in/hP35E on line 2 Notice: Undefined index: 1970-01-01 in /in/hP35E on line 2 Notice: Undefined index: in /in/hP35E on line 2 Notice: Undefined variable: transaction in /in/hP35E on line 3
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: transaction in /in/hP35E on line 2 Notice: Undefined variable: transaction in /in/hP35E on line 2 Notice: Undefined variable: transaction in /in/hP35E on line 2 Notice: Undefined variable: transactions in /in/hP35E on line 2 Notice: Undefined index: 1970-01-01 in /in/hP35E on line 2 Notice: Undefined index: in /in/hP35E on line 2 Notice: Undefined variable: transaction in /in/hP35E on line 3