3v4l.org

run code in 500+ PHP versions simultaneously
<?php $plaintext_content = '<&>: &lt;&amp;&gt;'; $plaintext_content = strtr( $plaintext_content, array( '<' => '&lt;', '&' => '&amp;', '>' => '&gt;', ) ); echo $plaintext_content === '&lt;&amp;&gt;: &amp;lt;&amp;amp;&amp;gt;' ? '✅ PASS' : '❌ FAIL'; echo "\n"; echo 'Actual: ' . $plaintext_content;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0Kf28
function name:  (null)
number of ops:  13
compiled vars:  !0 = $plaintext_content
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%3C%26%3E%3A+%26lt%3B%26amp%3B%26gt%3B'
    5     1        FRAMELESS_ICALL_2                strtr               ~2      !0, <array>
          2        ASSIGN                                                       !0, ~2
   14     3        IS_IDENTICAL                                                 !0, '%26lt%3B%26amp%3B%26gt%3B%3A+%26amp%3Blt%3B%26amp%3Bamp%3B%26amp%3Bgt%3B'
          4      > JMPZ                                                         ~4, ->7
          5    >   QM_ASSIGN                                            ~5      '%E2%9C%85+PASS'
          6      > JMP                                                          ->8
          7    >   QM_ASSIGN                                            ~5      '%E2%9D%8C+FAIL'
          8    >   ECHO                                                         ~5
   15     9        ECHO                                                         '%0A'
   16    10        CONCAT                                               ~6      'Actual%3A+', !0
         11        ECHO                                                         ~6
   17    12      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
150.14 ms | 2773 KiB | 8 Q