3v4l.org

run code in 300+ PHP versions simultaneously
<?php $compName= preg_replace('/\s+/', '',"ComfortDelgro Engineering Pte Ltd (Spark Car Care) " ); $compName= preg_replace('/\(+/', '',"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/GOOSt
function name:  (null)
number of ops:  14
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
    2     6        INIT_FCALL                                               'preg_replace'
          7        SEND_VAL                                                 '%2F%5C%28%2B%2F'
          8        SEND_VAL                                                 ''
          9        SEND_VAL                                                 'ComfortDelgro+Engineering+Pte+Ltd+%28Spark+Car+Care%29+'
         10        DO_ICALL                                         $3      
         11        ASSIGN                                                   !0, $3
    5    12        ECHO                                                     !0
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.48 ms | 1394 KiB | 15 Q