3v4l.org

run code in 300+ PHP versions simultaneously
<?php use Facebook\WebDriver\Remote\RemoteWebDriver; use Facebook\WebDriver\Remote\DesiredCapabilities; use Facebook\WebDriver\Chrome\ChromeOptions; $capabilities = DesiredCapabilities::chrome(); $options = new ChromeOptions; $options->addArguments(["--verbose"]); /* * change this to whatever you want... */ $options->setExperimentalOption($name, $value); $capabilities->setCapability(ChromeOptions::CAPABILITY, $options); $chromeWebDriver = RemoteWebDriver::create($mySeleniumUrl, $capabilities);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Jah8t
function name:  (null)
number of ops:  24
compiled vars:  !0 = $capabilities, !1 = $options, !2 = $name, !3 = $value, !4 = $chromeWebDriver, !5 = $mySeleniumUrl
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_STATIC_METHOD_CALL                                  'Facebook%5CWebDriver%5CRemote%5CDesiredCapabilities', 'chrome'
          1        DO_FCALL                                      0  $6      
          2        ASSIGN                                                   !0, $6
    6     3        NEW                                              $8      'Facebook%5CWebDriver%5CChrome%5CChromeOptions'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $8
    8     6        INIT_METHOD_CALL                                         !1, 'addArguments'
          7        SEND_VAL_EX                                              <array>
          8        DO_FCALL                                      0          
   13     9        INIT_METHOD_CALL                                         !1, 'setExperimentalOption'
         10        SEND_VAR_EX                                              !2
         11        SEND_VAR_EX                                              !3
         12        DO_FCALL                                      0          
   15    13        INIT_METHOD_CALL                                         !0, 'setCapability'
         14        FETCH_CLASS_CONSTANT                             ~13     'Facebook%5CWebDriver%5CChrome%5CChromeOptions', 'CAPABILITY'
         15        SEND_VAL_EX                                              ~13
         16        SEND_VAR_EX                                              !1
         17        DO_FCALL                                      0          
   17    18        INIT_STATIC_METHOD_CALL                                  'Facebook%5CWebDriver%5CRemote%5CRemoteWebDriver', 'create'
         19        SEND_VAR_EX                                              !5
         20        SEND_VAR_EX                                              !0
         21        DO_FCALL                                      0  $15     
         22        ASSIGN                                                   !4, $15
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.63 ms | 1398 KiB | 13 Q