3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Toolset\ChangeSet; /** * Interface Change * * Represents any change to be made to a Layer. A Change resides in a ChangeSet which is used by the SwfEngineClient to * loop around any potential changes and call isValid() on them before using getChanges() to create a valid request * * @package ChangeSet */ interface Change { /** * The object implementing this method has the responsibility of validating it's own data * * @return boolean */ public function isValid(); /** * Each change MUST have an id - if it doesn't, there's no way to keep track of unique changes * * @return mixed */ public function getId(); /** * This method must return an array of the strings to be sent in the request to the swf engine * * @return array */ public function getRequestFields(); /** * {@inheritdoc} * * Each change must return the name of itself in the case an exception needs to be thrown on an invalid state * * @return string */ public function __toString(); }
Output for 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0 - 8.5.3
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17
Parse error: syntax error, unexpected T_STRING in /in/PP7UM on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_STRING in /in/PP7UM on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/PP7UM on line 3
Process exited with code 255.

preferences:
95.64 ms | 2167 KiB | 4 Q