3v4l.org

run code in 300+ PHP versions simultaneously
<?php //差分を見て前回から更新があったかどうか確認 $old_article = file_get_contents(''); $new_article = file_get_contents(''); $old_article = mb_convert_encoding($old_article, "SJIS", "UTF-8"); $new_article = mb_convert_encoding($new_article, "SJIS", "UTF-8"); $diff = xdiff_string_diff($old_article, $new_article, 1); if (is_string($diff)) { echo "2 つの差分:\n"; echo $diff; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 28, Position 2 = 30
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
filename:       /in/47fpd
function name:  (null)
number of ops:  31
compiled vars:  !0 = $old_article, !1 = $new_article, !2 = $diff
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'file_get_contents'
          1        SEND_VAL                                                 ''
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    5     4        INIT_FCALL                                               'file_get_contents'
          5        SEND_VAL                                                 ''
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
    6     8        INIT_FCALL                                               'mb_convert_encoding'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 'SJIS'
         11        SEND_VAL                                                 'UTF-8'
         12        DO_ICALL                                         $7      
         13        ASSIGN                                                   !0, $7
    7    14        INIT_FCALL                                               'mb_convert_encoding'
         15        SEND_VAR                                                 !1
         16        SEND_VAL                                                 'SJIS'
         17        SEND_VAL                                                 'UTF-8'
         18        DO_ICALL                                         $9      
         19        ASSIGN                                                   !1, $9
   10    20        INIT_FCALL_BY_NAME                                       'xdiff_string_diff'
         21        SEND_VAR_EX                                              !0
         22        SEND_VAR_EX                                              !1
         23        SEND_VAL_EX                                              1
         24        DO_FCALL                                      0  $11     
         25        ASSIGN                                                   !2, $11
   11    26        TYPE_CHECK                                   64          !2
         27      > JMPZ                                                     ~13, ->30
   12    28    >   ECHO                                                     '2+%E3%81%A4%E3%81%AE%E5%B7%AE%E5%88%86%3A%0A'
   13    29        ECHO                                                     !2
   16    30    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.03 ms | 1396 KiB | 17 Q