3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 'hello|world!'; $bar = ucwords($foo); // Hello|world! $baz = ucwords($foo, "|"); echo $baz;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HmU1K
function name:  (null)
number of ops:  12
compiled vars:  !0 = $foo, !1 = $bar, !2 = $baz
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'hello%7Cworld%21'
    4     1        INIT_FCALL                                               'ucwords'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    6     5        INIT_FCALL                                               'ucwords'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 '%7C'
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !2, $6
    7    10        ECHO                                                     !2
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
271.23 ms | 1009 KiB | 14 Q