3v4l.org

run code in 300+ PHP versions simultaneously
<?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 git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/PseDZ:15 Stack trace: #0 /in/PseDZ(8): makeSearch('coca') #1 {main} thrown in /in/PseDZ on line 15
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
75.72 ms | 401 KiB | 8 Q