<?php
call_user_func(function(){
echo 'val_val' . PHP_EOL;
$a = "xxx";
$b = $a;
$c = $b;
ob_start(function ($s) { return preg_replace('/^/m', " ", $s); });
xdebug_debug_zval('a', 'b', 'c');
ob_end_flush();
});
call_user_func(function(){
echo 'ref_val' . PHP_EOL;
$a = "xxx";
$b = &$a;
$c = $b;
ob_start(function ($s) { return preg_replace('/^/m', " ", $s); });
xdebug_debug_zval('a', 'b', 'c');
ob_end_flush();
});
call_user_func(function(){
echo 'val_ref' . PHP_EOL;
$a = "xxx";
$b = $a;
$c = &$b;
ob_start(function ($s) { return preg_replace('/^/m', " ", $s); });
xdebug_debug_zval('a', 'b', 'c');
ob_end_flush();
});
call_user_func(function(){
echo 'ref_ref' . PHP_EOL;
$a = "xxx";
$b = &$a;
$c = &$b;
ob_start(function ($s) { return preg_replace('/^/m', " ", $s); });
xdebug_debug_zval('a', 'b', 'c');
ob_end_flush();
});
preferences:
40.65 ms | 402 KiB | 5 Q