3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * 运行模式 * * debug 调试模式, 会开启详细的日志记录和错误提示 * * default 默认模式, 会输出错误提示 * * production 生产模式, 不会执行任何额外操作, 最高效地执行代码 */ const Debug = 2; const Default = 1; const Production = 0; const RunMode = Default; // 默认关掉所有错误提示 error_reporting(0); // 如果是默认模式,打开致命错误和解析错误的报告 if(lpRunMode >= lpDefault) error_reporting(E_ERROR | E_PARSE); // 如果是调试模式,打开全部错误提示,并启用修改建议提示 if(lpRunMode >= lpDebug) error_reporting(E_ALL | E_STRICT);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.160.0330.06019.22
5.4.150.0230.04718.83
5.4.140.0230.03316.38
5.4.130.0300.04016.30
5.4.120.0170.07016.35
5.4.110.0370.05716.45
5.4.100.0200.04716.54
5.4.90.0270.06716.56
5.4.80.0230.07016.34
5.4.70.0370.05716.58
5.4.60.0270.06716.33
5.4.50.0100.07316.38
5.4.40.0100.07016.52
5.4.30.0100.04316.43
5.4.20.0030.05716.51
5.4.10.0130.06316.55
5.4.00.0030.07715.79
5.3.260.0200.07714.65
5.3.250.0170.05314.46
5.3.240.0300.06314.65
5.3.230.0230.06314.54
5.3.220.0270.06014.51
5.3.210.0230.06314.62
5.3.200.0270.03714.50
5.3.190.0230.07314.43
5.3.180.0270.05014.47
5.3.170.0200.05014.42
5.3.160.0230.06714.52
5.3.150.0100.07014.42
5.3.140.0000.06014.43
5.3.130.0000.07714.57
5.3.120.0070.07714.50
5.3.110.0000.08314.53
5.3.100.0100.07014.08
5.3.90.0070.07713.87
5.3.80.0070.07314.11
5.3.70.0170.05714.06
5.3.60.0070.04013.88
5.3.50.0070.06713.84
5.3.40.0070.03713.72
5.3.30.0070.06313.79
5.3.20.0070.07013.59
5.3.10.0000.04713.64
5.3.00.0100.06713.54

preferences:
137.16 ms | 1394 KiB | 7 Q