3v4l.org

run code in 300+ PHP versions simultaneously
<?php $selfTable = 'songs'; $relTable = 'artists'; $string = '$content AS content, CONCAT_WS( ".", $types.alias, layout_templates.custom_item_id ), id'; echo preg_replace_callback('#\$([\w]+)\.([\w]+)#', function($match) { print_r($match); }, $string);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7uq1b
function name:  (null)
number of ops:  11
compiled vars:  !0 = $selfTable, !1 = $relTable, !2 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'songs'
    3     1        ASSIGN                                                   !1, 'artists'
    5     2        ASSIGN                                                   !2, '%24content+AS+content%2C%0A+++++++++++++++++++++++++CONCAT_WS%28%0A+++++++++++++++++++++++++++++%22.%22%2C%0A+++++++++++++++++++++++++++++%24types.alias%2C%0A+++++++++++++++++++++++++++++layout_templates.custom_item_id%0A+++++++++++++++++++++++++%29%2C%0Aid'
   14     3        INIT_FCALL                                               'preg_replace_callback'
          4        SEND_VAL                                                 '%23%5C%24%28%5B%5Cw%5D%2B%29%5C.%28%5B%5Cw%5D%2B%29%23'
          5        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F7uq1b%3A14%240'
   17     6        SEND_VAL                                                 ~6
          7        SEND_VAR                                                 !2
          8        DO_ICALL                                         $7      
          9        ECHO                                                     $7
         10      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F7uq1b%3A14%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7uq1b
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   RECV                                             !0      
   15     1        INIT_FCALL                                               'print_r'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
   17     4      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F7uq1b%3A14%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.95 ms | 1395 KiB | 17 Q