3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Additive { public function getSigma($rSigma); } class Sigma { 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.40.0110.00418.71
8.3.30.0140.00418.93
8.3.20.0050.00320.29
8.3.10.0040.00422.11
8.3.00.0040.00422.51
8.2.170.0070.00722.96
8.2.160.0100.00320.73
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.23
8.2.110.0140.00722.25
8.2.100.0040.00817.78
8.2.90.0000.00919.05
8.2.80.0030.00517.97
8.2.70.0030.00617.50
8.2.60.0080.00017.55
8.2.50.0000.00818.07
8.2.40.0000.00918.09
8.2.30.0020.00518.01
8.2.20.0040.00417.42
8.2.10.0080.00017.41
8.2.00.0000.00817.50
8.1.270.0080.00023.91
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0100.00724.02
8.1.230.0110.00019.10
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0030.00617.11
8.1.190.0000.00817.41
8.1.180.0040.00418.10
8.1.170.0060.00318.53
8.1.160.0070.00021.97
8.1.150.0030.00618.44
8.1.140.0040.00417.30
8.1.130.0000.00717.80
8.1.120.0000.00717.32
8.1.110.0040.00417.34
8.1.100.0070.00017.39
8.1.90.0000.00717.36
8.1.80.0050.00217.27
8.1.70.0000.00817.28
8.1.60.0080.00017.47
8.1.50.0080.00017.37
8.1.40.0000.00717.30
8.1.30.0090.00017.46
8.1.20.0000.00817.48
8.1.10.0000.00717.43
8.1.00.0000.00817.29
8.0.300.0060.00318.77
8.0.290.0040.00416.88
8.0.280.0050.00318.32
8.0.270.0000.00817.14
8.0.260.0060.00316.71
8.0.250.0070.00016.84
8.0.240.0060.00316.77
8.0.230.0030.00316.83
8.0.220.0030.00316.67
8.0.210.0070.00016.77
8.0.200.0030.00316.85
8.0.190.0030.00416.86
8.0.180.0040.00416.80
8.0.170.0000.00816.82
8.0.160.0030.00516.77
8.0.150.0040.00416.76
8.0.140.0070.00016.65
8.0.130.0000.00713.16
8.0.120.0060.00316.81
8.0.110.0040.00416.80
8.0.100.0040.00416.75
8.0.90.0000.00716.72
8.0.80.0120.00916.76
8.0.70.0040.00416.69
8.0.60.0000.00716.65
8.0.50.0070.00016.82
8.0.30.0090.00916.92
8.0.20.0110.00817.40
8.0.10.0000.00716.86
8.0.00.0060.01216.52
7.4.330.0030.00315.00
7.4.320.0000.00716.42
7.4.300.0060.00016.49
7.4.290.0000.00716.43
7.4.280.0030.00316.48
7.4.270.0030.00316.39
7.4.260.0030.00316.46
7.4.250.0050.00316.47
7.4.240.0060.00116.44
7.4.230.0000.00716.48
7.4.220.0100.01316.43
7.4.210.0080.00716.45
7.4.200.0000.00716.48
7.4.190.0020.00516.39
7.4.160.0070.01016.26
7.4.150.0060.01017.40
7.4.140.0100.00817.86
7.4.130.0090.00816.42
7.4.120.0090.00816.53
7.4.110.0110.00616.55
7.4.100.0170.00316.43
7.4.90.0100.00716.38
7.4.80.0030.01316.39
7.4.70.0030.01416.25
7.4.60.0130.00316.21
7.4.50.0070.00016.46
7.4.40.0060.00922.77
7.4.30.0150.00016.02
7.4.10.0030.01315.03
7.4.00.0050.01314.61
7.3.330.0030.00313.16
7.3.320.0030.00312.99
7.3.310.0040.00416.07
7.3.300.0000.00716.04
7.3.290.0170.00316.11
7.3.280.0100.00716.16
7.3.270.0040.01417.40
7.3.260.0100.01016.30
7.3.250.0070.01316.29
7.3.240.0100.01416.26
7.3.230.0140.00316.39
7.3.210.0140.00316.39
7.3.200.0070.01119.39
7.3.190.0070.01416.36
7.3.180.0140.00316.29
7.3.170.0080.00816.27
7.3.160.0110.00716.48
7.3.130.0050.01414.56
7.3.120.0060.01114.83
7.3.110.0110.00714.63
7.3.100.0050.00714.78
7.3.90.0070.00914.79
7.3.80.0100.00314.48
7.3.70.0060.00614.67
7.3.60.0100.00714.75
7.3.50.0070.00914.70
7.3.40.0020.01214.68
7.3.30.0040.00714.63
7.3.20.0070.01016.50
7.3.10.0080.00816.48
7.3.00.0060.00516.57
7.2.330.0070.01116.19
7.2.320.0090.00916.54
7.2.310.0140.00316.46
7.2.300.0100.01016.35
7.2.290.0070.01016.51
7.2.260.0100.00914.73
7.2.250.0050.01414.67
7.2.240.0110.00314.84
7.2.230.0090.00715.06
7.2.220.0060.00714.82
7.2.210.0060.00414.85
7.2.200.0070.00815.03
7.2.190.0060.01114.77
7.2.180.0070.00914.80
7.2.170.0050.00914.70
7.2.160.0090.00814.85
7.2.150.0070.00516.72
7.2.140.0070.00716.71
7.2.130.0060.01016.53
7.2.120.0050.01016.47
7.2.110.0040.01116.55
7.2.100.0040.01116.54
7.2.90.0050.01116.64
7.2.80.0070.00916.67
7.2.70.0050.01116.50
7.2.60.0040.00916.63
7.2.50.0070.00716.52
7.2.40.0050.01016.60
7.2.30.0060.00816.48
7.2.20.0060.00816.65
7.2.10.0040.00816.56
7.2.00.0090.00617.24
7.1.330.0060.00815.46
7.1.320.0000.01615.58
7.1.310.0080.00515.58
7.1.300.0100.00615.64
7.1.290.0050.00815.61
7.1.280.0020.01315.54
7.1.270.0090.00515.57
7.1.260.0040.00815.63
7.1.250.0050.00615.42
7.1.240.0030.01015.56
7.1.230.0070.00715.55
7.1.220.0030.01015.62
7.1.210.0030.01015.40
7.1.200.0090.00615.54
7.1.190.0070.00515.65
7.1.180.0080.00215.56
7.1.170.0050.00715.46
7.1.160.0090.00315.61
7.1.150.0070.00515.63
7.1.140.0030.01215.58
7.1.130.0030.01015.55
7.1.120.0040.00715.60
7.1.110.0070.00615.53
7.1.100.0060.00716.21
7.1.90.0020.01115.53
7.1.80.0030.00915.64
7.1.70.0030.00816.08
7.1.60.0050.01116.98
7.1.50.0060.01015.96
7.1.40.0020.01215.37
7.1.30.0030.00815.48
7.1.20.0050.00515.42
7.1.10.0050.00915.35
7.1.00.0040.03117.92
7.0.330.0080.00515.30
7.0.320.0070.00515.38
7.0.310.0070.00815.11
7.0.300.0040.00715.20
7.0.290.0060.00515.00
7.0.280.0060.00915.31
7.0.270.0060.00715.25
7.0.260.0070.00515.32
7.0.250.0100.00615.21
7.0.240.0030.00815.23
7.0.230.0060.00615.18
7.0.220.0060.00615.37
7.0.210.0050.00515.27
7.0.200.0040.00615.62
7.0.190.0060.00615.22
7.0.180.0090.00115.31
7.0.170.0060.00615.30
7.0.160.0020.00715.20
7.0.150.0070.00915.27
7.0.140.0010.03517.56
7.0.130.0080.00315.30
7.0.120.0040.00915.23
7.0.110.0060.00715.40
7.0.100.0030.01215.14
7.0.90.0020.00615.26
7.0.80.0060.00815.27
7.0.70.0050.00915.11
7.0.60.0070.02716.84
7.0.50.0080.02816.21
7.0.40.0070.01915.56
7.0.30.0140.02115.60
7.0.20.0130.03015.57
7.0.10.0060.01915.52
7.0.00.0070.02815.49
5.6.400.0040.00814.04
5.6.390.0070.01214.05
5.6.380.0070.00814.23
5.6.370.0080.01013.94
5.6.360.0090.00413.96
5.6.350.0010.01013.99
5.6.340.0070.01014.19
5.6.330.0040.00614.10
5.6.320.0080.00914.07
5.6.310.0020.01314.21
5.6.300.0090.00814.38
5.6.290.0070.01014.15
5.6.280.0040.03016.45
5.6.270.0050.00814.14
5.6.260.0060.00614.11
5.6.250.0020.00614.00
5.6.240.0070.00814.20
5.6.230.0070.00714.26
5.6.220.0010.01013.97
5.6.210.0070.02016.31
5.6.200.0060.01715.47
5.6.190.0070.02716.43
5.6.180.0130.02216.18
5.6.170.0160.01916.31
5.6.160.0100.02916.15
5.6.150.0030.01915.48
5.6.140.0080.03315.50
5.6.130.0040.02315.46
5.6.120.0060.01816.41
5.6.110.0070.02016.40
5.6.100.0020.03416.45
5.6.90.0060.03116.44
5.6.80.0110.02816.27
5.6.70.0070.01013.91
5.6.60.0000.01314.02
5.6.50.0080.00414.06
5.6.40.0080.00814.04
5.6.30.0060.00714.01
5.6.20.0030.00614.11
5.6.10.0030.00813.98
5.6.00.0050.00813.97
5.5.380.0040.00514.16
5.5.370.0060.01014.20
5.5.360.0040.01013.80
5.5.350.0060.01716.22
5.5.340.0090.02915.17
5.5.330.0030.02916.14
5.5.320.1270.01816.15
5.5.310.0120.02016.23
5.5.300.0020.02015.31
5.5.290.0040.01815.26
5.5.280.0070.03416.39
5.5.270.0080.02016.24
5.5.260.0100.02816.38
5.5.250.0080.02616.13
5.5.240.0070.02916.04
5.5.230.0020.00913.72
5.5.220.0050.00914.06
5.5.210.0040.00814.07
5.5.200.0050.01014.00
5.5.190.0040.01114.06
5.5.180.0040.00914.02
5.5.170.0070.00613.98
5.5.160.0010.00913.90
5.5.150.0040.00714.05
5.5.140.0030.01013.94
5.5.130.0070.00413.93
5.5.120.0050.00813.93
5.5.110.0020.01113.92
5.5.100.0050.00913.99
5.5.90.0040.01214.00
5.5.80.0090.00113.81
5.5.70.0050.00713.87
5.5.60.0030.01113.74
5.5.50.0050.00813.73
5.5.40.0060.00614.02
5.5.30.0060.00714.02
5.5.20.0050.00713.79
5.5.10.0040.00613.71
5.5.00.0070.00113.81
5.4.450.0110.02114.24
5.4.440.0210.01614.46
5.4.430.0160.02014.29
5.4.420.0060.02414.28
5.4.410.0040.02314.16
5.4.400.0120.03214.08
5.4.390.0160.02114.06
5.4.380.0080.02514.16
5.4.370.0090.02014.21
5.4.360.0110.02014.18
5.4.350.0040.01611.87
5.4.340.0050.02611.97
5.4.330.0000.00911.89
5.4.320.0030.01712.07
5.4.310.0040.01512.09
5.4.300.0050.01412.09
5.4.290.0080.01412.08
5.4.280.0030.01812.02
5.4.270.0050.01711.93
5.4.260.0040.01712.11
5.4.250.0040.01612.04
5.4.240.0040.01612.06
5.4.230.0070.01512.03
5.4.220.0050.01512.06
5.4.210.0040.01911.91
5.4.200.0030.01912.11
5.4.190.0100.02712.08
5.4.180.0080.01712.03
5.4.170.0080.01711.98
5.4.160.0080.01711.97
5.4.150.0070.02011.95
5.4.140.0050.01811.87
5.4.130.0100.02812.04
5.4.120.0080.01911.94
5.4.110.0060.01912.00
5.4.100.0070.02011.93
5.4.90.0110.01511.95
5.4.80.0120.02511.90
5.4.70.0120.02311.90
5.4.60.0140.03311.86
5.4.50.0090.01711.94
5.4.40.0110.01611.93
5.4.30.0070.02211.82
5.4.20.0090.01911.83
5.4.10.0180.03011.97
5.4.00.0070.02011.74
5.3.290.0030.01712.06
5.3.280.0050.01512.01
5.3.270.0120.01512.02
5.3.260.0080.01612.03
5.3.250.0100.01912.03
5.3.240.0090.02112.01
5.3.230.0100.02312.00
5.3.220.0070.02011.99
5.3.210.0080.01911.99
5.3.200.0080.01911.99
5.3.190.0070.02312.03
5.3.180.0050.02212.07
5.3.170.0080.02012.03
5.3.160.0080.01912.03
5.3.150.0180.03212.03
5.3.140.0110.04012.00
5.3.130.0150.03311.99
5.3.120.0140.03412.02
5.3.110.0170.03012.01
5.3.100.0100.03711.81
5.3.90.0090.01711.81
5.3.80.0100.01911.80
5.3.70.0080.01811.80
5.3.60.0140.03311.79
5.3.50.0080.01711.78
5.3.40.0100.01711.78
5.3.30.0100.01611.77
5.3.20.0100.03511.69
5.3.10.0090.01911.68
5.3.00.0070.01911.68
5.2.170.0150.0359.22
5.2.160.0520.0569.21
5.2.150.0140.0389.22
5.2.140.0360.0769.21
5.2.130.0170.0449.19
5.2.120.0170.0319.17
5.2.110.0200.0379.18
5.2.100.0220.0329.19
5.2.90.0170.0319.18
5.2.80.0160.0319.18
5.2.70.0100.0379.18
5.2.60.0210.0569.14
5.2.50.0140.0329.10
5.2.40.0100.0379.08
5.2.30.0100.0369.05
5.2.20.0160.0309.05
5.2.10.0120.0348.96
5.2.00.0140.0318.80
5.1.60.0100.0298.10
5.1.50.0090.0318.09
5.1.40.0140.0288.07
5.1.30.0130.0308.41
5.1.20.0110.0338.45
5.1.10.0250.0488.17
5.1.00.0100.0318.17
5.0.50.0110.0226.64
5.0.40.0310.0616.51
5.0.30.0100.0336.31
5.0.20.0090.0246.29
5.0.10.0080.0236.27
5.0.00.0100.0336.25
4.4.90.0100.0154.78
4.4.80.0100.0154.76
4.4.70.0090.0174.75
4.4.60.0070.0184.75
4.4.50.0080.0194.77
4.4.40.0080.0294.71
4.4.30.0250.0634.76
4.4.20.0120.0144.84
4.4.10.0080.0184.85
4.4.00.0220.0774.76
4.3.110.0070.0204.67
4.3.100.0070.0204.67
4.3.90.0080.0194.63
4.3.80.0170.0824.59
4.3.70.0070.0194.63
4.3.60.0100.0174.63
4.3.50.0240.0924.63
4.3.40.0060.0294.53
4.3.30.0070.0173.29
4.3.20.0060.0173.27
4.3.10.0060.0183.24
4.3.00.0100.01313.20

preferences:
67.17 ms | 400 KiB | 5 Q