3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = "<p>This is some <b>data</b> It has some <i>new lines</i> in it &amp; it has some <u>HTML</u> in it</p> <div>Look, there's some more new lines</div>"; var_dump($data); echo "\n\n"; $stripped = html_entity_decode(strip_tags($data)); var_dump($stripped); echo "\n\n"; $json = json_encode($stripped); var_dump($json); echo "\n\n"; $decoded = json_decode($json); var_dump($decoded);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mjZu2
function name:  (null)
number of ops:  32
compiled vars:  !0 = $data, !1 = $stripped, !2 = $json, !3 = $decoded
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cp%3EThis+is+some+%3Cb%3Edata%3C%2Fb%3E%0AIt+has+some+%3Ci%3Enew+lines%3C%2Fi%3E+in+it+%26amp%3B+it+has+some+%3Cu%3EHTML%3C%2Fu%3E+in+it%3C%2Fp%3E%0A%0A%3Cdiv%3ELook%2C+there%27s+some+more+new+lines%3C%2Fdiv%3E'
    8     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    9     4        ECHO                                                     '%0A%0A'
   11     5        INIT_FCALL                                               'html_entity_decode'
          6        INIT_FCALL                                               'strip_tags'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $6      
          9        SEND_VAR                                                 $6
         10        DO_ICALL                                         $7      
         11        ASSIGN                                                   !1, $7
   12    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
   13    15        ECHO                                                     '%0A%0A'
   15    16        INIT_FCALL                                               'json_encode'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $10     
         19        ASSIGN                                                   !2, $10
   16    20        INIT_FCALL                                               'var_dump'
         21        SEND_VAR                                                 !2
         22        DO_ICALL                                                 
   17    23        ECHO                                                     '%0A%0A'
   19    24        INIT_FCALL                                               'json_decode'
         25        SEND_VAR                                                 !2
         26        DO_ICALL                                         $13     
         27        ASSIGN                                                   !3, $13
   20    28        INIT_FCALL                                               'var_dump'
         29        SEND_VAR                                                 !3
         30        DO_ICALL                                                 
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.82 ms | 1388 KiB | 23 Q