3v4l.org

run code in 300+ PHP versions simultaneously
<?php require_once 'https://rawgit.com/thomasjbradley/signature-to-image/master/signature-to-image.php'; $img = sigJsonToImage(file_get_contents('https://rawgit.com/thomasjbradley/signature-to-image/master/examples/signature-from-json/sig-output.json')); // Save to file //imagepng($img, 'signature.png'); // Output to browser header('Content-Type: image/png'); imagepng($img); // Destroy the image in memory when complete imagedestroy($img);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/19BWU
function name:  (null)
number of ops:  18
compiled vars:  !0 = $img
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INCLUDE_OR_EVAL                                          'https%3A%2F%2Frawgit.com%2Fthomasjbradley%2Fsignature-to-image%2Fmaster%2Fsignature-to-image.php', REQUIRE_ONCE
    4     1        INIT_FCALL_BY_NAME                                       'sigJsonToImage'
          2        INIT_FCALL                                               'file_get_contents'
          3        SEND_VAL                                                 'https%3A%2F%2Frawgit.com%2Fthomasjbradley%2Fsignature-to-image%2Fmaster%2Fexamples%2Fsignature-from-json%2Fsig-output.json'
          4        DO_ICALL                                         $2      
          5        SEND_VAR_NO_REF_EX                                       $2
          6        DO_FCALL                                      0  $3      
          7        ASSIGN                                                   !0, $3
   10     8        INIT_FCALL                                               'header'
          9        SEND_VAL                                                 'Content-Type%3A+image%2Fpng'
         10        DO_ICALL                                                 
   11    11        INIT_FCALL_BY_NAME                                       'imagepng'
         12        SEND_VAR_EX                                              !0
         13        DO_FCALL                                      0          
   14    14        INIT_FCALL_BY_NAME                                       'imagedestroy'
         15        SEND_VAR_EX                                              !0
         16        DO_FCALL                                      0          
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.69 ms | 1395 KiB | 17 Q