3v4l.org

run code in 300+ PHP versions simultaneously
<?php $originaldescription = '::cck::3::/cck:: ::description:: test1 ::/description::'; $description = null; $regex_part1 = '/^::cck.*\n.*description::\n/'; $regex_part2 = '/\n.*\/description::/'; $description = preg_replace($regex_part1,null,$originaldescription); $description = preg_replace($regex_part2,null,$description); echo $description;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gV7OY
function name:  (null)
number of ops:  18
compiled vars:  !0 = $originaldescription, !1 = $description, !2 = $regex_part1, !3 = $regex_part2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3A%3Acck%3A%3A3%3A%3A%2Fcck%3A%3A%0A%3A%3Adescription%3A%3A%0Atest1%0A%3A%3A%2Fdescription%3A%3A'
    8     1        ASSIGN                                                   !1, null
   10     2        ASSIGN                                                   !2, '%2F%5E%3A%3Acck.%2A%5Cn.%2Adescription%3A%3A%5Cn%2F'
   11     3        ASSIGN                                                   !3, '%2F%5Cn.%2A%5C%2Fdescription%3A%3A%2F'
   13     4        INIT_FCALL                                               'preg_replace'
          5        SEND_VAR                                                 !2
          6        SEND_VAL                                                 null
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $8      
          9        ASSIGN                                                   !1, $8
   14    10        INIT_FCALL                                               'preg_replace'
         11        SEND_VAR                                                 !3
         12        SEND_VAL                                                 null
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $10     
         15        ASSIGN                                                   !1, $10
   16    16        ECHO                                                     !1
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.57 ms | 1395 KiB | 15 Q