<?php

function echoLine(string $string): void
{
    echo $string, PHP_EOL;
}

echo `php -v`;
echo "started\n";
if ($child = pcntl_fork()) {
    sleep(5);
    echoLine('hello from parent'); //breakpoint no. 1 here
    pcntl_waitpid($child, $status);
    echo "finished\n";
} else {
    echoLine('hello from child'); //breakpoint no. 2 here
}
