3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = "<p>He ran towards jungle like a mad man.</p> <p>He ran away.</p> <table> <tbody> <tr><th>Name</th></tr> <tr><td>Moodle</td></tr> <tr><td>Dspace</td></tr> </tbody></table>"; $words = preg_split("/[\n\r\t ]+/", $data,0, PREG_SPLIT_NO_EMPTY); var_dump($words); $words1 = explode(" ", $data); var_dump($words1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JAWpd
function name:  (null)
number of ops:  20
compiled vars:  !0 = $data, !1 = $words, !2 = $words1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cp%3EHe+ran+towards+jungle+like+a+mad+man.%3C%2Fp%3E%0A%3Cp%3EHe+ran+away.%3C%2Fp%3E%0A%3Ctable%3E%0A%3Ctbody%3E%0A%3Ctr%3E%3Cth%3EName%3C%2Fth%3E%3C%2Ftr%3E%0A%3Ctr%3E%3Ctd%3EMoodle%3C%2Ftd%3E%3C%2Ftr%3E%0A%3Ctr%3E%3Ctd%3EDspace%3C%2Ftd%3E%3C%2Ftr%3E%0A%3C%2Ftbody%3E%3C%2Ftable%3E'
   12     1        INIT_FCALL                                               'preg_split'
          2        SEND_VAL                                                 '%2F%5B%0A%0D%09+%5D%2B%2F'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 0
          5        SEND_VAL                                                 1
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !1, $4
   13     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
   15    11        INIT_FCALL                                               'explode'
         12        SEND_VAL                                                 '+'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $7      
         15        ASSIGN                                                   !2, $7
   16    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !2
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.38 ms | 1395 KiB | 19 Q