3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo " why not simply this version? "; echo "// if you haven't already, install the SDK with \'composer require sightengine/client-php\'\n use \Sightengine\SightengineClient;\n = new SightengineClient('{api_user}', '{api_secret}');\n (['{model}'])->set_url('https://d3m9459r9kwism.cloudfront.net/img/examples/example7.jpg')\n"; echo " # if you haven't already, install the SDK with 'pip install sightengine'\n client = SightengineClient('{api_user}', '{api_secret}')\n output = client.check('{model}').set_url('https://d3m9459r9kwism.cloudfront.net/img/examples/example7.jpg')"; echo "curl -X GET -G 'https://api.sightengine.com/1.0/check.json' \ -d 'models={model}' \ -d 'api_user={api_user}&api_secret={api_secret}' \ -d 'url=https://d3m9459r9kwism.cloudfront.net/img/examples/example7.jpg'";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WESi1
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     '%0Awhy%0Anot%0Asimply%0Athis%0Aversion%3F%0A%0A'
   12     1        ECHO                                                     '%2F%2F+if+you+haven%27t+already%2C+install+the+SDK+with+%5C%27composer+require+sightengine%2Fclient-php%5C%27%0A%0A++++++++++++++++++++use+%5CSightengine%5CSightengineClient%3B%0A%0A+++++++++++++++++++++%3D+new+SightengineClient%28%27%7Bapi_user%7D%27%2C+%27%7Bapi_secret%7D%27%29%3B%0A%0A++++++++++++++++++++%28%5B%27%7Bmodel%7D%27%5D%29-%3Eset_url%28%27https%3A%2F%2Fd3m9459r9kwism.cloudfront.net%2Fimg%2Fexamples%2Fexample7.jpg%27%29%0A'
   17     2        ECHO                                                     '+%23+if+you+haven%27t+already%2C+install+the+SDK+with+%27pip+install+sightengine%27%0A%0A++++++++++++++++++++client+%3D+SightengineClient%28%27%7Bapi_user%7D%27%2C+%27%7Bapi_secret%7D%27%29%0A%0A++++++++++++++++++++output+%3D+client.check%28%27%7Bmodel%7D%27%29.set_url%28%27https%3A%2F%2Fd3m9459r9kwism.cloudfront.net%2Fimg%2Fexamples%2Fexample7.jpg%27%29'
   22     3        ECHO                                                     'curl+-X+GET+-G+%27https%3A%2F%2Fapi.sightengine.com%2F1.0%2Fcheck.json%27+%5C%0A++++++++++++++++++++-d+%27models%3D%7Bmodel%7D%27+%5C%0A++++++++++++++++++++-d+%27api_user%3D%7Bapi_user%7D%26api_secret%3D%7Bapi_secret%7D%27+%5C%0A++++++++++++++++++++-d+%27url%3Dhttps%3A%2F%2Fd3m9459r9kwism.cloudfront.net%2Fimg%2Fexamples%2Fexample7.jpg%27'
   25     4      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
269.85 ms | 1006 KiB | 13 Q