3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $rates = array() for ($i=0; $i<1000000;$i++) { $HAAPI_rate = array( 'Board' => 'nin', 'Price' => 32.4, 'NetPrice' => 32.4, 'BookingFee' => 12, 'tax' => 0, ); $rate = array( 'board' => $HAAPI_rate['Board'], 'price' => $HAAPI_rate['Price'], 'netPrice' => $HAAPI_rate['NetPrice'], 'bookingFee' => $HAAPI_rate['BookingFee'], 'tax' => $HAAPI_rate['Tax'], ); $rates[] = $rate; } return $rates;
Output for 5.4.0 - 5.4.29
Parse error: syntax error, unexpected 'for' (T_FOR) in /in/aaAon on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_FOR in /in/aaAon on line 4
Process exited with code 255.