3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Additive { public function getSigma($rSigma); } class Sigma implements Additive { protected $_fValue = null; public function __construct($fValue) { $this->_fValue = (double)$fValue; } public static function __callStatic($sName, $rgArgs) { if(count($rgArgs)!=count(array_filter($rgArgs, function($mArg) { return is_object($mArg) && $mArg instanceof self; }))) { throw new Exception('Can not call method "'.$sName.'": invalid arguments'); } if(!count($rgArgs)) { return null; } $rResult = array_shift($rgArgs); foreach($rgArgs as $mArg) { $rResult = $rResult->$sName($mArg); } return $rResult; } public function getValue() { return $this->_fValue; } public function getSigma($rSigma) { return new self($this->getValue()+$rSigma->getValue()); } }

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.3.60.0150.00018.30
8.3.50.0100.00922.11
8.3.40.0070.00718.89
8.3.30.0110.00418.59
8.3.20.0000.00818.32
8.3.10.0000.00820.84
8.3.00.0040.00423.53
8.2.180.0090.00618.18
8.2.170.0180.00022.96
8.2.160.0090.00620.27
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0070.00026.16
8.2.120.0060.00319.66
8.2.110.0060.00320.47
8.2.100.0040.00717.72
8.2.90.0000.00919.23
8.2.80.0000.00817.97
8.2.70.0030.00617.63
8.2.60.0030.00617.93
8.2.50.0040.00418.07
8.2.40.0040.00418.09
8.2.30.0040.00421.25
8.2.20.0040.00417.59
8.2.10.0000.00817.61
8.2.00.0000.00717.55
8.1.280.0110.00425.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0040.00423.80
8.1.230.0040.00820.85
8.1.220.0000.00818.77
8.1.210.0030.00618.91
8.1.200.0040.00417.23
8.1.190.0040.00417.28
8.1.180.0050.00318.10
8.1.170.0040.00418.49
8.1.160.0000.00718.75
8.1.150.0030.00518.49
8.1.140.0000.00817.34
8.1.130.0070.00017.68
8.1.120.0000.00717.48
8.1.110.0000.00717.35
8.1.100.0040.00417.39
8.1.90.0000.00817.45
8.1.80.0000.00717.42
8.1.70.0000.00717.38
8.1.60.0040.00417.41
8.1.50.0040.00417.30
8.1.40.0040.00417.34
8.1.30.0070.00017.60
8.1.20.0000.00817.49
8.1.10.0000.00817.40
8.1.00.0000.00817.19
8.0.300.0000.00819.97
8.0.290.0040.00417.15
8.0.280.0030.00518.39
8.0.270.0030.00317.11
8.0.260.0060.00016.71
8.0.250.0000.00716.82
8.0.240.0000.00716.89
8.0.230.0040.00316.81
8.0.220.0060.00316.70
8.0.210.0070.00016.86
8.0.200.0030.00316.91
8.0.190.0000.00716.86
8.0.180.0040.00416.81
8.0.170.0030.00416.88
8.0.160.0070.00016.83
8.0.150.0000.00716.80
8.0.140.0000.00916.69
8.0.130.0000.00613.20
8.0.120.0080.00016.80
8.0.110.0050.00216.78
8.0.100.0000.00716.90
8.0.90.0050.00216.71
8.0.80.0100.01016.79
8.0.70.0040.00416.88
8.0.60.0040.00416.75
8.0.50.0040.00416.90
8.0.30.0090.00916.93
8.0.20.0140.00417.40
8.0.10.0050.00216.99
8.0.00.0090.00916.67
7.4.330.0000.00614.71
7.4.320.0030.00316.45
7.4.300.0060.00016.55
7.4.290.0020.00516.47
7.4.280.0040.00416.34
7.4.270.0000.00716.46
7.4.260.0030.00313.12
7.4.250.0040.00416.50
7.4.240.0070.00016.47
7.4.230.0000.00716.63
7.4.220.0070.01016.43
7.4.210.0070.00716.50
7.4.200.0070.00016.26
7.4.190.0040.00416.61
7.4.160.0080.00816.44
7.4.150.0120.00617.40
7.4.140.0070.01217.86
7.4.130.0110.00716.49
7.4.120.0160.00516.44
7.4.110.0130.00316.58
7.4.100.0060.01416.38
7.4.90.0090.01416.36
7.4.80.0120.00919.37
7.4.70.0100.00716.26
7.4.60.0070.01116.39
7.4.50.0040.00416.50
7.4.40.0000.01422.52
7.4.30.0100.00716.32
7.4.00.0070.00715.08
7.3.330.0030.00313.21
7.3.320.0060.00812.98
7.3.310.0050.00316.28
7.3.300.0030.00316.00
7.3.290.0000.01416.09
7.3.280.0100.00816.13
7.3.270.0060.01217.40
7.3.260.0090.00818.24
7.3.250.0090.00816.41
7.3.240.0100.00616.47
7.3.230.0130.00316.39
7.3.210.0090.00916.31
7.3.200.0110.00819.39
7.3.190.0120.00416.41
7.3.180.0130.00616.20
7.3.170.0090.00916.27
7.3.160.0080.00816.26
7.3.120.0090.00614.93
7.2.330.0160.00616.45
7.2.320.0130.01016.48
7.2.310.0100.01016.36
7.2.300.0160.00016.60
7.2.290.0030.01616.51
7.2.80.0060.00616.42
7.2.60.0100.00316.46
7.1.200.0100.00315.71
7.1.70.0050.00317.11
7.1.60.0130.01019.40
7.1.50.0170.01034.66
7.1.00.0030.04022.57
7.0.200.0040.00416.77
7.0.140.0000.07721.95
7.0.90.0230.04320.00
7.0.80.0300.03020.16
7.0.70.0130.03719.91
7.0.60.0300.07019.91
7.0.50.0270.04320.34
7.0.40.0030.04320.14
7.0.30.0130.06720.14
7.0.20.0030.04320.10
7.0.10.0070.04720.14
7.0.00.0070.04020.04
5.6.280.0000.07321.03
5.6.230.0070.04020.63
5.6.220.0030.04020.66
5.6.210.0070.04020.57
5.6.200.0070.04021.02
5.6.190.0100.05021.07
5.6.180.0070.03721.09
5.6.170.0070.03721.14
5.6.160.0030.07020.99
5.6.150.0070.04020.95
5.6.140.0130.08021.11
5.6.130.0100.07721.02
5.6.120.0100.08021.02
5.6.110.0170.07721.05
5.6.100.0130.03721.02
5.6.90.0100.05321.11
5.6.80.0170.07020.48
5.6.70.0070.07020.42
5.6.60.0030.05020.36
5.6.50.0100.08020.39
5.6.40.0070.05720.45
5.6.30.0000.05020.33
5.6.20.0130.03320.38
5.6.10.0070.08720.40
5.6.00.0100.07020.43
5.5.370.0070.04320.43
5.5.360.0000.07320.58
5.5.350.0070.04020.43
5.5.340.0070.03320.78
5.5.330.0070.03320.79
5.5.320.0130.06320.94
5.5.310.0030.04020.86
5.5.300.0100.04720.87
5.5.290.0070.04720.65
5.5.280.0030.09020.91
5.5.270.0100.07020.83
5.5.260.0070.08320.92
5.5.250.0070.04020.70
5.5.240.0130.06720.26
5.5.230.0000.04720.30
5.5.220.0000.08720.03
5.5.210.0100.07720.22
5.5.200.0030.08020.24
5.5.190.0000.04720.24
5.5.180.0130.08320.22
5.5.160.0130.07020.20
5.5.150.0100.07320.23
5.5.140.0200.04320.11
5.5.130.0100.03320.24
5.5.120.0100.06320.19
5.5.110.0200.06320.29
5.5.100.0070.05320.12
5.5.90.0170.07320.09
5.5.80.0030.08719.95
5.5.70.0130.04720.08
5.5.60.0100.03720.06
5.5.50.0130.03020.16
5.5.40.0130.07719.93
5.5.30.0100.06720.11
5.5.20.0030.07720.06
5.5.10.0130.07020.07
5.5.00.0070.07719.96
5.4.450.0100.04019.57
5.4.440.0070.07019.52
5.4.430.0030.04019.36
5.4.420.0230.06019.55
5.4.410.0030.08019.40
5.4.400.0100.07018.90
5.4.390.0000.04319.13
5.4.380.0100.07019.13
5.4.370.0070.04719.18
5.4.360.0070.07319.09
5.4.350.0130.06719.04
5.4.340.0000.05319.13
5.4.320.0030.06018.88
5.4.310.0100.07018.95
5.4.300.0070.05319.17
5.4.290.0030.04019.15
5.4.280.0030.04019.12
5.4.270.0130.05319.03
5.4.260.0100.07019.03
5.4.250.0170.06718.87
5.4.240.0070.05319.04
5.4.230.0030.04718.87
5.4.220.0030.05018.87
5.4.210.0100.04719.04
5.4.200.0100.06719.11
5.4.190.0100.07019.02
5.4.180.0000.06719.08
5.4.170.0030.05319.19
5.4.160.0070.07318.93
5.4.150.0070.05719.19
5.4.140.0030.05016.31
5.4.130.0170.04716.50
5.4.120.0070.05016.46
5.4.110.0000.04316.48
5.4.100.0100.07016.49
5.4.90.0070.05016.38
5.4.80.0070.04016.51
5.4.70.0100.06716.38
5.4.60.0100.07016.37
5.4.50.0170.05316.47
5.4.40.0030.08016.39
5.4.30.0100.07016.29
5.4.20.0100.04016.40
5.4.10.0000.05016.38
5.4.00.0100.07015.79
5.3.290.0030.04314.66
5.3.280.0100.07714.59
5.3.270.0070.07314.54
5.3.260.0100.05714.76
5.3.250.0000.08714.58
5.3.240.0100.04314.68
5.3.230.0030.07714.63
5.3.220.0100.07014.59
5.3.210.0030.06714.61
5.3.200.0100.07014.50
5.3.190.0070.07314.54
5.3.180.0070.07714.70
5.3.170.0000.08314.65
5.3.160.0000.08014.50
5.3.150.0070.07014.68
5.3.140.0070.04314.62
5.3.130.0000.06314.70
5.3.120.0030.06014.55
5.3.110.0130.04014.65
5.3.100.0100.06714.19
5.3.90.0100.07314.02
5.3.80.0030.05313.96
5.3.70.0030.08014.15
5.3.60.0070.06714.01
5.3.50.0070.06013.85
5.3.40.0070.07314.10
5.3.30.0070.04013.94
5.3.20.0170.07013.64
5.3.10.0030.05713.77
5.3.00.0000.07713.77
5.2.170.0030.03713.59
5.2.160.0000.03713.59
5.2.150.0030.03713.59
5.2.140.0000.03713.59
5.2.130.0000.06313.59
5.2.120.0070.06713.59
5.2.110.0030.05013.59
5.2.100.0000.06713.59
5.2.90.0070.06013.59
5.2.80.0100.04713.59
5.2.70.0100.04713.59
5.2.60.0030.05713.59
5.2.50.0030.05013.59
5.2.40.0000.03713.59
5.2.30.0100.02313.59
5.2.20.0070.05313.59
5.2.10.0030.06313.59
5.2.00.0000.04313.59
5.1.60.0030.05313.59
5.1.50.0100.04313.59
5.1.40.0030.05313.59
5.1.30.0000.05713.59
5.1.20.0000.04713.59
5.1.10.0000.04313.59
5.1.00.0070.05713.59
5.0.50.0030.04313.59
5.0.40.0000.02713.59
5.0.30.0000.06313.59
5.0.20.0100.02713.59
5.0.10.0000.03713.59
5.0.00.0030.06013.59
4.4.90.0130.02313.59
4.4.80.0030.03313.59
4.4.70.0000.04013.59
4.4.60.0030.03013.59
4.4.50.0000.03713.59
4.4.40.0000.05713.59
4.4.30.0070.03013.59
4.4.20.0100.01713.59
4.4.10.0070.03713.59
4.4.00.0070.03313.59
4.3.110.0000.02713.59
4.3.100.0000.03713.59
4.3.90.0000.02313.59
4.3.80.0030.05013.59
4.3.70.0030.02313.59
4.3.60.0000.03713.59
4.3.50.0070.03013.59
4.3.40.0000.05013.59
4.3.30.0070.03013.59
4.3.20.0000.03713.59
4.3.10.0030.03313.59
4.3.00.0070.02313.59

preferences:
45.32 ms | 401 KiB | 5 Q