3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = 'foobar, 2&nbsp;foo 3&nbsp;bar'; $string = preg_replace("/\s|&nbsp;/",' ', $string); $output = ucwords($string); print_r($output);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mU3WS
function name:  (null)
number of ops:  12
compiled vars:  !0 = $string, !1 = $output
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'foobar%2C+2%26nbsp%3Bfoo+3%26nbsp%3Bbar'
    4     1        FRAMELESS_ICALL_3                preg_replace        ~3      '%2F%5Cs%7C%26nbsp%3B%2F', '+'
          2        OP_DATA                                                      !0
          3        ASSIGN                                                       !0, ~3
    5     4        INIT_FCALL                                                   'ucwords'
          5        SEND_VAR                                                     !0
          6        DO_ICALL                                             $5      
          7        ASSIGN                                                       !1, $5
    7     8        INIT_FCALL                                                   'print_r'
          9        SEND_VAR                                                     !1
         10        DO_ICALL                                                     
         11      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.74 ms | 2140 KiB | 15 Q