3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str_source = "CLOBETASOL PROPIONATE"; $str_target = "CLOBETASOL PROPIONATE 0.05% CREAM TUBE"; if(str_word_count($str_target) >= str_word_count($str_source)){ echo $finalStringarray = implode(' ',array_diff(explode(' ',$str_target),explode(' ',$str_source))); } if(str_word_count($str_source) >= str_word_count($str_target)){ echo $finalStringarray = implode(' ',array_diff(explode(' ',$str_source),explode(' ',$str_target))); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 28
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 36, Position 2 = 54
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 54
Branch analysis from position: 28
filename:       /in/p3o8n
function name:  (null)
number of ops:  55
compiled vars:  !0 = $str_source, !1 = $str_target, !2 = $finalStringarray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'CLOBETASOL+PROPIONATE'
    4     1        ASSIGN                                                   !1, 'CLOBETASOL+PROPIONATE+0.05%25+CREAM+TUBE'
    6     2        INIT_FCALL                                               'str_word_count'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                         $5      
          5        INIT_FCALL                                               'str_word_count'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $6      
          8        IS_SMALLER_OR_EQUAL                                      $6, $5
          9      > JMPZ                                                     ~7, ->28
    7    10    >   INIT_FCALL                                               'implode'
         11        SEND_VAL                                                 '+'
         12        INIT_FCALL                                               'array_diff'
         13        INIT_FCALL                                               'explode'
         14        SEND_VAL                                                 '+'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                         $8      
         17        SEND_VAR                                                 $8
         18        INIT_FCALL                                               'explode'
         19        SEND_VAL                                                 '+'
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                         $9      
         22        SEND_VAR                                                 $9
         23        DO_ICALL                                         $10     
         24        SEND_VAR                                                 $10
         25        DO_ICALL                                         $11     
         26        ASSIGN                                           ~12     !2, $11
         27        ECHO                                                     ~12
    9    28    >   INIT_FCALL                                               'str_word_count'
         29        SEND_VAR                                                 !0
         30        DO_ICALL                                         $13     
         31        INIT_FCALL                                               'str_word_count'
         32        SEND_VAR                                                 !1
         33        DO_ICALL                                         $14     
         34        IS_SMALLER_OR_EQUAL                                      $14, $13
         35      > JMPZ                                                     ~15, ->54
   10    36    >   INIT_FCALL                                               'implode'
         37        SEND_VAL                                                 '+'
         38        INIT_FCALL                                               'array_diff'
         39        INIT_FCALL                                               'explode'
         40        SEND_VAL                                                 '+'
         41        SEND_VAR                                                 !0
         42        DO_ICALL                                         $16     
         43        SEND_VAR                                                 $16
         44        INIT_FCALL                                               'explode'
         45        SEND_VAL                                                 '+'
         46        SEND_VAR                                                 !1
         47        DO_ICALL                                         $17     
         48        SEND_VAR                                                 $17
         49        DO_ICALL                                         $18     
         50        SEND_VAR                                                 $18
         51        DO_ICALL                                         $19     
         52        ASSIGN                                           ~20     !2, $19
         53        ECHO                                                     ~20
   11    54    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.15 ms | 1404 KiB | 21 Q