3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "This is some text <p>##IDOBJECT=784##</p> and another some text <p>##IDOBJECT=1509##</p> <p>##LATESTARTICLESHOME=321##</p> <p align=\"center\">##IDOBJECT=321##</p>"; echo preg_replace_callback('/##(.*?)##/', function($match){ return strtolower('[object ' . $match[1] . ']'); }, $str);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ijZiO
function name:  (null)
number of ops:  9
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'This+is+some+text++%0A%3Cp%3E%23%23IDOBJECT%3D784%23%23%3C%2Fp%3E+and+another+some+text+%0A%3Cp%3E%23%23IDOBJECT%3D1509%23%23%3C%2Fp%3E%0A%3Cp%3E%23%23LATESTARTICLESHOME%3D321%23%23%3C%2Fp%3E%0A%3Cp+align%3D%22center%22%3E%23%23IDOBJECT%3D321%23%23%3C%2Fp%3E'
    7     1        INIT_FCALL                                               'preg_replace_callback'
          2        SEND_VAL                                                 '%2F%23%23%28.%2A%3F%29%23%23%2F'
          3        DECLARE_LAMBDA_FUNCTION                          ~2      [0]
    9     4        SEND_VAL                                                 ~2
          5        SEND_VAR                                                 !0
    7     6        DO_ICALL                                         $3      
    9     7        ECHO                                                     $3
          8      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ijZiO
function name:  {closure}
number of ops:  9
compiled vars:  !0 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        INIT_FCALL                                               'strtolower'
          2        FETCH_DIM_R                                      ~1      !0, 1
          3        CONCAT                                           ~2      '%5Bobject+', ~1
          4        CONCAT                                           ~3      ~2, '%5D'
          5        SEND_VAL                                                 ~3
          6        DO_ICALL                                         $4      
          7      > RETURN                                                   $4
    9     8*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.73 ms | 1014 KiB | 15 Q