3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { private $json; private $config; private $xmlFiles; private $modifiedElement; private $modifiedElement2; private $exchangeValue; private $exchangeValue2; private $inputFolderPath; private $outputFolderPath; private $outputFileName; public function __construct() { //$this->setXmlFiles(); //$this->createFolder(); $this->json = '{ "modifiedElement1" : "11", "modifiedElement2" : "22", "exchangeValue1" : "11", "exchangeValue2" : "333", "inputFolderPath" : "input/", "outputFolderPath" : "output/" }'; $this->config = json_decode($this->json); $this->xmlFiles = array(); $this->modifiedElement = $this->config->modifiedElement1; $this->modifiedElement2 = $this->config->modifiedElement2; $this->exchangeValue = $this->config->exchangeValue1; $this->exchangeValue2 = $this->config->exchangeValue2; $this->inputFolderPath = $this->config->inputFolderPath; $this->outputFolderPath = $this->config->outputFolderPath; $this->outputFileName = null; var_dump($this); } } $x = new test();
Output for git.master, git.master_jit, rfc.property-hooks
object(test)#1 (10) { ["json":"test":private]=> string(182) "{ "modifiedElement1" : "11", "modifiedElement2" : "22", "exchangeValue1" : "11", "exchangeValue2" : "333", "inputFolderPath" : "input/", "outputFolderPath" : "output/" }" ["config":"test":private]=> object(stdClass)#2 (6) { ["modifiedElement1"]=> string(2) "11" ["modifiedElement2"]=> string(2) "22" ["exchangeValue1"]=> string(2) "11" ["exchangeValue2"]=> string(3) "333" ["inputFolderPath"]=> string(6) "input/" ["outputFolderPath"]=> string(7) "output/" } ["xmlFiles":"test":private]=> array(0) { } ["modifiedElement":"test":private]=> string(2) "11" ["modifiedElement2":"test":private]=> string(2) "22" ["exchangeValue":"test":private]=> string(2) "11" ["exchangeValue2":"test":private]=> string(3) "333" ["inputFolderPath":"test":private]=> string(6) "input/" ["outputFolderPath":"test":private]=> string(7) "output/" ["outputFileName":"test":private]=> NULL }

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
35.08 ms | 408 KiB | 5 Q