Skip to content

Instantly share code, notes, and snippets.

<?php
if (function_exists("date_default_timezone_set")) {
date_default_timezone_set("UTC");
}
function simple() {
$a = 0;
for ($i = 0; $i < 1000000; $i++)
$a++;
●新規演算子
< ZEND_COALESCE
< ZEND_SPACESHIP
●既存関数の最適化
< ZEND_STRLEN
< ZEND_DEFINED
< ZEND_TYPE_CHECK
<?php
$eval_str='$x="chr"; $y="abc";';
eval($eval_str);
debug_zval_dump($x); // string(3) "chr"(0x7ff06342cfb0) interned
debug_zval_dump($y); // string(3) "abc"(0x109a01540) interned
array(3124) refcount(1){
[""]=>
string(0) "" refcount(1)
["zend_version"]=>
string(12) "zend_version" refcount(1)
["func_num_args"]=>
string(13) "func_num_args" refcount(1)
["func_get_arg"]=>
string(12) "func_get_arg" refcount(1)
["func_get_args"]=>

タイトル

見出し

本文

引用

本文

@hnw
hnw / -
Created July 2, 2015 03:33
diff --git a/share/php-build/definitions/5.6.8 b/share/php-build/definitions/5.6.8
index 33714bc..2eb2b3e 100644
--- a/share/php-build/definitions/5.6.8
+++ b/share/php-build/definitions/5.6.8
@@ -1,3 +1,6 @@
+configure_option "--enable-intl"
+configure_option "--with-icu-dir" "$(brew --prefix icu4c)"
+
install_package "http://php.net/distributions/php-5.6.8.tar.bz2"
install_pyrus
Array
(
[0] =>
[1] => zend_version
[2] => func_num_args
[3] => func_get_arg
[4] => func_get_args
[5] => strlen
[6] => strcmp
[7] => strncmp
diff -c -r ddclient-3.8.3-orig/ddclient ddclient-3.8.3/ddclient
*** ddclient-3.8.3-orig/ddclient 2015-05-30 09:37:38.000000000 +0000
--- ddclient-3.8.3/ddclient 2016-01-03 17:04:30.943687063 +0000
***************
*** 35,41 ****
$program =~ s/d$//;
my $now = time;
my $hostname = hostname();
! my $etc = ($program =~ /test/i) ? './' : '/etc/ddclient/';
my $cachedir = ($program =~ /test/i) ? './' : '/var/cache/ddclient/';
<?php
echo nsec3hash("434FFFA6F0", "jp", 8), "\n"; // OULDMHVB61HBUBCG40NBLF4UEPS26THV
echo nsec3hash("DEAD", "dnsex.nl", 0), "\n"; // ROCCJAE8BJJU7HN6T7NG3TNM8ACRS87J
echo nsec3hash("DEAD", "a.b.c.example.org", 2), "\n"; // 6LQ07OAHBTOOEU2R9ANI2AT70K5O0RCG
function nsec3hash($salt, $label, $iter) {
$raw_salt = hex2bin($salt);
$label = normalize_rr(strtolower($label));
PHP 7.1.0alpha1 (cli) (built: Jun 28 2016 12:53:16) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.1.0-dev, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.1.0alpha1, Copyright (c) 1999-2016, by Zend Technologies
simple 0.037
simplecall 0.011
simpleucall 0.034
simpleudcall 0.037
mandel 0.140