3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html=<<<HTML <!DOCTYPE html> <html lang="en"> <head> <script> function test(a) { for(let n=0; n < a.length; n++){ console.log(a[n]); } }; test(['one', 'two']); </script> </head> <body> <p>content</p> </body> </html> HTML; var_dump(strip_tags($html));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VZ6t6
function name:  (null)
number of ops:  8
compiled vars:  !0 = $html
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3C%21DOCTYPE+html%3E%0A%3Chtml+lang%3D%22en%22%3E%0A%3Chead%3E%0A%09%3Cscript%3E%0A%09%09function+test%28a%29+%7B%0A%09%09%09for%28let+n%3D0%3B+n+%3C+a.length%3B+n%2B%2B%29%7B%0A%09%09%09%09console.log%28a%5Bn%5D%29%3B%0A%09%09%09%7D%0A%09%09%7D%3B%0A%09%09test%28%5B%27one%27%2C+%27two%27%5D%29%3B%0A%09%3C%2Fscript%3E%0A%3C%2Fhead%3E%0A%3Cbody%3E%0A%09%3Cp%3Econtent%3C%2Fp%3E%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   22     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'strip_tags'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
133.61 ms | 1398 KiB | 17 Q