I don't understand what it doesn't work for you.
# cat /etc/centos-release
CentOS release 6.8 (Final)
# rpm -q libcurl php-cli
libcurl-7.19.7-52.el6.x86_64
php-cli-5.3.3-47.el6.x86_64
# php -r '
> $ch = curl_init();
> curl_setopt($ch, CURLOPT_URL, "https://tlstest.paypal.com/");
> curl_setopt($ch, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1_2);
> var_dump(curl_exec($ch));'
PayPal_Connection_OKbool(true)
BTW, if you want to rebuild, you have to rebuild everything, not only libcurl, but also php, so php-devel won't help you.
Laptop: Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi