PHP code example of o0h / phpstan-spaghetti

1. Go to this page and download the library: Download o0h/phpstan-spaghetti library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

o0h / phpstan-spaghetti example snippets


foreach ($items as $item) {
    process($item);
}

$i = 0;
$count = count($items);
loop_start:
$done = $i >= $count;
if ($done)
    goto loop_end;
goto do_process;

do_process:
process($items[$i]);
$i++;
goto loop_start;

loop_end: