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();

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.5.20.0150.00219.52
8.5.10.0090.00920.27
8.5.00.0100.01121.62
8.4.170.0100.01220.20
8.4.160.0140.00723.80
8.4.150.0030.00014.05
8.4.140.0120.01017.48
8.4.130.0110.00917.82
8.4.120.0120.00820.68
8.4.110.0120.00722.71
8.4.100.0060.00517.84
8.4.90.0070.00417.61
8.4.80.0070.00517.68
8.4.70.0080.00917.64
8.4.60.0130.01118.51
8.4.50.0070.00217.75
8.4.40.0110.01120.44
8.4.30.0070.01320.21
8.4.20.0180.00518.24
8.4.10.0090.00021.77
8.3.290.0130.00820.84
8.3.280.0140.00718.51
8.3.270.0160.00416.47
8.3.260.0160.00416.66
8.3.250.0110.00918.87
8.3.240.0120.00716.73
8.3.230.0110.00916.68
8.3.220.0110.00817.12
8.3.210.0110.00716.73
8.3.200.0060.00316.73
8.3.190.0140.00517.13
8.3.180.0100.00918.71
8.3.170.0120.00616.80
8.3.160.0090.00916.71
8.3.150.0070.01117.02
8.3.140.0060.00318.21
8.3.130.0090.00018.23
8.3.120.0050.00520.84
8.3.110.0030.00616.53
8.3.100.0070.00316.46
8.3.90.0060.00926.77
8.3.80.0030.00616.63
8.3.70.0190.00416.75
8.3.60.0070.01316.88
8.3.50.0000.01520.35
8.3.40.0100.01021.93
8.3.30.0060.00918.62
8.3.20.0080.00024.18
8.3.10.0080.00024.66
8.3.00.0050.00226.16
8.2.300.0150.00522.34
8.2.290.0050.00322.66
8.2.280.0050.00318.62
8.2.270.0130.00616.57
8.2.260.0110.00719.04
8.2.250.0060.00318.29
8.2.240.0040.00417.18
8.2.230.0060.00320.94
8.2.220.0090.00024.06
8.2.210.0150.00426.77
8.2.200.0090.00016.38
8.2.190.0100.00718.29
8.2.180.0070.00725.92
8.2.170.0090.00618.79
8.2.160.0100.00722.96
8.2.150.0030.00725.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00026.16
8.2.110.0070.00320.80
8.2.100.0120.00017.91
8.2.90.0000.00819.22
8.2.80.0060.00317.97
8.2.70.0000.00817.38
8.2.60.0040.00417.80
8.2.50.0030.00518.07
8.2.40.0040.00418.16
8.2.30.0000.00818.20
8.2.20.0070.00019.15
8.2.10.0070.00018.09
8.2.00.0070.00019.16
8.1.340.0110.00921.80
8.1.330.0120.00718.41
8.1.320.0050.00615.88
8.1.310.0100.00717.05
8.1.300.0030.00623.80
8.1.290.0030.00630.84
8.1.280.0100.01025.92
8.1.270.0090.00622.14
8.1.260.0000.00828.09
8.1.250.0000.00928.09
8.1.240.0090.00021.17
8.1.230.0050.00522.12
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0040.00417.48
8.1.190.0080.00017.22
8.1.180.0040.00418.10
8.1.170.0050.00318.44
8.1.160.0060.00318.80
8.1.150.0070.00018.61
8.1.140.0050.00217.41
8.1.130.0050.00218.73
8.1.120.0000.00717.45
8.1.110.0040.00417.41
8.1.100.0000.00717.32
8.1.90.0050.00517.38
8.1.80.0100.00817.34
8.1.70.0120.00617.35
8.1.60.0190.00017.56
8.1.50.0090.00917.48
8.1.40.0060.01217.55
8.1.30.0110.00817.68
8.1.20.0110.00717.66
8.1.10.0150.00417.64
8.1.00.0180.00017.55
8.0.300.0000.00818.77
8.0.290.0070.00016.75
8.0.280.0040.00418.36
8.0.270.0030.00318.02
8.0.260.0000.00818.33
8.0.250.0000.00716.86
8.0.240.0030.00316.86
8.0.230.0000.00716.89
8.0.220.0060.00216.79
8.0.210.0100.00516.81
8.0.200.0110.00516.86
8.0.190.0050.01116.86
8.0.180.0090.00616.79
8.0.170.0110.00516.85
8.0.160.0080.00816.86
8.0.150.0120.00416.66
8.0.140.0120.00316.84
8.0.130.0080.00816.68
8.0.120.0050.01116.72
8.0.110.0120.00416.84
8.0.100.0120.00316.73
8.0.90.0130.00316.79
8.0.80.0130.00316.84
8.0.70.0090.00616.82
8.0.60.0080.00816.79
8.0.50.0160.00016.82
8.0.30.0120.00416.68
8.0.20.0140.00016.78
8.0.10.0090.00417.02
7.4.330.0030.00315.55
7.4.320.0000.00816.52
7.4.300.0090.00016.64
7.4.290.0120.00416.50
7.4.280.0040.00916.58
7.4.270.0110.00316.59
7.4.260.0100.00516.47
7.4.250.0060.00616.39
7.4.240.0090.00316.52
7.4.230.0090.00416.53
7.4.220.0150.00016.48
7.4.210.0130.00016.45
7.4.200.0130.00016.60
7.4.190.0050.00816.35
7.4.180.0090.00316.65
7.4.160.0080.00516.69
7.4.150.0090.00516.39
7.4.140.0090.00616.44
7.4.130.0100.00516.39
7.4.120.0090.00616.47
7.4.110.0090.00216.43
7.4.100.0100.00516.54
7.4.90.0130.00016.36
7.4.80.0050.00716.38
7.4.70.0090.00416.45
7.4.60.0080.00516.55
7.4.50.0030.00816.27
7.4.40.0070.00316.48
7.4.30.0110.00316.50
7.4.20.0070.00716.31
7.4.10.0140.00016.50
7.4.00.0160.00016.49

preferences:
141.92 ms | 403 KiB | 5 Q