Skip to content

Instantly share code, notes, and snippets.

💻
Coding

Jeroen Deviaene jerodev

💻
Coding
View GitHub Profile
View benchmark.php
<?php
$count = 25000;
$functions = [
'carbon' => function ($i) {
return now()->subDays($i)->format('Y-m-d');
},
'strtotime' => function ($i) {
return date('Y-m-d', strtotime("$i days ago"));
},
You can’t perform that action at this time.