3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function getRates() { return array_fill( 0, 100000, array ( 'Regimen' => 'nin', 'Price' => 32, 'NetPrice' => 32, 'BookingFee' => 12, 'Tax' => 0, 'forfait' => 1, 'ProviderId' => 1 ) ); } $rates = array (); foreach (getRates() as $rate) { $rates[] = array ( 'board' => $rate['Regimen'], 'price' => $rate['Price'], 'netprice' => $rate['NetPrice'], 'bookingfee' => $rate['BookingFee'], 'tax' => $rate['Tax'] ); }
Output for 5.0.0 - 5.2.0, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Output for 5.5.24 - 5.6.28
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 72 bytes) in /in/GBehI on line 26
Process exited with code 255.
Output for 5.4.0 - 5.4.45
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 72 bytes) in /in/GBehI on line 23
Process exited with code 255.
Output for 5.3.11 - 5.3.29
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 77 bytes) in /in/GBehI on line 23
Process exited with code 255.
Output for 5.3.0 - 5.3.10
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 75 bytes) in /in/GBehI on line 28
Process exited with code 255.
Output for 5.2.1, 5.2.7 - 5.2.17
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 64 bytes) in /in/GBehI on line 23
Process exited with code 255.
Output for 5.2.6
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 80 bytes) in /in/GBehI on line 25
Process exited with code 255.
Output for 5.2.3 - 5.2.5
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 82 bytes) in /in/GBehI on line 26
Process exited with code 255.
Output for 5.2.2
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 77 bytes) in /in/GBehI on line 24
Process exited with code 255.
Output for 4.4.9
*** Error in `php': free(): invalid next size (fast): 0x0000000006b1c320 ***
Process exited with code 139.
Output for 4.4.8
*** Error in `php': double free or corruption (fasttop): 0x0000000000f7b350 ***
Process exited with code 139.
Output for 4.4.7
*** Error in `php': free(): invalid next size (fast): 0x00007f9b1a38fe00 ***
Process exited with code 139.
Output for 4.4.6
*** Error in `php': double free or corruption (fasttop): 0x0000000001e55270 ***
Process exited with code 139.
Output for 4.4.5
*** Error in `php': double free or corruption (fasttop): 0x0000000000d7b270 ***
Process exited with code 139.
Output for 4.4.4
*** Error in `php': double free or corruption (fasttop): 0x0000000000abf270 ***
Process exited with code 139.
Output for 4.4.3
*** Error in `php': double free or corruption (fasttop): 0x0000000001ed6270 ***
Process exited with code 139.
Output for 4.4.2
*** Error in `php': free(): invalid next size (fast): 0x0000000006831120 ***
Process exited with code 139.
Output for 4.4.1
*** Error in `php': double free or corruption (fasttop): 0x0000000001acd160 ***
Process exited with code 139.
Output for 4.4.0
*** Error in `php': double free or corruption (fasttop): 0x0000000000f740a0 ***
Process exited with code 139.
Output for 4.3.11
*** Error in `php': double free or corruption (fasttop): 0x00000000014eebb0 ***
Process exited with code 139.
Output for 4.3.10
*** Error in `php': free(): invalid next size (fast): 0x0000000006d53a70 ***
Process exited with code 139.
Output for 4.3.9
*** Error in `php': double free or corruption (fasttop): 0x0000000001871940 ***
Process exited with code 139.
Output for 4.3.8
*** Error in `php': double free or corruption (fasttop): 0x0000000000b65ad0 *** *** Error in `php': corrupted double-linked list: 0x0000000000b65af0 *** Inconsistency detected by ld.so: dl-open.c: 220: dl_open_worker: Assertion `_dl_debug_initialize (0, args->nsid)->r_state == RT_CONSISTENT' failed!
Process exited with code 127.
Output for 4.3.7
*** Error in `php': double free or corruption (fasttop): 0x0000000002058990 ***
Process exited with code 139.
Output for 4.3.6
*** Error in `php': double free or corruption (fasttop): 0x00000000015f39b0 ***
Process exited with code 139.
Output for 4.3.5
*** Error in `php': double free or corruption (fasttop): 0x0000000001b56830 ***
Process exited with code 139.
Output for 4.3.4
*** Error in `php': double free or corruption (fasttop): 0x0000000000fb9f80 ***
Process exited with code 139.
Output for 4.3.3
*** Error in `php': double free or corruption (fasttop): 0x0000000001376160 ***
Process exited with code 139.
Output for 4.3.2
*** Error in `php': double free or corruption (fasttop): 0x0000000000eac1c0 ***
Process exited with code 139.
Output for 4.3.1
*** Error in `php': double free or corruption (fasttop): 0x0000000002041a70 ***
Process exited with code 139.
Output for 4.3.0
*** Error in `/bin/php-4.3.0': double free or corruption (fasttop): 0x0000000000ba68c0 *** ======= Backtrace: ========= /usr/lib/libc.so.6(+0x72055)[0x7f1b5ab77055] /usr/lib/libc.so.6(+0x779a6)[0x7f1b5ab7c9a6] /usr/lib/libc.so.6(+0x7818e)[0x7f1b5ab7d18e] /bin/php-4.3.0(shutdown_memory_manager+0x5f)[0x50abaf] /bin/php-4.3.0(php_request_shutdown+0x1ee)[0x4f0f6e] /bin/php-4.3.0(main+0xabd)[0x42549d] /usr/lib/libc.so.6(__libc_start_main+0xf0)[0x7f1b5ab25610] /bin/php-4.3.0[0x4258dd] ======= Memory map: ======== 00400000-005c7000 r-xp 00000000 00:00 0 005c7000-007c6000 ---p 00000000 00:00 0 007c6000-007e6000 rwxp 00000000 00:00 0 00800000-00801000 rwxp 00000000 00:00 0 00b3b000-071e6000 rwxp 00000000 00:00 0 [heap] 7f1b54000000-7f1b54021000 rwxp 00000000 00:00 0 7f1b54021000-7f1b58000000 ---p 00000000 00:00 0 7f1b5a6cf000-7f1b5a6e5000 r-xp 00000000 00:12 7493 /usr/lib/libgcc_s.so.1 7f1b5a6e5000-7f1b5a8e4000 ---p 00016000 00:12 7493 /usr/lib/libgcc_s.so.1 7f1b5a8e4000-7f1b5a8e5000 rwxp 00015000 00:12 7493 /usr/lib/libgcc_s.so.1 7f1b5a8f0000-7f1b5a8fb000 r-xp 00000000 00:12 7582 /usr/lib/libnss_files-2.22.so 7f1b5a8fb000-7f1b5aafa000 ---p 0000b000 00:12 7582 /usr/lib/libnss_files-2.22.so 7f1b5aafa000-7f1b5aafb000 r-xp 0000a000 00:12 7582 /usr/lib/libnss_files-2.22.so 7f1b5aafb000-7f1b5aafc000 rwxp 0000b000 00:12 7582 /usr/lib/libnss_files-2.22.so 7f1b5aafc000-7f1b5ab05000 rwxp 00000000 00:00 0 7f1b5ab05000-7f1b5aca0000 r-xp 00000000 00:12 7448 /usr/lib/libc-2.22.so 7f1b5aca0000-7f1b5ae9f000 ---p 0019b000 00:12 7448 /usr/lib/libc-2.22.so 7f1b5ae9f000-7f1b5aea3000 r-xp 0019a000 00:12 7448 /usr/lib/libc-2.22.so 7f1b5aea3000-7f1b5aea5000 rwxp 0019e000 00:12 7448 /usr/lib/libc-2.22.so 7f1b5aea5000-7f1b5aeaa000 rwxp 00000000 00:00 0 7f1b5aeaa000-7f1b5aebf000 r-xp 00000000 00:12 7578 /usr/lib/libnsl-2.22.so 7f1b5aebf000-7f1b5b0be000 ---p 00015000 00:12 7578 /usr/lib/libnsl-2.22.so 7f1b5b0be000-7f1b5b0bf000 r-xp 00014000 00:12 7578 /usr/lib/libnsl-2.22.so 7f1b5b0bf000-7f1b5b0c0000 rwxp 00015000 00:12 7578 /usr/lib/libnsl-2.22.so 7f1b5b0c0000-7f1b5b0c2000 rwxp 00000000 00:00 0 7f1b5b0c2000-7f1b5b0c5000 r-xp 00000000 00:12 7466 /usr/lib/libdl-2.22.so 7f1b5b0c5000-7f1b5b2c4000 ---p 00003000 00:12 7466 /usr/lib/libdl-2.22.so 7f1b5b2c4000-7f1b5b2c5000 r-xp 00002000 00:12 7466 /usr/lib/libdl-2.22.so 7f1b5b2c5000-7f1b5b2c6000 rwxp 00003000 00:12 7466 /usr/lib/libdl-2.22.so 7f1b5b2c6000-7f1b5b3c3000 r-xp 00000000 00:12 7557 /usr/lib/libm-2.22.so 7f1b5b3c3000-7f1b5b5c2000 ---p 000fd000 00:12 7557 /usr/lib/libm-2.22.so 7f1b5b5c2000-7f1b5b5c3000 r-xp 000fc000 00:12 7557 /usr/lib/libm-2.22.so 7f1b5b5c3000-7f1b5b5c4000 rwxp 000fd000 00:12 7557 /usr/lib/libm-2.22.so 7f1b5b5c4000-7f1b5b5c5000 rwxp 00000000 00:00 0 7f1b5b5c5000-7f1b5b5d9000 r-xp 00000000 00:12 7612 /usr/lib/libresolv-2.22.so 7f1b5b5d9000-7f1b5b7d8000 ---p 00014000 00:12 7612 /usr/lib/libresolv-2.22.so 7f1b5b7d8000-7f1b5b7d9000 r-xp 00013000 00:12 7612 /usr/lib/libresolv-2.22.so 7f1b5b7d9000-7f1b5b7da000 rwxp 00014000 00:12 7612 /usr/lib/libresolv-2.22.so 7f1b5b7da000-7f1b5b7dc000 rwxp 00000000 00:00 0 7f1b5b7dc000-7f1b5b7e4000 r-xp 00000000 00:12 7458 /usr/lib/libcrypt-2.22.so 7f1b5b7e4000-7f1b5b9e4000 ---p 00008000 00:12 7458 /usr/lib/libcrypt-2.22.so 7f1b5b9e4000-7f1b5b9e5000 r-xp 00008000 00:12 7458 /usr/lib/libcrypt-2.22.so 7f1b5b9e5000-7f1b5b9e6000 rwxp 00009000 00:12 7458 /usr/lib/libcrypt-2.22.so 7f1b5b9e6000-7f1b5ba14000 rwxp 00000000 00:00 0 7f1b5ba14000-7f1b5ba29000 r-xp 00000000 00:12 7684 /usr/lib/libz.so.1.2.8 7f1b5ba29000-7f1b5bc28000 ---p 00015000 00:12 7684 /usr/lib/libz.so.1.2.8 7f1b5bc28000-7f1b5bc29000 r-xp 00014000 00:12 7684 /usr/lib/libz.so.1.2.8 7f1b5bc29000-7f1b5bc2a000 rwxp 00015000 00:12 7684 /usr/lib/libz.so.1.2.8 7f1b5bc2a000-7f1b5bc2b000 rwxp 00000000 00:00 0 7f1b5bc35000-7f1b5bc36000 rwxp 00000000 00:00 0 7f1b5bc36000-7f1b5bc58000 r-xp 00000000 00:12 7348 /usr/lib/ld-2.22.so 7f1b5bc58000-7f1b5be57000 ---p 00000000 00:00 0 7f1b5be57000-7f1b5be58000 r-xp 00021000 00:12 7348 /usr/lib/ld-2.22.so 7f1b5be58000-7f1b5be59000 rwxp 00022000 00:12 7348 /usr/lib/ld-2.22.so 7f1b5be59000-7f1b5be5a000 rwxp 00000000 00:00 0 7fff0f1af000-7fff0f1d0000 rwxp 00000000 00:00 0 [stack] 7fff0f1db000-7fff0f1dd000 r--p 00000000 00:00 0 [vvar] 7fff0f1dd000-7fff0f1df000 r-xp 00000000 00:00 0 [vdso] ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
Process exited with code 134.