3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $results=array(); $list=array('coca','pepsi','jiojiji','huihuf'); foreach($list as $sim){ makeSearch($sim); sleep(3); } $notfoundtext="ez pas votre nom de marque sur la base de ce s"; function makeSearch($string){ global $results; $ch = curl_init(); $curlConfig = array( CURLOPT_URL => "http://bases-marques.inpi.fr/Typo3_INPI_Marques/marques_resultats_liste.html", CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_POSTFIELDS => array( 'marque' => $string, 'classification' => '', 'baseFr' => 'on', 'baseCommu' => 'on', 'baseInter' => 'on', 'rechercher' => 'Rechercher', 'recherche' => 'recherche', ) ); curl_setopt_array($ch, $curlConfig); $result = curl_exec($ch); curl_close($ch); if(strpos($notfoundtext,$result)){ $results[]=$string; } } foreach($results as $result){ echo $result.'<br>'; } ?> <?php
Output for 5.0.0 - 5.4.30
Fatal error: Call to undefined function curl_init() in /in/PseDZ on line 15
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: curl_init() in /in/PseDZ on line 15
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: curl_init() in /in/PseDZ on line 15
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: curl_init() in /in/PseDZ on line 15