3v4l.org

run code in 300+ PHP versions simultaneously
<?php header('Content-Type: text/plain'); //charset=utf-8" // Some data $ydata = array(11,3,8,12,5,1,9,13,5,7); // Create the graph. These two calls are always required $graph = new Graph(350,250); $graph->SetScale('textlin'); // Create the linear plot $lineplot=new LinePlot($ydata); $lineplot->SetColor('blue'); // Add the plot to the graph $graph->Add($lineplot); // Display the graph $graph->Stroke(); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pfiD4
function name:  (null)
number of ops:  25
compiled vars:  !0 = $ydata, !1 = $graph, !2 = $lineplot
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'header'
          1        SEND_VAL                                                 'Content-Type%3A+text%2Fplain'
          2        DO_ICALL                                                 
    5     3        ASSIGN                                                   !0, <array>
    8     4        NEW                                              $5      'Graph'
          5        SEND_VAL_EX                                              350
          6        SEND_VAL_EX                                              250
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !1, $5
    9     9        INIT_METHOD_CALL                                         !1, 'SetScale'
         10        SEND_VAL_EX                                              'textlin'
         11        DO_FCALL                                      0          
   12    12        NEW                                              $9      'LinePlot'
         13        SEND_VAR_EX                                              !0
         14        DO_FCALL                                      0          
         15        ASSIGN                                                   !2, $9
   13    16        INIT_METHOD_CALL                                         !2, 'SetColor'
         17        SEND_VAL_EX                                              'blue'
         18        DO_FCALL                                      0          
   16    19        INIT_METHOD_CALL                                         !1, 'Add'
         20        SEND_VAR_EX                                              !2
         21        DO_FCALL                                      0          
   19    22        INIT_METHOD_CALL                                         !1, 'Stroke'
         23        DO_FCALL                                      0          
   20    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.82 ms | 1395 KiB | 15 Q