3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar($arg) { return 'test' . $arg; } } $content = '<p><a href="{ccm:export:page:/team/faq}">FAQ / Help</a></p> <p><a href="{ccm:export:page:/portfolio}">Case Studies</a></p> <p><a href="{ccm:export:page:/blog}">Blog</a></p> <p><a href="{ccm:export:page:}">Another Link</a></p>'; $content = preg_replace_callback( '/\{ccm:export:page:(.*?)\}/i', array('static', 'replacePagePlaceHolderOnImport'), $content); var_dump($content);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/c4kb4
function name:  (null)
number of ops:  11
compiled vars:  !0 = $content
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   ASSIGN                                                   !0, '%3Cp%3E%3Ca+href%3D%22%7Bccm%3Aexport%3Apage%3A%2Fteam%2Ffaq%7D%22%3EFAQ+%2F+Help%3C%2Fa%3E%3C%2Fp%3E%0A++++++++++++++++++++++++++++++++++++%3Cp%3E%3Ca+href%3D%22%7Bccm%3Aexport%3Apage%3A%2Fportfolio%7D%22%3ECase+Studies%3C%2Fa%3E%3C%2Fp%3E%0A++++++++++++++++++++++++++++++++++++%3Cp%3E%3Ca+href%3D%22%7Bccm%3Aexport%3Apage%3A%2Fblog%7D%22%3EBlog%3C%2Fa%3E%3C%2Fp%3E%0A++++++++++++++++++++++++++++++++++++%3Cp%3E%3Ca+href%3D%22%7Bccm%3Aexport%3Apage%3A%7D%22%3EAnother+Link%3C%2Fa%3E%3C%2Fp%3E'
   16     1        INIT_FCALL                                               'preg_replace_callback'
   17     2        SEND_VAL                                                 '%2F%5C%7Bccm%3Aexport%3Apage%3A%28.%2A%3F%29%5C%7D%2Fi'
   18     3        SEND_VAL                                                 <array>
   19     4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
   16     6        ASSIGN                                                   !0, $2
   22     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Class Foo:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/c4kb4
function name:  bar
number of ops:  4
compiled vars:  !0 = $arg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        CONCAT                                           ~1      'test', !0
          2      > RETURN                                                   ~1
    8     3*     > RETURN                                                   null

End of function bar

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.87 ms | 1387 KiB | 17 Q