3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cookie = preg_replace( '/CBSESSID=/', '', $cookie ); $cookie = preg_replace( '/ path=\//', '', $cookie ); echo $cookie . PHP_EOL; $cookie = preg_replace( '/;/', '', trim($cookie) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FIXk3
function name:  (null)
number of ops:  24
compiled vars:  !0 = $cookie
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_replace'
          1        SEND_VAL                                                 '%2FCBSESSID%3D%2F'
          2        SEND_VAL                                                 ''
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $1      
          5        ASSIGN                                                   !0, $1
    4     6        INIT_FCALL                                               'preg_replace'
          7        SEND_VAL                                                 '%2F+path%3D%5C%2F%2F'
          8        SEND_VAL                                                 ''
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $3      
         11        ASSIGN                                                   !0, $3
    5    12        CONCAT                                           ~5      !0, '%0A'
         13        ECHO                                                     ~5
    7    14        INIT_FCALL                                               'preg_replace'
         15        SEND_VAL                                                 '%2F%3B%2F'
         16        SEND_VAL                                                 ''
         17        INIT_FCALL                                               'trim'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $6      
         20        SEND_VAR                                                 $6
         21        DO_ICALL                                         $7      
         22        ASSIGN                                                   !0, $7
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.2 ms | 1395 KiB | 17 Q