3v4l.org

run code in 300+ PHP versions simultaneously
<?php //差分を見て前回から更新があったかどうか確認 $old_article = fopen("https://i-bitzedge.com/cron/test/test_old.txt","r"); $new_article = fopen("https://i-bitzedge.com/cron/test/test_new_txt","r"); fclose($old_article); fclose($new_article); $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 = 24, Position 2 = 26
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
filename:       /in/3osjT
function name:  (null)
number of ops:  27
compiled vars:  !0 = $old_article, !1 = $new_article, !2 = $diff
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'fopen'
          1        SEND_VAL                                                 'https%3A%2F%2Fi-bitzedge.com%2Fcron%2Ftest%2Ftest_old.txt'
          2        SEND_VAL                                                 'r'
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    5     5        INIT_FCALL                                               'fopen'
          6        SEND_VAL                                                 'https%3A%2F%2Fi-bitzedge.com%2Fcron%2Ftest%2Ftest_new_txt'
          7        SEND_VAL                                                 'r'
          8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !1, $5
    8    10        INIT_FCALL                                               'fclose'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
    9    13        INIT_FCALL                                               'fclose'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
   13    16        INIT_FCALL_BY_NAME                                       'xdiff_string_diff'
         17        SEND_VAR_EX                                              !0
         18        SEND_VAR_EX                                              !1
         19        SEND_VAL_EX                                              1
         20        DO_FCALL                                      0  $9      
         21        ASSIGN                                                   !2, $9
   14    22        TYPE_CHECK                                   64          !2
         23      > JMPZ                                                     ~11, ->26
   15    24    >   ECHO                                                     '2+%E3%81%A4%E3%81%AE%E8%A8%98%E4%BA%8B%E3%81%AE%E5%B7%AE%E5%88%86%3A%0A'
   16    25        ECHO                                                     !2
   20    26    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.59 ms | 1387 KiB | 17 Q