3v4l.org

run code in 300+ PHP versions simultaneously
<html> <head> <title>BeagleBone Temperatur</title> <script type="text/javascript" src="https://www.google.com/jsapi"></script> <script type="text/javascript"> google.load("visualization", "1", {packages:["corechart"]}); google.setOnLoadCallback(drawChart); function drawChart() { var data = google.visualization.arrayToDataTable([ ['Messzeit', 'Temperatur'], <?php $con = mysqli_connect("localhost", "root", "", "casa_db"); $query = "SELECT * FROM TempTable"; $result = mysqli_query($con, $query); mysqli_close($con); while ($row = mysqli_fetch_array($result)) { $time = $row['Messzeit']; $temp = $row['Temperatur']; echo "['$time', $temp],"; } ?> ]); var options = { title: 'BeagleBone gemessene Temperatur', vAxis: { title: "Grad Celsius" } }; var chart = new google.visualization.LineChart(document.getElementById('chart_div')); chart.draw(data, options); } </script> </head> <body> <div id="chart_div" style="width: 900px; height: 500px;"></div> </body> </html>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 18
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 18
Branch analysis from position: 33
Branch analysis from position: 18
filename:       /in/0I0RY
function name:  (null)
number of ops:  35
compiled vars:  !0 = $con, !1 = $query, !2 = $result, !3 = $time, !4 = $row, !5 = $temp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3Chtml%3E%0A%3Chead%3E%0A%3Ctitle%3EBeagleBone+Temperatur%3C%2Ftitle%3E%0A%0A%3Cscript+type%3D%22text%2Fjavascript%22+src%3D%22https%3A%2F%2Fwww.google.com%2Fjsapi%22%3E%3C%2Fscript%3E%0A%0A%3Cscript+type%3D%22text%2Fjavascript%22%3E%0Agoogle.load%28%22visualization%22%2C+%221%22%2C+%7Bpackages%3A%5B%22corechart%22%5D%7D%29%3B%0Agoogle.setOnLoadCallback%28drawChart%29%3B%0A%0Afunction+drawChart%28%29+%7B%0A%0Avar+data+%3D+google.visualization.arrayToDataTable%28%5B%0A%0A%5B%27Messzeit%27%2C+%27Temperatur%27%5D%2C%0A%0A'
   19     1        INIT_FCALL_BY_NAME                                       'mysqli_connect'
          2        SEND_VAL_EX                                              'localhost'
          3        SEND_VAL_EX                                              'root'
          4        SEND_VAL_EX                                              ''
          5        SEND_VAL_EX                                              'casa_db'
          6        DO_FCALL                                      0  $6      
          7        ASSIGN                                                   !0, $6
   22     8        ASSIGN                                                   !1, 'SELECT+%2A+FROM+TempTable'
   23     9        INIT_FCALL_BY_NAME                                       'mysqli_query'
         10        SEND_VAR_EX                                              !0
         11        SEND_VAR_EX                                              !1
         12        DO_FCALL                                      0  $9      
         13        ASSIGN                                                   !2, $9
   24    14        INIT_FCALL_BY_NAME                                       'mysqli_close'
         15        SEND_VAR_EX                                              !0
         16        DO_FCALL                                      0          
   27    17      > JMP                                                      ->28
   30    18    >   FETCH_DIM_R                                      ~12     !4, 'Messzeit'
         19        ASSIGN                                                   !3, ~12
   32    20        FETCH_DIM_R                                      ~14     !4, 'Temperatur'
         21        ASSIGN                                                   !5, ~14
   34    22        ROPE_INIT                                     5  ~17     '%5B%27'
         23        ROPE_ADD                                      1  ~17     ~17, !3
         24        ROPE_ADD                                      2  ~17     ~17, '%27%2C+'
         25        ROPE_ADD                                      3  ~17     ~17, !5
         26        ROPE_END                                      4  ~16     ~17, '%5D%2C'
         27        ECHO                                                     ~16
   27    28    >   INIT_FCALL_BY_NAME                                       'mysqli_fetch_array'
         29        SEND_VAR_EX                                              !2
         30        DO_FCALL                                      0  $20     
         31        ASSIGN                                           ~21     !4, $20
         32      > JMPNZ                                                    ~21, ->18
   38    33    >   ECHO                                                     '%0A%5D%29%3B%0A%0Avar+options+%3D+%7B%0A%0Atitle%3A+%27BeagleBone+gemessene+Temperatur%27%2C%0A%0AvAxis%3A+%7B+title%3A+%22Grad+Celsius%22+%7D%0A%0A%7D%3B%0A%0Avar+chart+%3D+new+google.visualization.LineChart%28document.getElementById%28%27chart_div%27%29%29%3B%0A%0Achart.draw%28data%2C+options%29%3B%0A%7D%0A%0A%3C%2Fscript%3E%0A%3C%2Fhead%3E%0A++%3Cbody%3E%0A++++%3Cdiv+id%3D%22chart_div%22+style%3D%22width%3A+900px%3B+height%3A+500px%3B%22%3E%3C%2Fdiv%3E%0A++%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   59    34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.25 ms | 1399 KiB | 13 Q