3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo $content = preg_replace_callback("@(\.[”’\"]?\s*[A-Z][a-z]+\s[a-z])@", create_function('$matches', 'return strtolower($matches[0]);'), "Hello Rob Reid. Said the bar man");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JHI0v
function name:  (null)
number of ops:  12
compiled vars:  !0 = $content
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_replace_callback'
          1        SEND_VAL                                                 '%40%28%5C.%5B%E2%80%9D%E2%80%99%22%5D%3F%5Cs%2A%5BA-Z%5D%5Ba-z%5D%2B%5Cs%5Ba-z%5D%29%40'
    4     2        INIT_FCALL_BY_NAME                                       'create_function'
          3        SEND_VAL_EX                                              '%24matches'
          4        SEND_VAL_EX                                              'return+strtolower%28%24matches%5B0%5D%29%3B'
          5        DO_FCALL                                      0  $1      
          6        SEND_VAR                                                 $1
    5     7        SEND_VAL                                                 'Hello+Rob+Reid.+Said+the+bar+man'
    3     8        DO_ICALL                                         $2      
          9        ASSIGN                                           ~3      !0, $2
         10        ECHO                                                     ~3
    5    11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.72 ms | 1009 KiB | 14 Q