3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sentence = 'y HeloWerld'; $werds = array_filter(preg_split('/(?=[A-Z])/',$sentence)); var_dump(ucwords(implode(' ',$werds)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lB6Vi
function name:  (null)
number of ops:  20
compiled vars:  !0 = $sentence, !1 = $werds
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'y++HeloWerld'
    3     1        INIT_FCALL                                               'array_filter'
          2        INIT_FCALL                                               'preg_split'
          3        SEND_VAL                                                 '%2F%28%3F%3D%5BA-Z%5D%29%2F'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        SEND_VAR                                                 $3
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !1, $4
    5     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'ucwords'
         11        INIT_FCALL                                               'implode'
         12        SEND_VAL                                                 '+'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $6      
         15        SEND_VAR                                                 $6
         16        DO_ICALL                                         $7      
         17        SEND_VAR                                                 $7
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.76 ms | 940 KiB | 24 Q