3v4l.org

run code in 300+ PHP versions simultaneously
<?php $compName= preg_replace('/\s+/', '_',"ComfortDelgro Engineering Pte Ltd (Spark Car Care) " ); // ereg_replace('[[:space:]]+', '', trim("ComfortDelgro Engineering Pte Ltd (Spark Car Care) ")); // $compName = str_replace(')','',$compName);$compName = substr_replace('(','',$compName); echo $compName;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qndSC
function name:  (null)
number of ops:  8
compiled vars:  !0 = $compName
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   INIT_FCALL                                               'preg_replace'
          1        SEND_VAL                                                 '%2F%5Cs%2B%2F'
          2        SEND_VAL                                                 '_'
          3        SEND_VAL                                                 'ComfortDelgro+Engineering+Pte+Ltd+%28Spark+Car+Care%29+'
          4        DO_ICALL                                         $1      
          5        ASSIGN                                                   !0, $1
    4     6        ECHO                                                     !0
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.53 ms | 1394 KiB | 15 Q