3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach( $oQiwi->getHistory( date( 'd.m.Y', strtotime( '-3 day' ) ), date( 'd.m.Y', strtotime( '+1 day' ) ) ) as $aItem ) { ?> <tr align="center"> <td><?=$aItem['iID']?></td> <td><?=$aItem['sDate']?> <?=$aItem['sTime']?></td> <td><?=$aItem['dAmount']?> <?=$aItem['sCurrency']?></td> <td><?=$aItem['dWithExpend']?> <?=$aItem['sCurrency']?></td> <td title="<?=$aItem['sProvider']?>"><?=$aItem['iOpponentPhone']?></td> <td><?=$aItem['sComment']?></td> <td><?=str_replace( array( 'INCOME', 'EXPENDITURE' ), array( 'приход', 'расход' ), $aItem['sType'] )?></td> <td title="<?=($aItem['sStatus'] == 'ERROR' ? $aItem['sError'] : '')?>"><?=$aItem['sStatus']?></td> </tr> <?php } ?>
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Warning: Undefined variable $oQiwi in /in/EGaCK on line 1 Fatal error: Uncaught Error: Call to a member function getHistory() on null in /in/EGaCK:1 Stack trace: #0 {main} thrown in /in/EGaCK on line 1
Process exited with code 255.
Output for 7.0.5 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33
Notice: Undefined variable: oQiwi in /in/EGaCK on line 1 Fatal error: Uncaught Error: Call to a member function getHistory() on null in /in/EGaCK:1 Stack trace: #0 {main} thrown in /in/EGaCK on line 1
Process exited with code 255.
Output for 7.3.32 - 7.3.33
Fatal error: Uncaught Error: Call to a member function getHistory() on null in /in/EGaCK:1 Stack trace: #0 {main} thrown in /in/EGaCK on line 1
Process exited with code 255.
Output for 7.0.0 - 7.0.4
Notice: Undefined variable: oQiwi in /in/EGaCK on line 1 Fatal error: Uncaught Error: Call to a member function getHistory() on unknown in /in/EGaCK:1 Stack trace: #0 {main} thrown in /in/EGaCK on line 1
Process exited with code 255.
Output for 5.6.0 - 5.6.40
Notice: Undefined variable: oQiwi in /in/EGaCK on line 1 Fatal error: Call to a member function getHistory() on null in /in/EGaCK on line 1
Process exited with code 255.
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38
Notice: Undefined variable: oQiwi in /in/EGaCK on line 1 Fatal error: Call to a member function getHistory() on a non-object in /in/EGaCK on line 1
Process exited with code 255.

preferences:
241.78 ms | 402 KiB | 376 Q