dump
<?php dump($value); dump($value1, $value2, $value3, ...);
<?php $var1 = 'a'; ob_start(); $return = dump($var1); ob_end_clean(); $this->assertEquals($var1, $return);
<?php $var3 = 'c'; ob_start(); $return = dump($var1, $var2, $var3); ob_end_clean(); $this->assertEquals([$var1, $var2, $var3], $return);
<?php echo "READY\n"; $server->listen(function (Data $data, array $context, $clientId) { dump((string) $data, $context, $clientId); exit(0); });