3v4l.org

run code in 300+ PHP versions simultaneously
<?php $in = "0 0 0 0 0.5230792 0 0 0 0.4769208 0 0 0 "; $data = preg_split("/[\s\n]/",$in); $count = count($in); $length = 1000; $size = $length/$count; $height = 100; print "<svg width='$length' height='$height'>"; $x = 0; foreach ($data as $line) { $inte = floor($line*255); print "<rect x='$x' y='0' width='$size' height='$height' style='fill:rgb($inte,$inte,$inte);stroke-width:1;stroke:white' />"; $x = $x+$size; } print "</svg>"; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 20, Position 2 = 43
Branch analysis from position: 20
2 jumps found. (Code = 78) Position 1 = 21, Position 2 = 43
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
Branch analysis from position: 43
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 43
filename:       /in/uXJX4
function name:  (null)
number of ops:  46
compiled vars:  !0 = $in, !1 = $data, !2 = $count, !3 = $length, !4 = $size, !5 = $height, !6 = $x, !7 = $line, !8 = $inte
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '0+0+0+0+0.5230792+0+0+0+0.4769208+0%0A0+0%0A'
    5     1        INIT_FCALL                                               'preg_split'
          2        SEND_VAL                                                 '%2F%5B%5Cs%0A%5D%2F'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $10     
          5        ASSIGN                                                   !1, $10
    6     6        COUNT                                            ~12     !0
          7        ASSIGN                                                   !2, ~12
    7     8        ASSIGN                                                   !3, 1000
    8     9        DIV                                              ~15     !3, !2
         10        ASSIGN                                                   !4, ~15
    9    11        ASSIGN                                                   !5, 100
   10    12        ROPE_INIT                                     5  ~19     '%3Csvg+width%3D%27'
         13        ROPE_ADD                                      1  ~19     ~19, !3
         14        ROPE_ADD                                      2  ~19     ~19, '%27+height%3D%27'
         15        ROPE_ADD                                      3  ~19     ~19, !5
         16        ROPE_END                                      4  ~18     ~19, '%27%3E'
         17        ECHO                                                     ~18
   11    18        ASSIGN                                                   !6, 0
   12    19      > FE_RESET_R                                       $23     !1, ->43
         20    > > FE_FETCH_R                                               $23, !7, ->43
   13    21    >   INIT_FCALL                                               'floor'
         22        MUL                                              ~24     !7, 255
         23        SEND_VAL                                                 ~24
         24        DO_ICALL                                         $25     
         25        ASSIGN                                                   !8, $25
   14    26        ROPE_INIT                                    13  ~28     '%3Crect+x%3D%27'
         27        ROPE_ADD                                      1  ~28     ~28, !6
         28        ROPE_ADD                                      2  ~28     ~28, '%27+y%3D%270%27+width%3D%27'
         29        ROPE_ADD                                      3  ~28     ~28, !4
         30        ROPE_ADD                                      4  ~28     ~28, '%27+height%3D%27'
         31        ROPE_ADD                                      5  ~28     ~28, !5
         32        ROPE_ADD                                      6  ~28     ~28, '%27+style%3D%27fill%3Argb%28'
         33        ROPE_ADD                                      7  ~28     ~28, !8
         34        ROPE_ADD                                      8  ~28     ~28, '%2C'
         35        ROPE_ADD                                      9  ~28     ~28, !8
         36        ROPE_ADD                                     10  ~28     ~28, '%2C'
         37        ROPE_ADD                                     11  ~28     ~28, !8
         38        ROPE_END                                     12  ~27     ~28, '%29%3Bstroke-width%3A1%3Bstroke%3Awhite%27+%2F%3E'
         39        ECHO                                                     ~27
   15    40        ADD                                              ~35     !6, !4
         41        ASSIGN                                                   !6, ~35
   12    42      > JMP                                                      ->20
         43    >   FE_FREE                                                  $23
   17    44        ECHO                                                     '%3C%2Fsvg%3E'
   18    45      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.26 ms | 1400 KiB | 17 Q