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.10 - 5.4.29
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 72 bytes) in /in/aFJ8N on line 6
Process exited with code 255.
Output for 5.4.0 - 5.4.9
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/aFJ8N on line 7
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 64 bytes) in /in/aFJ8N on line 6
Process exited with code 255.