3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php require_once 'http://rawgithub.com/thomasjbradley/signature-to-image/master/sig-output.json/signature-to-image.php'; $img = sigJsonToImage(file_get_contents('[{"lx":42,"ly":40,"mx":42,"my":39},{"lx":38,"ly":41,"mx":42,"my":40},{"lx":33,"ly":43,"mx":38,"my":41},{"lx":24,"ly":45,"mx":33,"my":43},{"lx":14,"ly":47,"mx":24,"my":45},{"lx":3,"ly":49,"mx":14,"my":47},{"lx":-7,"ly":52,"mx":3,"my":49},{"lx":3,"ly":21,"mx":3,"my":20},{"lx":9,"ly":19,"mx":3,"my":21},{"lx":12,"ly":19,"mx":9,"my":19},{"lx":13,"ly":19,"mx":12,"my":19},{"lx":14,"ly":19,"mx":13,"my":19},{"lx":15,"ly":19,"mx":14,"my":19},{"lx":16,"ly":21,"mx":15,"my":19},{"lx":17,"ly":24,"mx":16,"my":21},{"lx":17,"ly":27,"mx":17,"my":24},{"lx":17,"ly":30,"mx":17,"my":27},{"lx":16,"ly":33,"mx":17,"my":30},{"lx":15,"ly":36,"mx":16,"my":33},{"lx":14,"ly":39,"mx":15,"my":36},{"lx":12,"ly":41,"mx":14,"my":39},{"lx":10,"ly":43,"mx":12,"my":41},{"lx":6,"ly":47,"mx":10,"my":43},{"lx":0,"ly":51,"mx":6,"my":47},{"lx":-5,"ly":56,"mx":0,"my":51},{"lx":7,"ly":51,"mx":7,"my":50},{"lx":24,"ly":45,"mx":7,"my":51},{"lx":41,"ly":43,"mx":24,"my":45},{"lx":54,"ly":41,"mx":41,"my":43},{"lx":71,"ly":39,"mx":54,"my":41},{"lx":56,"ly":40,"mx":71,"my":39},{"lx":62,"ly":34,"mx":56,"my":40},{"lx":68,"ly":30,"mx":62,"my":34},{"lx":75,"ly":28,"mx":68,"my":30},{"lx":76,"ly":27,"mx":75,"my":28},{"lx":76,"ly":26,"mx":76,"my":27},{"lx":76,"ly":27,"mx":76,"my":26},{"lx":75,"ly":28,"mx":76,"my":27},{"lx":72,"ly":30,"mx":75,"my":28},{"lx":68,"ly":32,"mx":72,"my":30},{"lx":61,"ly":36,"mx":68,"my":32},{"lx":54,"ly":38,"mx":61,"my":36},{"lx":47,"ly":40,"mx":54,"my":38},{"lx":41,"ly":41,"mx":47,"my":40},{"lx":37,"ly":43,"mx":41,"my":41},{"lx":38,"ly":42,"mx":37,"my":43},{"lx":41,"ly":41,"mx":38,"my":42},{"lx":46,"ly":39,"mx":41,"my":41},{"lx":52,"ly":38,"mx":46,"my":39},{"lx":57,"ly":38,"mx":52,"my":38},{"lx":63,"ly":38,"mx":57,"my":38},{"lx":67,"ly":38,"mx":63,"my":38},{"lx":71,"ly":39,"mx":67,"my":38},{"lx":72,"ly":42,"mx":71,"my":39},{"lx":73,"ly":45,"mx":72,"my":42},{"lx":73,"ly":47,"mx":73,"my":45},{"lx":73,"ly":50,"mx":73,"my":47},{"lx":72,"ly":52,"mx":73,"my":50},{"lx":69,"ly":54,"mx":72,"my":52},{"lx":66,"ly":55,"mx":69,"my":54},{"lx":60,"ly":56,"mx":66,"my":55},{"lx":53,"ly":56,"mx":60,"my":56},{"lx":44,"ly":56,"mx":53,"my":56},{"lx":32,"ly":54,"mx":44,"my":56},{"lx":19,"ly":51,"mx":32,"my":54},{"lx":7,"ly":46,"mx":19,"my":51},{"lx":-4,"ly":42,"mx":7,"my":46},{"lx":2,"ly":23,"mx":2,"my":22},{"lx":19,"ly":20,"mx":2,"my":23},{"lx":40,"ly":18,"mx":19,"my":20},{"lx":61,"ly":16,"mx":40,"my":18},{"lx":82,"ly":14,"mx":61,"my":16},{"lx":99,"ly":14,"mx":82,"my":14},{"lx":112,"ly":14,"mx":99,"my":14},{"lx":121,"ly":16,"mx":112,"my":14},{"lx":123,"ly":17,"mx":121,"my":16},{"lx":124,"ly":19,"mx":123,"my":17},{"lx":124,"ly":20,"mx":124,"my":19},{"lx":124,"ly":21,"mx":124,"my":20},{"lx":124,"ly":22,"mx":124,"my":21},{"lx":124,"ly":23,"mx":124,"my":22},{"lx":124,"ly":24,"mx":124,"my":23},{"lx":124,"ly":23,"mx":124,"my":24},{"lx":126,"ly":21,"mx":124,"my":23},{"lx":128,"ly":18,"mx":126,"my":21},{"lx":129,"ly":15,"mx":128,"my":18},{"lx":130,"ly":13,"mx":129,"my":15},{"lx":130,"ly":12,"mx":130,"my":13},{"lx":130,"ly":11,"mx":130,"my":12},{"lx":130,"ly":10,"mx":130,"my":11},{"lx":129,"ly":11,"mx":130,"my":10},{"lx":128,"ly":13,"mx":129,"my":11},{"lx":127,"ly":16,"mx":128,"my":13},{"lx":125,"ly":19,"mx":127,"my":16},{"lx":123,"ly":25,"mx":125,"my":19},{"lx":119,"ly":30,"mx":123,"my":25},{"lx":115,"ly":36,"mx":119,"my":30},{"lx":111,"ly":41,"mx":115,"my":36},{"lx":107,"ly":43,"mx":111,"my":41},{"lx":103,"ly":44,"mx":107,"my":43},{"lx":102,"ly":46,"mx":103,"my":44},{"lx":101,"ly":46,"mx":102,"my":46},{"lx":100,"ly":46,"mx":101,"my":46},{"lx":99,"ly":46,"mx":100,"my":46},{"lx":103,"ly":46,"mx":99,"my":46},{"lx":107,"ly":46,"mx":103,"my":46},{"lx":117,"ly":46,"mx":107,"my":46},{"lx":127,"ly":46,"mx":117,"my":46},{"lx":135,"ly":47,"mx":127,"my":46},{"lx":142,"ly":49,"mx":135,"my":47},{"lx":143,"ly":51,"mx":142,"my":49},{"lx":143,"ly":52,"mx":143,"my":51},{"lx":142,"ly":54,"mx":143,"my":52},{"lx":139,"ly":56,"mx":142,"my":54},{"lx":136,"ly":58,"mx":139,"my":56},{"lx":129,"ly":59,"mx":136,"my":58},{"lx":121,"ly":61,"mx":129,"my":59},{"lx":114,"ly":61,"mx":121,"my":61},{"lx":106,"ly":59,"mx":114,"my":61},{"lx":100,"ly":58,"mx":106,"my":59},{"lx":96,"ly":55,"mx":100,"my":58},{"lx":94,"ly":53,"mx":96,"my":55},{"lx":94,"ly":50,"mx":94,"my":53},{"lx":95,"ly":47,"mx":94,"my":50},{"lx":98,"ly":44,"mx":95,"my":47},{"lx":104,"ly":39,"mx":98,"my":44},{"lx":112,"ly":34,"mx":104,"my":39},{"lx":122,"ly":30,"mx":112,"my":34},{"lx":132,"ly":28,"mx":122,"my":30},{"lx":145,"ly":26,"mx":132,"my":28},{"lx":157,"ly":24,"mx":145,"my":26},{"lx":170,"ly":24,"mx":157,"my":24},{"lx":181,"ly":24,"mx":170,"my":24},{"lx":190,"ly":24,"mx":181,"my":24},{"lx":199,"ly":26,"mx":190,"my":24},{"lx":203,"ly":28,"mx":199,"my":26},{"lx":207,"ly":29,"mx":203,"my":28},{"lx":209,"ly":32,"mx":207,"my":29},{"lx":211,"ly":34,"mx":209,"my":32},{"lx":211,"ly":35,"mx":211,"my":34},{"lx":212,"ly":36,"mx":211,"my":35},{"lx":212,"ly":37,"mx":212,"my":36},{"lx":212,"ly":38,"mx":212,"my":37},{"lx":211,"ly":39,"mx":212,"my":38},{"lx":210,"ly":39,"mx":211,"my":39},{"lx":209,"ly":39,"mx":210,"my":39},{"lx":207,"ly":39,"mx":209,"my":39},{"lx":205,"ly":39,"mx":207,"my":39},{"lx":204,"ly":39,"mx":205,"my":39},{"lx":203,"ly":38,"mx":204,"my":39},{"lx":202,"ly":38,"mx":203,"my":38},{"lx":202,"ly":36,"mx":202,"my":38},{"lx":204,"ly":34,"mx":202,"my":36},{"lx":209,"ly":31,"mx":204,"my":34},{"lx":216,"ly":27,"mx":209,"my":31},{"lx":224,"ly":24,"mx":216,"my":27},{"lx":234,"ly":19,"mx":224,"my":24},{"lx":248,"ly":14,"mx":234,"my":19},{"lx":263,"ly":12,"mx":248,"my":14},{"lx":272,"ly":10,"mx":263,"my":12},{"lx":274,"ly":10,"mx":272,"my":10},{"lx":274,"ly":13,"mx":274,"my":10},{"lx":268,"ly":19,"mx":274,"my":13},{"lx":259,"ly":26,"mx":268,"my":19},{"lx":248,"ly":33,"mx":259,"my":26},{"lx":233,"ly":40,"mx":248,"my":33},{"lx":218,"ly":45,"mx":233,"my":40},{"lx":209,"ly":47,"mx":218,"my":45},{"lx":201,"ly":49,"mx":209,"my":47},{"lx":199,"ly":49,"mx":201,"my":49},{"lx":198,"ly":49,"mx":199,"my":49},{"lx":198,"ly":48,"mx":198,"my":49},{"lx":198,"ly":44,"mx":198,"my":48},{"lx":199,"ly":40,"mx":198,"my":44},{"lx":205,"ly":34,"mx":199,"my":40},{"lx":215,"ly":28,"mx":205,"my":34},{"lx":226,"ly":21,"mx":215,"my":28},{"lx":241,"ly":14,"mx":226,"my":21},{"lx":256,"ly":7,"mx":241,"my":14},{"lx":273,"ly":0,"mx":256,"my":7},{"lx":290,"ly":-6,"mx":273,"my":0}]')); // 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);
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: require_once(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in /in/034sA on line 2 Warning: require_once(http://rawgithub.com/thomasjbradley/signature-to-image/master/sig-output.json/signature-to-image.php): failed to open stream: no suitable wrapper could be found in /in/034sA on line 2 Fatal error: require_once(): Failed opening required 'http://rawgithub.com/thomasjbradley/signature-to-image/master/sig-output.json/signature-to-image.php' (include_path='.:') in /in/034sA on line 2
Process exited with code 255.
Output for hhvm-3.12.0
Fatal error: Uncaught Error: File not found: http://rawgithub.com/thomasjbradley/signature-to-image/master/sig-output.json/signature-to-image.php in /in/034sA:2 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.10.0
Fatal error: File not found: http://rawgithub.com/thomasjbradley/signature-to-image/master/sig-output.json/signature-to-image.php in /in/034sA on line 2
Process exited with code 255.
Output for 5.2.0 - 5.2.17
Warning: require_once(): URL file-access is disabled in the server configuration in /in/034sA on line 2 Warning: require_once(http://rawgithub.com/thomasjbradley/signature-to-image/master/sig-output.json/signature-to-image.php): failed to open stream: no suitable wrapper could be found in /in/034sA on line 2 Fatal error: require_once(): Failed opening required 'http://rawgithub.com/thomasjbradley/signature-to-image/master/sig-output.json/signature-to-image.php' (include_path='.:') in /in/034sA on line 2
Process exited with code 255.
Output for 5.1.0 - 5.1.6
Warning: require_once(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/034sA on line 2 Warning: require_once(http://rawgithub.com/thomasjbradley/signature-to-image/master/sig-output.json/signature-to-image.php): failed to open stream: Connection refused in /in/034sA on line 2 Fatal error: require_once(): Failed opening required 'http://rawgithub.com/thomasjbradley/signature-to-image/master/sig-output.json/signature-to-image.php' (include_path='.:') in /in/034sA on line 2
Process exited with code 255.
Output for 4.3.3 - 4.3.4, 4.3.10 - 4.4.9, 5.0.3 - 5.0.5
Warning: main(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/034sA on line 2 Warning: main(http://rawgithub.com/thomasjbradley/signature-to-image/master/sig-output.json/signature-to-image.php): failed to open stream: Connection refused in /in/034sA on line 2 Fatal error: main(): Failed opening required 'http://rawgithub.com/thomasjbradley/signature-to-image/master/sig-output.json/signature-to-image.php' (include_path='.:') in /in/034sA on line 2
Process exited with code 255.
Output for 4.3.5 - 4.3.9, 5.0.1 - 5.0.2
Warning: main(): php_network_getaddresses: gethostbyname failed in /in/034sA on line 2 Warning: main(http://rawgithub.com/thomasjbradley/signature-to-image/master/sig-output.json/signature-to-image.php): failed to open stream: Success in /in/034sA on line 2 Fatal error: main(): Failed opening required 'http://rawgithub.com/thomasjbradley/signature-to-image/master/sig-output.json/signature-to-image.php' (include_path='.:') in /in/034sA on line 2
Process exited with code 255.
Output for 5.0.0
Warning: main(): php_network_getaddresses: gethostbyname failed in /in/034sA on line 2 Warning: main(http://rawgithub.com/thomasjbradley/signature-to-image/master/sig-output.json/signature-to-image.php): failed to open stream: Bad file descriptor in /in/034sA on line 2 Fatal error: main(): Failed opening required 'http://rawgithub.com/thomasjbradley/signature-to-image/master/sig-output.json/signature-to-image.php' (include_path='.:') in /in/034sA on line 2
Process exited with code 255.
Output for 4.3.2
Warning: main(): php_network_getaddresses: getaddrinfo failed: Name or service not known (is your IPV6 configuration correct? If this error happens all the time, try reconfiguring PHP using --disable-ipv6 option to configure) in /in/034sA on line 2 Warning: main(http://rawgithub.com/thomasjbradley/signature-to-image/master/sig-output.json/signature-to-image.php): failed to open stream: Connection refused in /in/034sA on line 2 Fatal error: main(): Failed opening required 'http://rawgithub.com/thomasjbradley/signature-to-image/master/sig-output.json/signature-to-image.php' (include_path='.:') in /in/034sA on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: main() [http://www.php.net/function.main]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/034sA on line 2 Warning: main(http://rawgithub.com/thomasjbradley/signature-to-image/master/sig-output.json/signature-to-image.php) [http://www.php.net/function.main]: failed to create stream: Connection refused in /in/034sA on line 2 Fatal error: main() [http://www.php.net/function.main]: Failed opening required 'http://rawgithub.com/thomasjbradley/signature-to-image/master/sig-output.json/signature-to-image.php' (include_path='.:') in /in/034sA on line 2