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
#!/bin/bash | |
# Install common dependency | |
sudo apt install python-software-properties | |
# Add Ondřej Surý PPA | |
sudo add-apt-repository ppa:ondrej/php | |
# Update apt |
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 | |
// This script compares regex validation vs php validation speeds for a sample JSON data set | |
// ================================= | |
// Fetch some sample data | |
// =-=-=-=-=-=-=-=-=-=-=-=- | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); |
OlderNewer