This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Calculates the geodesic distance between two points specified by radian latitude/longitude using the | |
* Haversine formula (hf) | |
*/ | |
function hf($lat1, $lng1, $lat2, $lng2) | |
{ | |
$R = 6371e3; | |
$lng1 = deg2rad($lng1); | |
$lat1 = deg2rad($lat1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
Usage: ->with(...WithConsecutive::create(...$withCodes)) | |
*/ | |
declare(strict_types=1); | |
namespace App\Tests; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cca0def37dad:/app# SPX_ENABLED=1 SPX_FP_LIVE=1 SPX_METRICS=wt,zm,zmac,zmab,zmfb php test.php | |
*** SPX Report *** | |
Global stats: | |
Called functions : 2.0M | |
Distinct functions : 3 | |
Wall time : 1.78s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cca0def37dad:/app# SPX_ENABLED=1 SPX_FP_LIVE=1 SPX_METRICS=wt,zm,zmac,zmab,zmfb php test.php | |
*** SPX Report *** | |
Global stats: | |
Called functions : 2.0M | |
Distinct functions : 3 | |
Wall time : 1.95s |
OlderNewer