3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = <<<EOT Article Morbi nisl tortor, consectetur vitae laoreet eu, lobortis id ipsum. Integer scelerisque blandit pulvinar. Nam tempus mi eget nunc laoreet venenatis. Proin viverra, erat at accumsan tincidunt, ante mi cursus elit, non Fogsu congue mauris dolor ac elit. Maecenas mollis nisl a sem semper ornare. Integer nunc purus, dapibus nec dignissim sed, dictum eget leo. Etiam in mi ut erat pretium fringilla sed EOT; $lines = explode($text, "\n"); print_r($text); $class = 'single'; foreach ($lines as $line) { if ( strlen($line) == 0) { $class = 'double'; } else { printf ('<p class="%s">%s</p>', $class, $line); $class = 'single'; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 24
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 24
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/ekZRF
function name:  (null)
number of ops:  26
compiled vars:  !0 = $text, !1 = $lines, !2 = $class, !3 = $line
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Article%0A%0AMorbi+nisl+tortor%2C+consectetur+vitae+laoreet+eu%2C+lobortis+id+ipsum.+Integer+scelerisque+blandit+pulvinar.+%0ANam+tempus+mi+eget+nunc+laoreet+venenatis.+Proin+viverra%2C+erat+at+accumsan+tincidunt%2C+ante+mi+cursus+elit%2C+non%0A%0AFogsu%0Acongue+mauris+dolor+ac+elit.+Maecenas+mollis+nisl+a+sem+semper+ornare.+Integer+nunc+purus%2C+dapibus+nec+dignissim+sed%2C+dictum+eget+leo.+Etiam+in+mi+ut+erat+pretium+fringilla+sed'
   13     1        INIT_FCALL                                               'explode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '%0A'
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
   14     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
   15     9        ASSIGN                                                   !2, 'single'
   16    10      > FE_RESET_R                                       $9      !1, ->24
         11    > > FE_FETCH_R                                               $9, !3, ->24
   17    12    >   STRLEN                                           ~10     !3
         13        IS_EQUAL                                                 ~10, 0
         14      > JMPZ                                                     ~11, ->17
   18    15    >   ASSIGN                                                   !2, 'double'
         16      > JMP                                                      ->23
   20    17    >   INIT_FCALL                                               'printf'
         18        SEND_VAL                                                 '%3Cp+class%3D%22%25s%22%3E%25s%3C%2Fp%3E'
         19        SEND_VAR                                                 !2
         20        SEND_VAR                                                 !3
         21        DO_ICALL                                                 
   21    22        ASSIGN                                                   !2, 'single'
   16    23    > > JMP                                                      ->11
         24    >   FE_FREE                                                  $9
   23    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.98 ms | 1396 KiB | 19 Q