3v4l.org

run code in 300+ PHP versions simultaneously
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <?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 = 29, Position 2 = 31
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
filename:       /in/bnKWl
function name:  (null)
number of ops:  32
compiled vars:  !0 = $old_article, !1 = $new_article, !2 = $diff
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3Cmeta+http-equiv%3D%22Content-Type%22+content%3D%22text%2Fhtml%3B+charset%3DUTF-8%22%3E%0A'
    5     1        INIT_FCALL                                               'file_get_contents'
          2        SEND_VAL                                                 ''
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    6     5        INIT_FCALL                                               'file_get_contents'
          6        SEND_VAL                                                 ''
          7        DO_ICALL                                         $5      
          8        ASSIGN                                                   !1, $5
    7     9        INIT_FCALL                                               'mb_convert_encoding'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 'SJIS'
         12        SEND_VAL                                                 'UTF-8'
         13        DO_ICALL                                         $7      
         14        ASSIGN                                                   !0, $7
    8    15        INIT_FCALL                                               'mb_convert_encoding'
         16        SEND_VAR                                                 !1
         17        SEND_VAL                                                 'SJIS'
         18        SEND_VAL                                                 'UTF-8'
         19        DO_ICALL                                         $9      
         20        ASSIGN                                                   !1, $9
   11    21        INIT_FCALL_BY_NAME                                       'xdiff_string_diff'
         22        SEND_VAR_EX                                              !0
         23        SEND_VAR_EX                                              !1
         24        SEND_VAL_EX                                              1
         25        DO_FCALL                                      0  $11     
         26        ASSIGN                                                   !2, $11
   12    27        TYPE_CHECK                                   64          !2
         28      > JMPZ                                                     ~13, ->31
   13    29    >   ECHO                                                     '2+%E3%81%A4%E3%81%AE%E5%B7%AE%E5%88%86%3A%0A'
   14    30        ECHO                                                     !2
   17    31    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.49 ms | 1396 KiB | 17 Q