3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Arrange $object = new SplFixedArray(2); $object[0] = 'first-value'; $object[1] = 'second-value'; // Act foreach ($object as $key1 => $val1) { foreach ($object as $key2 => $val2) { break; } } // Assert // Will never execute... assert(TRUE === FALSE); // Zjistěte proč v článku na pehapkari.cz: https://github.com/pehapkari/pehapkari.cz/pull/285 // Step into explanation at GitHub: https://github.com/pehapkari/pehapkari.cz/pull/285/files#diff-7677a91736a5051440021053d8fa6962R9

Abusive script

This script was stopped while abusing our resources


preferences:
38.86 ms | 404 KiB | 5 Q