3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Counter { /** @return self */ public function count(); /** @return int */ public function getCount(); } class FluentCounter implements Counter { private $count = 0; public function count() { $this->count += 1; return $this; } public function getCount() { return $this->count; } } $counter = new FluentCounter(); echo $counter->count()->count()->count()->getCount();

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.130.0040.00816.68
8.3.120.0000.00820.60
8.3.110.0000.00820.94
8.3.100.0090.00024.06
8.3.90.0110.00426.77
8.3.80.0030.00616.63
8.3.70.0110.00416.58
8.3.60.0070.00716.75
8.3.50.0100.00721.91
8.3.40.0140.00318.84
8.3.30.0140.00018.79
8.3.20.0070.00020.04
8.3.10.0000.00723.61
8.3.00.0090.00019.38
8.2.250.0070.01118.38
8.2.240.0140.00417.06
8.2.230.0060.00322.58
8.2.220.0050.00537.54
8.2.210.0000.01426.77
8.2.200.0080.00016.38
8.2.190.0090.00616.63
8.2.180.0110.00725.92
8.2.170.0040.01118.85
8.2.160.0100.01022.96
8.2.150.0000.00725.66
8.2.140.0000.00924.66
8.2.130.0060.00326.16
8.2.120.0030.00717.50
8.2.110.0060.00320.41
8.2.100.0060.00617.79
8.2.90.0060.00318.16
8.2.80.0090.00018.05
8.2.70.0030.00618.05
8.2.60.0050.00717.81
8.2.50.0090.00817.69
8.2.40.0080.00717.70
8.2.30.0080.00517.66
8.2.20.0090.00617.55
8.2.10.0110.00417.74
8.2.00.0120.00317.54
8.1.300.0080.00017.91
8.1.290.0070.00430.84
8.1.280.0070.00725.92
8.1.270.0000.00724.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.14
8.1.230.0120.00024.05
8.1.220.0040.00417.77
8.1.210.0110.00019.02
8.1.200.0060.00317.35
8.1.190.0100.00716.94
8.1.180.0110.00317.28
8.1.170.0120.00317.53
8.1.160.0100.00517.68
8.1.150.0110.00417.61
8.1.140.0110.00417.23
8.1.130.0110.00417.34
8.1.120.0090.00617.24
8.1.110.0110.00417.38
8.1.100.0090.00617.35
8.1.90.0100.00417.38
8.1.80.0070.00517.96
8.1.70.0090.00517.37
8.1.60.0130.00317.47
8.1.50.0100.00617.41
8.1.40.0090.00817.43
8.1.30.0140.00317.46
8.1.20.0110.00617.44
8.1.10.0110.00617.44
8.1.00.0090.00717.40
8.0.300.0000.00820.02
8.0.290.0000.00816.88
8.0.280.0110.00417.31
8.0.270.0100.00416.83
8.0.260.0100.00416.91
8.0.250.0110.00316.89
8.0.240.0110.00316.90
8.0.230.0100.00416.92
8.0.220.0110.00316.89
8.0.210.0070.00616.87
8.0.200.0100.00516.94
8.0.190.0110.00416.92
8.0.180.0110.00416.92
8.0.170.0090.00516.92
8.0.160.0090.00516.91
8.0.150.0070.00716.86
8.0.140.0080.00516.86
8.0.130.0100.00416.15
8.0.120.0100.00516.85
8.0.110.0070.00816.85
8.0.100.0090.00616.88
8.0.90.0080.00516.88
8.0.80.0100.00416.89
8.0.70.0090.00416.87
8.0.60.0060.00616.82
8.0.50.0070.00616.83
8.0.30.0100.00716.90
8.0.20.0070.00817.01
8.0.10.0090.00516.93
8.0.00.0080.00716.95
7.4.330.0060.00616.42
7.4.320.0140.00116.79
7.4.300.0080.00616.74
7.4.290.0110.00416.74
7.4.280.0120.00316.74
7.4.270.0100.00516.69
7.4.260.0120.00316.74
7.4.250.0100.00616.72
7.4.240.0100.00416.71
7.4.230.0120.00316.76
7.4.220.0080.00616.69
7.4.210.0090.00516.70
7.4.200.0090.00416.70
7.4.190.0090.00316.72
7.4.180.0100.00416.76
7.4.160.0080.00616.66
7.4.150.0090.00616.71
7.4.140.0070.00716.81
7.4.130.0100.00616.60
7.4.120.0070.00816.56
7.4.110.0080.00716.54
7.4.100.0060.01016.64
7.4.90.0090.00616.52
7.4.80.0080.00716.83
7.4.70.0080.00716.53
7.4.60.0090.00716.55
7.4.50.0090.00616.49
7.4.40.0070.00816.51
7.4.30.0100.00616.56
7.4.20.0100.00716.55
7.4.10.0090.00816.40
7.4.00.0080.00716.24
7.3.330.0080.00616.03
7.3.320.0120.00215.95
7.3.310.0100.00416.62
7.3.300.0090.00516.63
7.3.290.0070.00816.49
7.3.280.0100.00416.44
7.3.270.0090.00616.52
7.3.260.0090.00716.39
7.3.250.0070.00816.40
7.3.240.0100.00516.44
7.3.230.0100.00616.41
7.3.220.0090.00616.40
7.3.210.0080.00716.39
7.3.200.0090.00716.67
7.3.190.0100.00516.45
7.3.180.0090.00516.36
7.3.170.0090.00716.38
7.3.160.0100.00516.43
7.3.150.0110.00616.39
7.3.140.0110.00616.38
7.3.130.0110.00616.26
7.3.120.0100.00715.91
7.3.110.0090.00815.87
7.3.100.0080.00715.78
7.3.90.0070.00815.94
7.3.80.0100.00615.80
7.3.70.0080.00715.84
7.3.60.0090.00615.86
7.3.50.0100.00715.80
7.3.40.0080.00915.74
7.3.30.0090.00715.76
7.3.20.0110.00716.50
7.3.10.0080.00816.44
7.3.00.0080.00716.44
7.2.340.0110.00716.47
7.2.330.0120.00616.47
7.2.320.0120.00616.44
7.2.310.0130.00716.43
7.2.300.0130.00616.43
7.2.290.0130.00616.50
7.2.280.0120.00716.47
7.2.270.0130.00716.48
7.2.260.0120.00716.41
7.2.250.0130.00716.23
7.2.240.0110.00716.06
7.2.230.0110.00815.99
7.2.220.0090.00916.00
7.2.210.0090.00916.01
7.2.200.0120.00816.07
7.2.190.0120.00716.11
7.2.180.0100.00915.97
7.2.170.0110.00715.96
7.2.160.0100.00816.04
7.2.150.0140.00816.76
7.2.140.0110.00716.74
7.2.130.0130.00616.78
7.2.120.0110.00716.72
7.2.110.0190.00716.74
7.2.100.0110.00916.73
7.2.90.0110.00916.73
7.2.80.0120.00716.76
7.2.70.0140.00716.72
7.2.60.0140.00716.63
7.2.50.0450.00716.62
7.2.40.0410.00916.69
7.2.30.0130.00716.76
7.2.20.0120.00816.64
7.2.10.0490.00716.65
7.2.00.0360.00716.81
7.1.330.0110.00715.97
7.1.320.0100.00915.86
7.1.310.0130.00715.86
7.1.300.0120.00615.87
7.1.290.0130.00715.82
7.1.280.0120.00815.73
7.1.270.0120.00615.70
7.1.260.0120.00515.77
7.1.250.0100.00815.70
7.1.240.0120.00815.70
7.1.230.0130.00815.74
7.1.220.0130.00815.63
7.1.210.0130.00815.68
7.1.200.0140.00615.71
7.1.190.0180.00715.68
7.1.180.0140.00615.69
7.1.170.0460.00715.50
7.1.160.0190.00615.70
7.1.150.0130.00815.71
7.1.140.0140.00515.66
7.1.130.0420.00715.72
7.1.120.0420.00915.72
7.1.110.0430.00815.70
7.1.100.0390.00815.88
7.1.90.0410.00615.75
7.1.80.0400.00815.73
7.1.70.0140.00715.71
7.1.60.0340.00616.81
7.1.50.0260.00716.74
7.1.40.0260.00816.75
7.1.30.0280.00916.77
7.1.20.0240.00816.73
7.1.10.0230.00615.65
7.1.00.0230.00715.68
7.0.330.0150.00615.36
7.0.320.0150.00615.36
7.0.310.0170.00715.37
7.0.300.0470.00615.19
7.0.290.0210.00615.40
7.0.280.0130.00615.37
7.0.270.0440.00815.41
7.0.260.0410.00915.43
7.0.250.0430.00715.47
7.0.240.0420.00715.48
7.0.230.0500.00615.45
7.0.220.0430.00715.46
7.0.210.0290.00815.39
7.0.200.0360.00715.49
7.0.190.0270.00715.47
7.0.180.0250.00815.43
7.0.170.0290.00615.47
7.0.160.0370.00715.43
7.0.150.0260.00515.41
7.0.140.0330.00715.40
7.0.130.0240.00615.43
7.0.120.0230.00815.43
7.0.110.0230.00615.40
7.0.100.0220.00715.39
7.0.90.0260.00615.32
7.0.80.0230.00715.35
7.0.70.0200.00615.39
7.0.60.0190.00715.37
7.0.50.0200.00815.35
7.0.40.0230.00815.39
7.0.30.0180.00715.42
7.0.20.0200.00915.41
7.0.10.0190.00715.38
7.0.00.0170.00715.35
5.6.400.0120.00615.81
5.6.390.0140.00615.82
5.6.380.0110.00815.83
5.6.370.0120.00815.74
5.6.360.0140.00615.76
5.6.350.0090.01115.78
5.6.340.0140.00715.81
5.6.330.0130.00715.72
5.6.320.0120.00715.77
5.6.310.0130.00715.75
5.6.300.0120.01516.38
5.6.290.0130.01516.43
5.6.280.0130.01416.42
5.6.270.0150.01316.47
5.6.260.0130.01216.50
5.6.250.0150.01316.42
5.6.240.0120.01616.41
5.6.230.0140.01416.42
5.6.220.0130.01516.42
5.6.210.0130.01316.41
5.6.200.0130.01216.41
5.6.190.0120.01416.41
5.6.180.0110.01416.44
5.6.170.0130.01316.46
5.6.160.0150.01016.45
5.6.150.0140.01116.39
5.6.140.0130.01416.43
5.6.130.0140.01216.45
5.6.120.0130.01216.43
5.6.110.0130.01516.40
5.6.100.0130.01516.42
5.6.90.0130.01216.42
5.6.80.0120.01116.30
5.6.70.0130.01116.33
5.6.60.0120.01216.34
5.6.50.0140.01016.35
5.6.40.0120.01216.28
5.6.30.0110.01416.32
5.6.20.0130.01216.26
5.6.10.0140.01216.30
5.6.00.0120.01216.26
5.5.380.0110.01516.05
5.5.370.0130.01216.01
5.5.360.0140.01215.94
5.5.350.0110.01615.95
5.5.340.0110.01415.97
5.5.330.0120.01616.01
5.5.320.0110.01316.00
5.5.310.0120.01515.93
5.5.300.0130.01215.94
5.5.290.0110.01416.04
5.5.280.0110.01515.98
5.5.270.0120.01316.00
5.5.260.0130.01315.97
5.5.250.0120.01216.01
5.5.240.0130.01216.01
5.5.230.0120.01415.98
5.5.220.0120.01315.97
5.5.210.0110.01215.96
5.5.200.0120.01215.87
5.5.190.0110.01315.91
5.5.180.0110.01215.90
5.5.170.0140.00515.66
5.5.160.0120.01215.88
5.5.150.0130.01315.85
5.5.140.0120.01315.83
5.5.130.0110.01415.79
5.5.120.0130.01115.84
5.5.110.0120.01315.84
5.5.100.0120.01215.84
5.5.90.0100.01415.90
5.5.80.0120.01115.86
5.5.70.0130.01215.93
5.5.60.0110.01415.93
5.5.50.0140.01115.89
5.5.40.0120.01115.87
5.5.30.0130.01215.89
5.5.20.0120.01315.94
5.5.10.0090.01715.89
5.5.00.0130.01215.87
5.4.450.0120.01014.52
5.4.440.0090.01114.50
5.4.430.0090.01514.48
5.4.420.0090.01214.45
5.4.410.0100.01114.44
5.4.400.0090.01214.41
5.4.390.0110.01014.42
5.4.380.0100.01014.40
5.4.370.0090.01114.43
5.4.360.0110.01014.41
5.4.350.0100.01014.42
5.4.340.0110.01114.38
5.4.330.0100.00313.72
5.4.320.0100.01214.44
5.4.310.0110.01214.40
5.4.300.0090.01114.42
5.4.290.0090.01114.41
5.4.280.0100.01114.41
5.4.270.0110.01114.42
5.4.260.0100.01014.43
5.4.250.0120.01014.41
5.4.240.0090.01214.38
5.4.230.0100.01114.35
5.4.220.0100.01014.34
5.4.210.0100.01114.35
5.4.200.0090.01214.36
5.4.190.0090.01214.38
5.4.180.0100.01014.37
5.4.170.0100.01114.38
5.4.160.0100.01014.37
5.4.150.0110.01114.40
5.4.140.0100.01014.11
5.4.130.0090.01114.17
5.4.120.0120.01014.13
5.4.110.0090.01014.13
5.4.100.0100.01114.13
5.4.90.0100.01114.12
5.4.80.0110.00914.15
5.4.70.0100.01114.16
5.4.60.0120.00914.16
5.4.50.0100.01014.12
5.4.40.0100.00914.12
5.4.30.0100.01014.16
5.4.20.0090.01014.12
5.4.10.0100.01114.17
5.4.00.0100.01014.04
5.3.290.0100.01214.14
5.3.280.0120.01114.06
5.3.270.0100.01114.05
5.3.260.0100.01114.08
5.3.250.0110.01114.08
5.3.240.0110.01014.05
5.3.230.0080.01314.06
5.3.220.0090.01214.01
5.3.210.0100.01013.99
5.3.200.0090.01114.03
5.3.190.0100.01114.02
5.3.180.0090.01114.10
5.3.170.0070.01314.08
5.3.160.0090.01114.08
5.3.150.0090.01014.09
5.3.140.0100.01114.04
5.3.130.0100.01114.06
5.3.120.0100.01114.04
5.3.110.0120.01014.08
5.3.100.0080.01314.01
5.3.90.0080.01214.01
5.3.80.0090.01113.99
5.3.70.0100.01113.95
5.3.60.0100.01014.05
5.3.50.0100.01013.99
5.3.40.0110.01013.97
5.3.30.0090.01214.01
5.3.20.0090.01014.00
5.3.10.0080.01113.88
5.3.00.0090.01113.92

preferences:
31.75 ms | 403 KiB | 5 Q