3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $sellerDiscount=56.595; $this->result['loan_amount']=539; echo number_format($sellerDiscount, 2, ',', ''); echo number_format(($sellerDiscount / 1.21), 2, ',', ''); echo number_format(($sellerDiscount - ($sellerDiscount / 1.21)), 2, ',', ''); echo number_format($this->result['loan_amount'] - $sellerDiscount, 2, ',', ''); echo number_format((($this->result['loan_amount'] - $sellerDiscount) * 0.702804), 2, ',', '');
based on c4QtG
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Using $this when not in object context in /in/koJJi:3 Stack trace: #0 {main} thrown in /in/koJJi on line 3
Process exited with code 255.
Output for 5.3.18 - 5.6.28
Fatal error: Using $this when not in object context in /in/koJJi on line 3
Process exited with code 255.