3v4l.org

run code in 300+ PHP versions simultaneously
<?php $filename1 = "\x41\x6d\xC3\xA9\x6c\x69\x65"; $filename2 = "\x41\x6d\x65\xCC\x81\x6c\x69\x65"; file_put_contents($filename1, "Hello\n"); echo file_get_contents($filename2); $files = glob("Am*"); echo "There are ".count($files)."files\n"; foreach ($files as $fileOnDisk) { echo "strcmp val ".strcmp($filename1, $fileOnDisk)."\n"; echo "strcmp val ".strcmp($filename2, $fileOnDisk)."\n"; } exit(0);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 19, Position 2 = 35
Branch analysis from position: 19
2 jumps found. (Code = 78) Position 1 = 20, Position 2 = 35
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
Branch analysis from position: 35
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 35
filename:       /in/B8u54
function name:  (null)
number of ops:  38
compiled vars:  !0 = $filename1, !1 = $filename2, !2 = $files, !3 = $fileOnDisk
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'Am%C3%A9lie'
    5     1        ASSIGN                                                   !1, 'Ame%CC%81lie'
    7     2        INIT_FCALL                                               'file_put_contents'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 'Hello%0A'
          5        DO_ICALL                                                 
    8     6        INIT_FCALL                                               'file_get_contents'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $7      
          9        ECHO                                                     $7
   10    10        INIT_FCALL                                               'glob'
         11        SEND_VAL                                                 'Am%2A'
         12        DO_ICALL                                         $8      
         13        ASSIGN                                                   !2, $8
   11    14        COUNT                                            ~10     !2
         15        CONCAT                                           ~11     'There+are+', ~10
         16        CONCAT                                           ~12     ~11, 'files%0A'
         17        ECHO                                                     ~12
   14    18      > FE_RESET_R                                       $13     !2, ->35
         19    > > FE_FETCH_R                                               $13, !3, ->35
   15    20    >   INIT_FCALL                                               'strcmp'
         21        SEND_VAR                                                 !0
         22        SEND_VAR                                                 !3
         23        DO_ICALL                                         $14     
         24        CONCAT                                           ~15     'strcmp+val+', $14
         25        CONCAT                                           ~16     ~15, '%0A'
         26        ECHO                                                     ~16
   16    27        INIT_FCALL                                               'strcmp'
         28        SEND_VAR                                                 !1
         29        SEND_VAR                                                 !3
         30        DO_ICALL                                         $17     
         31        CONCAT                                           ~18     'strcmp+val+', $17
         32        CONCAT                                           ~19     ~18, '%0A'
         33        ECHO                                                     ~19
   14    34      > JMP                                                      ->19
         35    >   FE_FREE                                                  $13
   19    36      > EXIT                                                     0
         37*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.57 ms | 1396 KiB | 21 Q