3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function evil(...$args) { var_dump($args); } function evilGen($maxArgs) { $i = 0; while ($i<$maxArgs) { yield $i; } } $args = evilGen(50); evil(...$args);
Register dump:

 RAX: fffffffffffebffe   RBX: 00007f9c89c72050   RCX: 0000000000000004
 RDX: 00007f9c89e00000   RSI: 0000000000000000   RDI: 00007f9c89c75000
 RBP: 00007f9c89c75000   R8 : 0000000000000003   R9 : ffffffffffffffff
 R10: ffffffffffffffff   R11: 0000000000000003   R12: 000000000103b8e0
 R13: 000000000017ffe0   R14: 00007f9c89c13030   R15: 00007f9c89c5d720
 RSP: 00007ffc65844970

 RIP: 00000000007c5e76   EFLAGS: 00010206

 CS: 0033   FS: 0000   GS: 0000

 Trap: 0000000e   Error: 00000006   OldMask: 00000000   CR2: 89e00000

 FPUCW: 0000027f   FPUSW: 00000000   TAG: 00000000
 RIP: 00000000   RDP: 00000000

 ST(0) 0000 0000000000000000   ST(1) 0000 0000000000000000
 ST(2) 0000 0000000000000000   ST(3) 0000 0000000000000000
 ST(4) 0000 0000000000000000   ST(5) 0000 0000000000000000
 ST(6) 0000 0000000000000000   ST(7) 0000 0000000000000000
 mxcsr: 1fa0
 XMM0:  00000000000000000000000000000000 XMM1:  00000000000000000000000000000000
 XMM2:  00000000000000000000000000000000 XMM3:  00000000000000000000000000000000
 XMM4:  00000000000000000000000000000000 XMM5:  00000000000000000000000000000000
 XMM6:  00000000000000000000000000000000 XMM7:  00000000000000000000000000000000
 XMM8:  00000000000000000000000000000000 XMM9:  00000000000000000000000000000000
 XMM10: 00000000000000000000000000000000 XMM11: 00000000000000000000000000000000
 XMM12: 00000000000000000000000000000000 XMM13: 00000000000000000000000000000000
 XMM14: 00000000000000000000000000000000 XMM15: 00000000000000000000000000000000

Backtrace:
/usr/bin/php-7.0.0[0x7c5e76]
/usr/bin/php-7.0.0(execute_ex+0x1b)[0x77617b]
/usr/bin/php-7.0.0(zend_execute+0x1a7)[0x7c7e37]
/usr/bin/php-7.0.0(zend_execute_scripts+0xb4)[0x739484]
/usr/bin/php-7.0.0(php_execute_script+0x280)[0x6dd2e0]
/usr/bin/php-7.0.0[0x7c9a54]
/usr/bin/php-7.0.0[0x434198]
/usr/lib/libc.so.6(__libc_start_main+0xf0)[0x7f9c8a4a9710]
/usr/bin/php-7.0.0(_start+0x29)[0x4342d9]

Memory map:

00400000-00d76000 r-xp 00000000 00:00 0 
00d76000-00f76000 ---p 00000000 00:00 0 
00f76000-0103f000 rwxp 00000000 00:00 0 
01200000-01201000 rwxp 00000000 00:00 0 
01f14000-02083000 rwxp 00000000 00:00 0                                  [heap]
7f9c89bb1000-7f9c89c00000 rwxp 00000000 00:00 0 
7f9c89c00000-7f9c89e00000 rwxp 00000000 00:0e 184494059                  /anon_hugepage (deleted)
7f9c89e05000-7f9c89e2f000 rwxp 00000000 00:00 0 
7f9c89e2f000-7f9c89e54000 r-xp 00000000 00:12 32324                      /usr/lib/liblzma.so.5.2.2
7f9c89e54000-7f9c8a053000 ---p 00025000 00:12 32324                      /usr/lib/liblzma.so.5.2.2
7f9c8a053000-7f9c8a054000 r-xp 00024000 00:12 32324                      /usr/lib/liblzma.so.5.2.2
7f9c8a054000-7f9c8a055000 rwxp 00025000 00:12 32324                      /usr/lib/liblzma.so.5.2.2
7f9c8a055000-7f9c8a056000 rwxp 00000000 00:00 0 
7f9c8a056000-7f9c8a06c000 r-xp 00000000 00:12 64247                      /usr/lib/libgcc_s.so.1
7f9c8a06c000-7f9c8a26b000 ---p 00016000 00:12 64247                      /usr/lib/libgcc_s.so.1
7f9c8a26b000-7f9c8a26c000 rwxp 00015000 00:12 64247                      /usr/lib/libgcc_s.so.1
7f9c8a26c000-7f9c8a284000 r-xp 00000000 00:12 64329                      /usr/lib/libpthread-2.23.so
7f9c8a284000-7f9c8a483000 ---p 00018000 00:12 64329                      /usr/lib/libpthread-2.23.so
7f9c8a483000-7f9c8a484000 r-xp 00017000 00:12 64329                      /usr/lib/libpthread-2.23.so
7f9c8a484000-7f9c8a485000 rwxp 00018000 00:12 64329                      /usr/lib/libpthread-2.23.so
7f9c8a485000-7f9c8a489000 rwxp 00000000 00:00 0 
7f9c8a489000-7f9c8a621000 r-xp 00000000 00:12 64222                      /usr/lib/libc-2.23.so
7f9c8a621000-7f9c8a820000 ---p 00198000 00:12 64222                      /usr/lib/libc-2.23.so
7f9c8a820000-7f9c8a824000 r-xp 00197000 00:12 64222                      /usr/lib/libc-2.23.so
7f9c8a824000-7f9c8a826000 rwxp 0019b000 00:12 64222                      /usr/lib/libc-2.23.so
7f9c8a826000-7f9c8a82b000 rwxp 00000000 00:00 0 
7f9c8a82b000-7f9c8aa77000 r-xp 00000000 00:12 64237                      /usr/lib/libcrypto.so.1.0.0
7f9c8aa77000-7f9c8ac77000 ---p 0024c000 00:12 64237                      /usr/lib/libcrypto.so.1.0.0
7f9c8ac77000-7f9c8ac93000 r-xp 0024c000 00:12 64237                      /usr/lib/libcrypto.so.1.0.0
7f9c8ac93000-7f9c8ac9f000 rwxp 00268000 00:12 64237                      /usr/lib/libcrypto.so.1.0.0
7f9c8ac9f000-7f9c8aca2000 rwxp 00000000 00:00 0 
7f9c8aca2000-7f9c8ad08000 r-xp 00000000 00:12 64342                      /usr/lib/libssl.so.1.0.0
7f9c8ad08000-7f9c8af08000 ---p 00066000 00:12 64342                      /usr/lib/libssl.so.1.0.0
7f9c8af08000-7f9c8af0c000 r-xp 00066000 00:12 64342                      /usr/lib/libssl.so.1.0.0
7f9c8af0c000-7f9c8af13000 rwxp 0006a000 00:12 64342                      /usr/lib/libssl.so.1.0.0
7f9c8af13000-7f9c8b071000 r-xp 00000000 00:12 42054                      /usr/lib/libxml2.so.2.9.3
7f9c8b071000-7f9c8b271000 ---p 0015e000 00:12 42054                      /usr/lib/libxml2.so.2.9.3
7f9c8b271000-7f9c8b279000 r-xp 0015e000 00:12 42054                      /usr/lib/libxml2.so.2.9.3
7f9c8b279000-7f9c8b27b000 rwxp 00166000 00:12 42054                      /usr/lib/libxml2.so.2.9.3
7f9c8b27b000-7f9c8b27e000 rwxp 00000000 00:00 0 
7f9c8b27e000-7f9c8b293000 r-xp 00000000 00:12 64308                      /usr/lib/libnsl-2.23.so
7f9c8b293000-7f9c8b492000 ---p 00015000 00:12 64308                      /usr/lib/libnsl-2.23.so
7f9c8b492000-7f9c8b493000 r-xp 00014000 00:12 64308                      /usr/lib/libnsl-2.23.so
7f9c8b493000-7f9c8b494000 rwxp 00015000 00:12 64308                      /usr/lib/libnsl-2.23.so
7f9c8b494000-7f9c8b496000 rwxp 00000000 00:00 0 
7f9c8b496000-7f9c8b498000 r-xp 00000000 00:12 64239                      /usr/lib/libdl-2.23.so
7f9c8b498000-7f9c8b698000 ---p 00002000 00:12 64239                      /usr/lib/libdl-2.23.so
7f9c8b698000-7f9c8b699000 r-xp 00002000 00:12 64239                      /usr/lib/libdl-2.23.so
7f9c8b699000-7f9c8b69a000 rwxp 00003000 00:12 64239                      /usr/lib/libdl-2.23.so
7f9c8b69a000-7f9c8b79d000 r-xp 00000000 00:12 64293                      /usr/lib/libm-2.23.so
7f9c8b79d000-7f9c8b99d000 ---p 00103000 00:12 64293                      /usr/lib/libm-2.23.so
7f9c8b99d000-7f9c8b99e000 r-xp 00103000 00:12 64293                      /usr/lib/libm-2.23.so
7f9c8b99e000-7f9c8b99f000 rwxp 00104000 00:12 64293                      /usr/lib/libm-2.23.so
7f9c8b99f000-7f9c8b9a0000 rwxp 00000000 00:00 0 
7f9c8b9a0000-7f9c8b9b5000 r-xp 00000000 00:12 7684                       /usr/lib/libz.so.1.2.8
7f9c8b9b5000-7f9c8bbb4000 ---p 00015000 00:12 7684                       /usr/lib/libz.so.1.2.8
7f9c8bbb4000-7f9c8bbb5000 r-xp 00014000 00:12 7684                       /usr/lib/libz.so.1.2.8
7f9c8bbb5000-7f9c8bbb6000 rwxp 00015000 00:12 7684                       /usr/lib/libz.so.1.2.8
7f9c8bbb6000-7f9c8bc2d000 r-xp 00000000 00:12 50634                      /usr/lib/libgmp.so.10.3.0
7f9c8bc2d000-7f9c8be2c000 ---p 00077000 00:12 50634                      /usr/lib/libgmp.so.10.3.0
7f9c8be2c000-7f9c8be2d000 r-xp 00076000 00:12 50634                      /usr/lib/libgmp.so.10.3.0
7f9c8be2d000-7f9c8be2e000 rwxp 00077000 00:12 50634                      /usr/lib/libgmp.so.10.3.0
7f9c8be2e000-7f9c8bfa0000 r-xp 00000000 00:12 64343                      /usr/lib/libstdc++.so.6.0.21
7f9c8bfa0000-7f9c8c1a0000 ---p 00172000 00:12 64343                      /usr/lib/libstdc++.so.6.0.21
7f9c8c1a0000-7f9c8c1aa000 r-xp 00172000 00:12 64343                      /usr/lib/libstdc++.so.6.0.21
7f9c8c1aa000-7f9c8c1ac000 rwxp 0017c000 00:12 64343                      /usr/lib/libstdc++.so.6.0.21
7f9c8c1ac000-7f9c8c1b1000 rwxp 00000000 00:00 0 
7f9c8c1b1000-7f9c8c1ba000 r-xp 00000000 00:12 41987                      /usr/lib/libltdl.so.7.3.1
7f9c8c1ba000-7f9c8c3b9000 ---p 00009000 00:12 41987                      /usr/lib/libltdl.so.7.3.1
7f9c8c3b9000-7f9c8c3ba000 r-xp 00008000 00:12 41987                      /usr/lib/libltdl.so.7.3.1
7f9c8c3ba000-7f9c8c3bb000 rwxp 00009000 00:12 41987                      /usr/lib/libltdl.so.7.3.1
7f9c8c3bb000-7f9c8c3e5000 r-xp 00000000 00:12 7561                       /usr/lib/libmcrypt.so.4.4.8
7f9c8c3e5000-7f9c8c5e5000 ---p 0002a000 00:12 7561                       /usr/lib/libmcrypt.so.4.4.8
7f9c8c5e5000-7f9c8c5e7000 r-xp 0002a000 00:12 7561                       /usr/lib/libmcrypt.so.4.4.8
7f9c8c5e7000-7f9c8c5e9000 rwxp 0002c000 00:12 7561                       /usr/lib/libmcrypt.so.4.4.8
7f9c8c5e9000-7f9c8c5ef000 rwxp 00000000 00:00 0 
7f9c8c5ef000-7f9c8c5f6000 r-xp 00000000 00:12 64338                      /usr/lib/librt-2.23.so
7f9c8c5f6000-7f9c8c7f5000 ---p 00007000 00:12 64338                      /usr/lib/librt-2.23.so
7f9c8c7f5000-7f9c8c7f6000 r-xp 00006000 00:12 64338                      /usr/lib/librt-2.23.so
7f9c8c7f6000-7f9c8c7f7000 rwxp 00007000 00:12 64338                      /usr/lib/librt-2.23.so
7f9c8c7f7000-7f9c8c7f8000 rwxp 00000000 00:00 0 
7f9c8c7f8000-7f9c8c80c000 r-xp 00000000 00:12 64335                      /usr/lib/libresolv-2.23.so
7f9c8c80c000-7f9c8ca0b000 ---p 00014000 00:12 64335                      /usr/lib/libresolv-2.23.so
7f9c8ca0b000-7f9c8ca0c000 r-xp 00013000 00:12 64335                      /usr/lib/libresolv-2.23.so
7f9c8ca0c000-7f9c8ca0d000 rwxp 00014000 00:12 64335                      /usr/lib/libresolv-2.23.so
7f9c8ca0d000-7f9c8ca0f000 rwxp 00000000 00:00 0 
7f9c8ca0f000-7f9c8ca17000 r-xp 00000000 00:12 64235                      /usr/lib/libcrypt-2.23.so
7f9c8ca17000-7f9c8cc16000 ---p 00008000 00:12 64235                      /usr/lib/libcrypt-2.23.so
7f9c8cc16000-7f9c8cc17000 r-xp 00007000 00:12 64235                      /usr/lib/libcrypt-2.23.so
7f9c8cc17000-7f9c8cc18000 rwxp 00008000 00:12 64235                      /usr/lib/libcrypt-2.23.so
7f9c8cc18000-7f9c8cc46000 rwxp 00000000 00:00 0 
7f9c8cc53000-7f9c8cc57000 r-xp 00000000 00:12 64212                      /usr/lib/libSegFault.so
7f9c8cc57000-7f9c8ce56000 ---p 00004000 00:12 64212                      /usr/lib/libSegFault.so
7f9c8ce56000-7f9c8ce57000 r-xp 00003000 00:12 64212                      /usr/lib/libSegFault.so
7f9c8ce57000-7f9c8ce58000 rwxp 00004000 00:12 64212                      /usr/lib/libSegFault.so
7f9c8ce58000-7f9c8ce59000 rwxp 00000000 00:00 0 
7f9c8ce59000-7f9c8ce7c000 r-xp 00000000 00:12 64206                      /usr/lib/ld-2.23.so
7f9c8ce7c000-7f9c8d07c000 ---p 00000000 00:00 0 
7f9c8d07c000-7f9c8d07d000 r-xp 00023000 00:12 64206                      /usr/lib/ld-2.23.so
7f9c8d07d000-7f9c8d07e000 rwxp 00024000 00:12 64206                      /usr/lib/ld-2.23.so
7f9c8d07e000-7f9c8d07f000 rwxp 00000000 00:00 0 
7ffc6582a000-7ffc6584b000 rwxp 00000000 00:00 0 
7ffc65869000-7ffc6586b000 r--p 00000000 00:00 0                          [vvar]
7ffc6586b000-7ffc6586d000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]