3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = "I wish for choice cards spelling PREJOIN 'coz I love Nature."; $words = explode(' ', $x); $string = ''; foreach($words as $word){ $string .= ((strtoupper($word) == $word && !in_array($word, array('I'))) ? '<b>' . $word . '</b>' : $word) . ' '; } echo $string;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 26
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 26
Branch analysis from position: 9
2 jumps found. (Code = 46) Position 1 = 14, Position 2 = 17
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 22
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 17
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
filename:       /in/fiUoF
function name:  (null)
number of ops:  29
compiled vars:  !0 = $x, !1 = $words, !2 = $string, !3 = $word
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'I+wish+for+choice+cards+spelling+PREJOIN+%27coz+I+love+Nature.'
    3     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '+'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    4     6        ASSIGN                                                   !2, ''
    5     7      > FE_RESET_R                                       $8      !1, ->26
          8    > > FE_FETCH_R                                               $8, !3, ->26
    6     9    >   INIT_FCALL                                               'strtoupper'
         10        SEND_VAR                                                 !3
         11        DO_ICALL                                         $9      
         12        IS_EQUAL                                         ~10     !3, $9
         13      > JMPZ_EX                                          ~10     ~10, ->17
         14    >   IN_ARRAY                                         ~11     !3, <array>
         15        BOOL_NOT                                         ~12     ~11
         16        BOOL                                             ~10     ~12
         17    > > JMPZ                                                     ~10, ->22
         18    >   CONCAT                                           ~13     '%3Cb%3E', !3
         19        CONCAT                                           ~14     ~13, '%3C%2Fb%3E'
         20        QM_ASSIGN                                        ~15     ~14
         21      > JMP                                                      ->23
         22    >   QM_ASSIGN                                        ~15     !3
         23    >   CONCAT                                           ~16     ~15, '+'
         24        ASSIGN_OP                                     8          !2, ~16
    5    25      > JMP                                                      ->8
         26    >   FE_FREE                                                  $8
    8    27        ECHO                                                     !2
    9    28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.51 ms | 1004 KiB | 15 Q