3v4l.org

run code in 500+ PHP versions simultaneously
<?php $contents = <<<EOS "cell1","cell2\\","cell3","cell4" "\\\\\\line1 line2\\\\\\" EOS; $file = new SplTempFileObject; $file->fwrite($contents); $file->rewind(); while (($data = $file->fgetcsv(',', '"', ''))) { print_r($data); } $xconnect = $file; $dom = new DOMDocument; $dom->loadXML("<root><x/><x xmlns:a=\"urn:a\" xmlns:b=\"urn:b\"/><x xmlns:b=\"urn:b\" xmlns:a=\"urn:a\"/></root>"); foreach ($dom->getElementsByTagName('x') as $x1) { foreach ($dom->getElementsByTagName('x') as $x2) { echo "Comparing ", $dom->saveXML($x1), " with ", $dom->saveXML($x2), "\n"; var_dump($x1->isEqualNode($x2)); } } $xconnect = $xconnect.$dom; eval($xconnect); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 10
Branch analysis from position: 20
2 jumps found. (Code = 77) Position 1 = 31, Position 2 = 57
Branch analysis from position: 31
2 jumps found. (Code = 78) Position 1 = 32, Position 2 = 57
Branch analysis from position: 32
2 jumps found. (Code = 77) Position 1 = 36, Position 2 = 55
Branch analysis from position: 36
2 jumps found. (Code = 78) Position 1 = 37, Position 2 = 55
Branch analysis from position: 37
1 jumps found. (Code = 42) Position 1 = 36
Branch analysis from position: 36
Branch analysis from position: 55
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
Branch analysis from position: 55
Branch analysis from position: 57
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 57
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 10
Branch analysis from position: 20
Branch analysis from position: 10
filename:       /in/md1YH
function name:  (null)
number of ops:  62
compiled vars:  !0 = $contents, !1 = $file, !2 = $data, !3 = $xconnect, !4 = $dom, !5 = $x1, !6 = $x2
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, '%22cell1%22%2C%22cell2%5C%22%2C%22cell3%22%2C%22cell4%22%0A%22%5C%5C%5Cline1%0Aline2%5C%5C%5C%22'
    7     1        NEW                                                  $8      'SplTempFileObject'
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !1, $8
    8     4        INIT_METHOD_CALL                                             !1, 'fwrite'
          5        SEND_VAR_EX                                                  !0
          6        DO_FCALL                                          0          
    9     7        INIT_METHOD_CALL                                             !1, 'rewind'
          8        DO_FCALL                                          0          
   10     9      > JMP                                                          ->13
   11    10    >   INIT_FCALL                                                   'print_r'
         11        SEND_VAR                                                     !2
         12        DO_ICALL                                                     
   10    13    >   INIT_METHOD_CALL                                             !1, 'fgetcsv'
         14        SEND_VAL_EX                                                  '%2C'
         15        SEND_VAL_EX                                                  '%22'
         16        SEND_VAL_EX                                                  ''
         17        DO_FCALL                                          0  $14     
         18        ASSIGN                                               ~15     !2, $14
         19      > JMPNZ                                                        ~15, ->10
   13    20    >   ASSIGN                                                       !3, !1
   14    21        NEW                                                  $17     'DOMDocument'
         22        DO_FCALL                                          0          
         23        ASSIGN                                                       !4, $17
   15    24        INIT_METHOD_CALL                                             !4, 'loadXML'
         25        SEND_VAL_EX                                                  '%3Croot%3E%3Cx%2F%3E%3Cx+xmlns%3Aa%3D%22urn%3Aa%22+xmlns%3Ab%3D%22urn%3Ab%22%2F%3E%3Cx+xmlns%3Ab%3D%22urn%3Ab%22+xmlns%3Aa%3D%22urn%3Aa%22%2F%3E%3C%2Froot%3E'
         26        DO_FCALL                                          0          
   16    27        INIT_METHOD_CALL                                             !4, 'getElementsByTagName'
         28        SEND_VAL_EX                                                  'x'
         29        DO_FCALL                                          0  $21     
         30      > FE_RESET_R                                           $22     $21, ->57
         31    > > FE_FETCH_R                                                   $22, !5, ->57
   17    32    >   INIT_METHOD_CALL                                             !4, 'getElementsByTagName'
         33        SEND_VAL_EX                                                  'x'
         34        DO_FCALL                                          0  $23     
         35      > FE_RESET_R                                           $24     $23, ->55
         36    > > FE_FETCH_R                                                   $24, !6, ->55
   18    37    >   ECHO                                                         'Comparing+'
         38        INIT_METHOD_CALL                                             !4, 'saveXML'
         39        SEND_VAR_EX                                                  !5
         40        DO_FCALL                                          0  $25     
         41        ECHO                                                         $25
         42        ECHO                                                         '+with+'
         43        INIT_METHOD_CALL                                             !4, 'saveXML'
         44        SEND_VAR_EX                                                  !6
         45        DO_FCALL                                          0  $26     
         46        ECHO                                                         $26
         47        ECHO                                                         '%0A'
   19    48        INIT_FCALL                                                   'var_dump'
         49        INIT_METHOD_CALL                                             !5, 'isEqualNode'
         50        SEND_VAR_EX                                                  !6
         51        DO_FCALL                                          0  $27     
         52        SEND_VAR                                                     $27
         53        DO_ICALL                                                     
   17    54      > JMP                                                          ->36
         55    >   FE_FREE                                                      $24
   16    56      > JMP                                                          ->31
         57    >   FE_FREE                                                      $22
   22    58        CONCAT                                               ~29     !3, !4
         59        ASSIGN                                                       !3, ~29
   23    60        INCLUDE_OR_EVAL                                              !3, EVAL
   24    61      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
128.33 ms | 485 KiB | 9 Q