3v4l.org

run code in 300+ PHP versions simultaneously
<?php $calendar_code = ' <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta content="text/html; charset=us-ascii"> <meta name="Generator" content="Microsoft Word 15 (filtered medium)"> <style> <!-- @font-face {font-family:"Cambria Math"} @font-face font-family:"Calibri",sans-serif} p.msonormal0, li.msonormal0, div.msonormal0 .MsoChpDefault {font-size:10.0pt; font-family:"Calibri",sans-serif} @page WordSection1 {margin:72.0pt 72.0pt 72.0pt 72.0pt} div.WordSection1 {} ol {margin-bottom:0cm} ul {margin-bottom:0cm} --> </style> </head> <body lang="EN-GB" link="#0563C1" vlink="#954F72"> <div class="WordSection1"> <p class="MsoNormal">This is a test of the agenda and objectives format</p> <p class="MsoNormal">&nbsp;</p> <p class="MsoNormal">This shouldn’t get picked up</p> <p class="MsoNormal">&nbsp;</p> <p class="MsoNormal">Dasdasdasd d asda sd&nbsp; : asd obe: sad neither shood this</p> <p class="MsoNormal">&nbsp;</p> <p class="MsoNormal">Objective: This is how the object should look, this is a long one</p> <p class="MsoNormal">&nbsp;</p> <p class="MsoNormal">Agenda:</p> <p class="MsoListParagraph" style="text-indent:-18.0pt"><span style="">1.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span>Make like a tree</p> <p class="MsoListParagraph" style="text-indent:-18.0pt"><span style="">2.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span>And</p> <p class="MsoListParagraph" style="text-indent:-18.0pt"><span style="">3.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span>Get out of here</p> <p class="MsoNormal">&nbsp;</p> <p class="MsoNormal">Some more stuff here, and here and ::: ;s</p> <p class="MsoNormal">Sadfdsf sdfdfeswrfew </p> </div> </body> </html> '; function uniord($s) { return unpack('V', iconv('UTF-8', 'UCS-4LE', $s))[1]; } $strip = html_entity_decode(strip_tags($calendar_code)); preg_match_all("/^(\d+\.)[\s\x{00a0}]+([^\r\n]+)(?:[\r\n]*)/mu", $strip, $matches); print_r($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V7mMJ
function name:  (null)
number of ops:  17
compiled vars:  !0 = $calendar_code, !1 = $strip, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%0A%3Chead%3E%0A%3Cmeta+http-equiv%3D%22Content-Type%22+content%3D%22text%2Fhtml%3B+charset%3Dutf-8%22%3E%0A%3Cmeta+content%3D%22text%2Fhtml%3B+charset%3Dus-ascii%22%3E%0A%3Cmeta+name%3D%22Generator%22+content%3D%22Microsoft+Word+15+%28filtered+medium%29%22%3E%0A%3Cstyle%3E%0A%3C%21--%0A%40font-face%0A%7Bfont-family%3A%22Cambria+Math%22%7D%0A%40font-face%0A%0Afont-family%3A%22Calibri%22%2Csans-serif%7D%0Ap.msonormal0%2C+li.msonormal0%2C+div.msonormal0%0A.MsoChpDefault%0A%7Bfont-size%3A10.0pt%3B%0Afont-family%3A%22Calibri%22%2Csans-serif%7D%0A%40page+WordSection1%0A%7Bmargin%3A72.0pt+72.0pt+72.0pt+72.0pt%7D%0Adiv.WordSection1%0A%7B%7D%0Aol%0A%7Bmargin-bottom%3A0cm%7D%0Aul%0A%7Bmargin-bottom%3A0cm%7D%0A--%3E%0A%3C%2Fstyle%3E%0A%3C%2Fhead%3E%0A%3Cbody+lang%3D%22EN-GB%22+link%3D%22%230563C1%22+vlink%3D%22%23954F72%22%3E%0A%3Cdiv+class%3D%22WordSection1%22%3E%0A%3Cp+class%3D%22MsoNormal%22%3EThis+is+a+test+of+the+agenda+and+objectives+format%3C%2Fp%3E%0A%3Cp+class%3D%22MsoNormal%22%3E%26nbsp%3B%3C%2Fp%3E%0A%3Cp+class%3D%22MsoNormal%22%3EThis+shouldn%E2%80%99t+get+picked+up%3C%2Fp%3E%0A%3Cp+class%3D%22MsoNormal%22%3E%26nbsp%3B%3C%2Fp%3E%0A%3Cp+class%3D%22MsoNormal%22%3EDasdasdasd+d+asda+sd%26nbsp%3B+%3A+asd+obe%3A+sad+neither+shood+this%3C%2Fp%3E%0A%3Cp+class%3D%22MsoNormal%22%3E%26nbsp%3B%3C%2Fp%3E%0A%3Cp+class%3D%22MsoNormal%22%3EObjective%3A+This+is+how+the+object+should+look%2C+this+is+a+long+one%3C%2Fp%3E%0A%3Cp+class%3D%22MsoNormal%22%3E%26nbsp%3B%3C%2Fp%3E%0A%3Cp+class%3D%22MsoNormal%22%3EAgenda%3A%3C%2Fp%3E%0A%3Cp+class%3D%22MsoListParagraph%22+style%3D%22text-indent%3A-18.0pt%22%3E%3Cspan+style%3D%22%22%3E1.%3Cspan+style%3D%22font%3A7.0pt+%26quot%3BTimes+New+Roman%26quot%3B%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%0A%3C%2Fspan%3E%3C%2Fspan%3EMake+like+a+tree%3C%2Fp%3E%0A%3Cp+class%3D%22MsoListParagraph%22+style%3D%22text-indent%3A-18.0pt%22%3E%3Cspan+style%3D%22%22%3E2.%3Cspan+style%3D%22font%3A7.0pt+%26quot%3BTimes+New+Roman%26quot%3B%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%0A%3C%2Fspan%3E%3C%2Fspan%3EAnd%3C%2Fp%3E%0A%3Cp+class%3D%22MsoListParagraph%22+style%3D%22text-indent%3A-18.0pt%22%3E%3Cspan+style%3D%22%22%3E3.%3Cspan+style%3D%22font%3A7.0pt+%26quot%3BTimes+New+Roman%26quot%3B%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%0A%3C%2Fspan%3E%3C%2Fspan%3EGet+out+of+here%3C%2Fp%3E%0A%3Cp+class%3D%22MsoNormal%22%3E%26nbsp%3B%3C%2Fp%3E%0A%3Cp+class%3D%22MsoNormal%22%3ESome+more+stuff+here%2C+and+here+and+%3A%3A%3A+%3Bs%3C%2Fp%3E%0A%3Cp+class%3D%22MsoNormal%22%3ESadfdsf+sdfdfeswrfew+%3C%2Fp%3E%0A%3C%2Fdiv%3E%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E%0A'
   57     1        INIT_FCALL                                               'html_entity_decode'
          2        INIT_FCALL                                               'strip_tags'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        SEND_VAR                                                 $4
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
   59     8        INIT_FCALL                                               'preg_match_all'
          9        SEND_VAL                                                 '%2F%5E%28%5Cd%2B%5C.%29%5B%5Cs%5Cx%7B00a0%7D%5D%2B%28%5B%5E%0D%0A%5D%2B%29%28%3F%3A%5B%0D%0A%5D%2A%29%2Fmu'
         10        SEND_VAR                                                 !1
         11        SEND_REF                                                 !2
         12        DO_ICALL                                                 
   60    13        INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Function uniord:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V7mMJ
function name:  uniord
number of ops:  13
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   54     0  E >   RECV                                             !0      
   55     1        INIT_FCALL                                               'unpack'
          2        SEND_VAL                                                 'V'
          3        INIT_FCALL_BY_NAME                                       'iconv'
          4        SEND_VAL_EX                                              'UTF-8'
          5        SEND_VAL_EX                                              'UCS-4LE'
          6        SEND_VAR_EX                                              !0
          7        DO_FCALL                                      0  $1      
          8        SEND_VAR                                                 $1
          9        DO_ICALL                                         $2      
         10        FETCH_DIM_R                                      ~3      $2, 1
         11      > RETURN                                                   ~3
   56    12*     > RETURN                                                   null

End of function uniord

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.71 ms | 1009 KiB | 18 Q