3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $sql = "select ex.opening_minutes as opening, asset.assetID, ex.google_code as exch_google_code, asset.google_code as asset_google_code from selected_asset as sa". " inner join asset on asset.assetID = sa.assetID". " inner join asset_exchange ae on ae.assetID = sa.assetID". " inner join exchange as ex on ex.exchangeID = ae.exchangeID". " where ae.exchangeID = ".$exchangeID." and sa.brokerID = ".$brokerID; $extension = ""; $asset_google_code = $rec["asset_google_code"]; $exchange_google_code = $rec["exch_google_code"]; $assetentry = array ( $rec["assetID"] => $asset_google_code ); $this->assets[] = $assetentry; $extension .= trim($exchange_google_code) .":".$asset_google_code.","; //$extension = rtrim($extension, ","); $extension .= "'"; $sql = "select ex.opening_minutes as opening from exchange as ex where ex.exchangeID = ".$exchangeID;
Output for 7.0.0 - 7.1.0
Notice: Undefined variable: exchangeID in /in/HMY8O on line 7 Notice: Undefined variable: brokerID in /in/HMY8O on line 7 Notice: Undefined variable: rec in /in/HMY8O on line 10 Notice: Undefined variable: rec in /in/HMY8O on line 11 Notice: Undefined variable: rec in /in/HMY8O on line 12 Fatal error: Uncaught Error: Using $this when not in object context in /in/HMY8O:13 Stack trace: #0 {main} thrown in /in/HMY8O on line 13
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined variable: exchangeID in /in/HMY8O on line 7 Notice: Undefined variable: brokerID in /in/HMY8O on line 7 Notice: Undefined variable: rec in /in/HMY8O on line 10 Notice: Undefined variable: rec in /in/HMY8O on line 11 Notice: Undefined variable: rec in /in/HMY8O on line 12 Fatal error: $this is null in /in/HMY8O on line 13
Process exited with code 255.
Output for 5.0.4 - 5.6.28
Notice: Undefined variable: exchangeID in /in/HMY8O on line 7 Notice: Undefined variable: brokerID in /in/HMY8O on line 7 Notice: Undefined variable: rec in /in/HMY8O on line 10 Notice: Undefined variable: rec in /in/HMY8O on line 11 Notice: Undefined variable: rec in /in/HMY8O on line 12 Fatal error: Using $this when not in object context in /in/HMY8O on line 13
Process exited with code 255.
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: exchangeID in /in/HMY8O on line 7 Notice: Undefined variable: brokerID in /in/HMY8O on line 7 Notice: Undefined variable: rec in /in/HMY8O on line 10 Notice: Undefined variable: rec in /in/HMY8O on line 11 Notice: Undefined variable: rec in /in/HMY8O on line 12 Fatal error: Using $this when not in object context in /in/HMY8O on line 13
Process exited with code 255.
Output for 4.3.0 - 4.4.9
Notice: Undefined variable: exchangeID in /in/HMY8O on line 7 Notice: Undefined variable: brokerID in /in/HMY8O on line 7 Notice: Undefined variable: rec in /in/HMY8O on line 10 Notice: Undefined variable: rec in /in/HMY8O on line 11 Notice: Undefined variable: rec in /in/HMY8O on line 12 Notice: Undefined variable: exchangeID in /in/HMY8O on line 19