3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function getRates() { return array_fill( 0, 100000, array ( 'Board' => 'nin', 'Price' => 32, 'NetPrice' => 32, 'BookingFee' => 12, 'Tax' => 0, 'forfait' => 1, 'ProviderId' => 1 ) ); } $rates = array (); foreach (getRates() as $rate) { $rates[] = array ( 'board' => $rate['Board'], 'price' => $rate['Price'], 'netprice' => $rate['NetPrice'], 'bookingfee' => $rate['BookingFee'], 'tax' => $rate['Tax'] ); }
Output for 5.0.0 - 5.2.0, hhvm-3.12.0, 7.0.0 - 7.1.0
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.5.24 - 5.6.28
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 72 bytes) in /in/qhub6 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/qhub6 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/qhub6 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/qhub6 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/qhub6 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/qhub6 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/qhub6 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/qhub6 on line 24
Process exited with code 255.
Output for 4.4.9
*** Error in `php': double free or corruption (fasttop): 0x00000000015f2350 ***
Process exited with code 139.
Output for 4.4.8
*** Error in `php': double free or corruption (fasttop): 0x0000000000fba350 ***
Process exited with code 139.
Output for 4.4.7
*** Error in `php': double free or corruption (fasttop): 0x0000000000f62270 ***
Process exited with code 139.
Output for 4.4.6
*** Error in `php': free(): invalid next size (fast): 0x0000000006f3b220 ***
Process exited with code 139.
Output for 4.4.5
*** Error in `php': free(): invalid next size (fast): 0x0000000006c04220 ***
Process exited with code 139.
Output for 4.4.4
*** Error in `php': double free or corruption (fasttop): 0x00000000017e6270 ***
Process exited with code 139.
Output for 4.4.3
*** Error in `php': free(): invalid next size (fast): 0x0000000006940220 ***
Process exited with code 139.
Output for 4.4.2
*** Error in `php': double free or corruption (fasttop): 0x00000000014f6160 ***
Process exited with code 139.
Output for 4.4.1
*** Error in `php': double free or corruption (fasttop): 0x0000000001968160 ***
Process exited with code 139.
Output for 4.4.0
*** Error in `php': free(): invalid next size (fast): 0x0000000006fe3050 ***
Process exited with code 139.
Output for 4.3.11
*** Error in `php': double free or corruption (fasttop): 0x0000000000ff5bb0 ***
Process exited with code 139.
Output for 4.3.10
*** Error in `php': free(): invalid next size (fast): 0x0000000006b2da70 ***
Process exited with code 139.
Output for 4.3.9
*** Error in `php': double free or corruption (fasttop): 0x0000000000a84940 ***
Process exited with code 139.
Output for 4.3.8
*** Error in `php': double free or corruption (fasttop): 0x0000000001e72ad0 *** *** Error in `php': corrupted double-linked list: 0x0000000001e72af0 *** 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): 0x0000000001935990 ***
Process exited with code 139.
Output for 4.3.6
*** Error in `php': double free or corruption (fasttop): 0x00000000028659b0 ***
Process exited with code 139.
Output for 4.3.5
*** Error in `php': double free or corruption (fasttop): 0x0000000000e19830 ***
Process exited with code 139.
Output for 4.3.4
*** Error in `php': double free or corruption (fasttop): 0x0000000001759f80 ***
Process exited with code 139.
Output for 4.3.3
*** Error in `php': double free or corruption (fasttop): 0x00000000013b1160 ***
Process exited with code 139.
Output for 4.3.2
*** Error in `php': double free or corruption (fasttop): 0x00000000024e41c0 ***
Process exited with code 139.
Output for 4.3.1
*** Error in `php': double free or corruption (fasttop): 0x0000000000eb6a70 ***
Process exited with code 139.
Output for 4.3.0
*** Error in `/bin/php-4.3.0': double free or corruption (fasttop): 0x0000000000da08c0 *** ======= Backtrace: ========= /usr/lib/libc.so.6(+0x72055)[0x7f064612c055] /usr/lib/libc.so.6(+0x779a6)[0x7f06461319a6] /usr/lib/libc.so.6(+0x7818e)[0x7f064613218e] /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)[0x7f06460da610] /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 00d35000-073e0000 rwxp 00000000 00:00 0 [heap] 7f0640000000-7f0640021000 rwxp 00000000 00:00 0 7f0640021000-7f0644000000 ---p 00000000 00:00 0 7f0645c84000-7f0645c9a000 r-xp 00000000 00:12 7493 /usr/lib/libgcc_s.so.1 7f0645c9a000-7f0645e99000 ---p 00016000 00:12 7493 /usr/lib/libgcc_s.so.1 7f0645e99000-7f0645e9a000 rwxp 00015000 00:12 7493 /usr/lib/libgcc_s.so.1 7f0645ea5000-7f0645eb0000 r-xp 00000000 00:12 7582 /usr/lib/libnss_files-2.22.so 7f0645eb0000-7f06460af000 ---p 0000b000 00:12 7582 /usr/lib/libnss_files-2.22.so 7f06460af000-7f06460b0000 r-xp 0000a000 00:12 7582 /usr/lib/libnss_files-2.22.so 7f06460b0000-7f06460b1000 rwxp 0000b000 00:12 7582 /usr/lib/libnss_files-2.22.so 7f06460b1000-7f06460ba000 rwxp 00000000 00:00 0 7f06460ba000-7f0646255000 r-xp 00000000 00:12 7448 /usr/lib/libc-2.22.so 7f0646255000-7f0646454000 ---p 0019b000 00:12 7448 /usr/lib/libc-2.22.so 7f0646454000-7f0646458000 r-xp 0019a000 00:12 7448 /usr/lib/libc-2.22.so 7f0646458000-7f064645a000 rwxp 0019e000 00:12 7448 /usr/lib/libc-2.22.so 7f064645a000-7f064645f000 rwxp 00000000 00:00 0 7f064645f000-7f0646474000 r-xp 00000000 00:12 7578 /usr/lib/libnsl-2.22.so 7f0646474000-7f0646673000 ---p 00015000 00:12 7578 /usr/lib/libnsl-2.22.so 7f0646673000-7f0646674000 r-xp 00014000 00:12 7578 /usr/lib/libnsl-2.22.so 7f0646674000-7f0646675000 rwxp 00015000 00:12 7578 /usr/lib/libnsl-2.22.so 7f0646675000-7f0646677000 rwxp 00000000 00:00 0 7f0646677000-7f064667a000 r-xp 00000000 00:12 7466 /usr/lib/libdl-2.22.so 7f064667a000-7f0646879000 ---p 00003000 00:12 7466 /usr/lib/libdl-2.22.so 7f0646879000-7f064687a000 r-xp 00002000 00:12 7466 /usr/lib/libdl-2.22.so 7f064687a000-7f064687b000 rwxp 00003000 00:12 7466 /usr/lib/libdl-2.22.so 7f064687b000-7f0646978000 r-xp 00000000 00:12 7557 /usr/lib/libm-2.22.so 7f0646978000-7f0646b77000 ---p 000fd000 00:12 7557 /usr/lib/libm-2.22.so 7f0646b77000-7f0646b78000 r-xp 000fc000 00:12 7557 /usr/lib/libm-2.22.so 7f0646b78000-7f0646b79000 rwxp 000fd000 00:12 7557 /usr/lib/libm-2.22.so 7f0646b79000-7f0646b7a000 rwxp 00000000 00:00 0 7f0646b7a000-7f0646b8e000 r-xp 00000000 00:12 7612 /usr/lib/libresolv-2.22.so 7f0646b8e000-7f0646d8d000 ---p 00014000 00:12 7612 /usr/lib/libresolv-2.22.so 7f0646d8d000-7f0646d8e000 r-xp 00013000 00:12 7612 /usr/lib/libresolv-2.22.so 7f0646d8e000-7f0646d8f000 rwxp 00014000 00:12 7612 /usr/lib/libresolv-2.22.so 7f0646d8f000-7f0646d91000 rwxp 00000000 00:00 0 7f0646d91000-7f0646d99000 r-xp 00000000 00:12 7458 /usr/lib/libcrypt-2.22.so 7f0646d99000-7f0646f99000 ---p 00008000 00:12 7458 /usr/lib/libcrypt-2.22.so 7f0646f99000-7f0646f9a000 r-xp 00008000 00:12 7458 /usr/lib/libcrypt-2.22.so 7f0646f9a000-7f0646f9b000 rwxp 00009000 00:12 7458 /usr/lib/libcrypt-2.22.so 7f0646f9b000-7f0646fc9000 rwxp 00000000 00:00 0 7f0646fc9000-7f0646fde000 r-xp 00000000 00:12 7684 /usr/lib/libz.so.1.2.8 7f0646fde000-7f06471dd000 ---p 00015000 00:12 7684 /usr/lib/libz.so.1.2.8 7f06471dd000-7f06471de000 r-xp 00014000 00:12 7684 /usr/lib/libz.so.1.2.8 7f06471de000-7f06471df000 rwxp 00015000 00:12 7684 /usr/lib/libz.so.1.2.8 7f06471df000-7f06471e0000 rwxp 00000000 00:00 0 7f06471ea000-7f06471eb000 rwxp 00000000 00:00 0 7f06471eb000-7f064720d000 r-xp 00000000 00:12 7348 /usr/lib/ld-2.22.so 7f064720d000-7f064740c000 ---p 00000000 00:00 0 7f064740c000-7f064740d000 r-xp 00021000 00:12 7348 /usr/lib/ld-2.22.so 7f064740d000-7f064740e000 rwxp 00022000 00:12 7348 /usr/lib/ld-2.22.so 7f064740e000-7f064740f000 rwxp 00000000 00:00 0 7ffc897b5000-7ffc897d6000 rwxp 00000000 00:00 0 [stack] 7ffc897fb000-7ffc897fd000 r--p 00000000 00:00 0 [vvar] 7ffc897fd000-7ffc897ff000 r-xp 00000000 00:00 0 [vdso] ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
Process exited with code 134.