3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Predis\Command; interface CommandInterface {} abstract class AbstractCommand implements CommandInterface {} interface PrefixableCommandInterface {} abstract class PrefixableCommand extends AbstractCommand implements PrefixableCommandInterface { } class StringSet extends PrefixableCommand {} interface ConnectionInterface {} class Connection implements ConnectionInterface { public function executeCommand(CommandInterface $command) { echo 'foo connection'; } } class Tester { private $connection; public function __construct() { $this->connection = new Connection(); } public function executeCommand(CommandInterface $command) { $this->connection->executeCommand($command); } } $t = new Tester(); $t->executeCommand(new StringSet);

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.0120.00416.88
8.3.50.0140.00616.42
8.3.40.0110.00418.98
8.3.30.0040.01118.92
8.3.20.0040.00418.90
8.3.10.0000.00818.60
8.3.00.0040.00417.63
8.2.180.0110.01116.63
8.2.170.0090.00622.96
8.2.160.0130.01021.03
8.2.150.0040.00424.18
8.2.140.0070.01124.66
8.2.130.0080.00026.16
8.2.120.0040.00422.21
8.2.110.0070.00420.93
8.2.100.0090.00317.78
8.2.90.0040.00419.47
8.2.80.0040.00419.23
8.2.70.0040.00417.63
8.2.60.0080.00617.79
8.2.50.0040.00418.07
8.2.40.0000.00918.22
8.2.30.0040.00417.93
8.2.20.0080.00017.71
8.2.10.0040.00417.74
8.2.00.0000.00817.56
8.1.280.0100.00725.92
8.1.270.0070.00024.66
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00620.73
8.1.230.0040.00821.02
8.1.220.0040.00417.74
8.1.210.0060.00319.04
8.1.200.0130.00017.35
8.1.190.0070.00017.43
8.1.180.0030.00618.10
8.1.170.0000.00818.89
8.1.160.0000.00718.95
8.1.150.0020.00518.57
8.1.140.0070.00017.45
8.1.130.0000.00717.75
8.1.120.0090.00017.48
8.1.110.0070.00017.45
8.1.100.0040.00417.52
8.1.90.0040.00417.47
8.1.80.0040.00417.52
8.1.70.0000.00717.45
8.1.60.0050.00317.61
8.1.50.0040.00417.54
8.1.40.0050.00317.41
8.1.30.0040.00417.55
8.1.20.0040.00417.69
8.1.10.0060.00317.54
8.1.00.0000.00817.52
8.0.300.0040.00419.98
8.0.290.0040.00416.88
8.0.280.0040.00418.37
8.0.270.0070.00017.26
8.0.260.0000.00618.46
8.0.250.0000.00717.01
8.0.240.0040.00416.97
8.0.230.0040.00417.02
8.0.220.0030.00316.87
8.0.210.0030.00816.95
8.0.200.0000.00716.93
8.0.190.0040.00416.94
8.0.180.0030.00616.86
8.0.170.0030.00516.94
8.0.160.0000.00816.93
8.0.150.0060.00316.82
8.0.140.0050.00516.80
8.0.130.0000.00713.38
8.0.120.0030.00616.93
8.0.110.0040.00416.95
8.0.100.0000.00917.00
8.0.90.0040.00416.93
8.0.80.0080.01116.91
8.0.70.0000.00716.91
8.0.60.0040.00416.98
8.0.50.0040.00416.98
8.0.30.0100.01117.31
8.0.20.0120.00717.14
8.0.10.0050.00317.01
8.0.00.0110.00716.94
7.4.330.0000.00713.12
7.4.320.0030.00316.61
7.4.300.0060.00016.66
7.4.290.0100.00016.50
7.4.280.0070.00016.53
7.4.270.0080.00016.54
7.4.260.0050.00013.40
7.4.250.0040.00416.57
7.4.240.0030.00516.63
7.4.230.0030.00316.70
7.4.220.0100.00716.63
7.4.210.0040.01216.61
7.4.200.0000.00716.41
7.4.190.0000.00816.75
7.4.160.0060.01016.34
7.4.150.0060.01416.70
7.4.140.0130.00816.39
7.4.130.0100.01116.57
7.4.120.0130.00416.36
7.4.110.0150.00316.63
7.4.100.0100.00716.38
7.4.90.0120.01216.58
7.4.80.0110.01119.39
7.4.70.0110.00816.42
7.4.60.0100.00716.48
7.4.50.0130.00016.37
7.4.40.0100.00316.64
7.4.30.0060.01016.73
7.4.00.0000.01414.70
7.3.330.0070.00013.17
7.3.320.0000.00513.38
7.3.310.0000.00716.41
7.3.300.0000.00716.32
7.3.290.0130.00716.33
7.3.280.0040.01416.32
7.3.270.0130.00316.27
7.3.260.0120.00616.29
7.3.250.0080.01116.40
7.3.240.0110.01116.53
7.3.230.0110.00516.20
7.3.210.0130.00416.24
7.3.200.0070.01316.49
7.3.190.0120.01216.43
7.3.180.0060.01016.17
7.3.170.0150.00316.25
7.3.160.0050.01016.27
7.3.120.0120.00315.03
7.2.330.0070.01016.70
7.2.320.0070.01316.65
7.2.310.0140.00416.44
7.2.300.0090.00616.86
7.2.290.0040.01316.85
7.2.00.0060.00619.61
7.1.100.0220.00618.27
7.1.70.0040.00416.98
7.1.60.0100.00319.40
7.1.50.0070.01116.63
7.1.00.0070.04722.36
7.0.200.0370.00314.49
7.0.140.0030.07722.10
7.0.120.0030.07321.96
7.0.60.0100.07720.09
7.0.50.0070.08017.99
7.0.40.0230.04720.02
7.0.30.0270.04320.20
7.0.20.0300.03720.26
7.0.10.0230.04320.22
7.0.00.0300.04020.06
5.6.280.0030.07021.12
5.6.210.0000.04320.55
5.6.200.0100.05318.14
5.6.190.0230.04720.45
5.6.180.0330.04320.43
5.6.170.0300.04020.55
5.6.160.0400.02720.46
5.6.150.0300.04320.27
5.6.140.0270.04320.34
5.6.130.0200.04720.38
5.6.120.0270.03320.28
5.6.110.0000.04320.37
5.6.100.3300.04720.20
5.6.90.3500.04320.28
5.6.80.3470.04719.59
5.6.70.3500.03319.69
5.6.60.3600.03719.69
5.6.50.3330.04319.68
5.6.40.3300.04719.69
5.6.30.4000.04019.71
5.6.20.3400.04019.71
5.6.10.3430.03719.71
5.6.00.2770.04019.66
5.5.350.0200.07720.32
5.5.340.0130.06317.95
5.5.330.0300.03320.20
5.5.320.0300.05020.34
5.5.310.0230.04320.25
5.5.300.0370.03320.18
5.5.290.0400.03020.15
5.5.280.0170.04020.09
5.5.270.0030.05020.09
5.5.260.3170.04720.11
5.5.250.3800.04019.96
5.5.240.3700.04019.45
5.5.230.3530.04019.53
5.5.220.3930.04319.45
5.5.210.3300.03319.39
5.5.200.3630.03719.45
5.5.190.3500.03719.43
5.5.180.3400.04319.48
5.5.160.0030.04019.52
5.5.150.3570.04319.43
5.5.140.4270.04019.45
5.5.130.4200.04319.45
5.5.120.4270.03719.53
5.5.110.3500.03719.46
5.5.100.4000.03319.58
5.5.90.3630.04019.36
5.5.80.3600.04019.32
5.5.70.4200.03719.35
5.5.60.4000.04319.36
5.5.50.4370.03019.42
5.5.40.3230.03719.45
5.5.30.3830.04719.57
5.5.20.3500.04019.41
5.5.10.3400.04019.41
5.5.00.4200.04319.40
5.4.450.0230.04319.39
5.4.440.0070.03719.23
5.4.430.0930.03719.60
5.4.420.3900.04319.59
5.4.410.3500.03319.21
5.4.400.3400.03019.10
5.4.390.3370.03018.89
5.4.380.4030.04019.04
5.4.370.3270.03319.05
5.4.360.3430.04319.04
5.4.350.3270.04319.02
5.4.340.3500.04018.96
5.4.320.0030.07719.14
5.4.310.1970.05718.96
5.4.300.4200.04018.95
5.4.290.4100.03719.10
5.4.280.4070.04018.98
5.4.270.4230.04319.11
5.4.260.4070.03319.12
5.4.250.4030.03319.02
5.4.240.4070.03719.13
5.4.230.4270.03318.88
5.4.220.4170.04019.13
5.4.210.4070.03319.03
5.4.200.3530.04318.97
5.4.190.3370.03319.11
5.4.180.3370.04019.09
5.4.170.3930.03719.13
5.4.160.3770.03319.11
5.4.150.4130.03718.97
5.4.140.4100.04016.35
5.4.130.3330.03316.48
5.4.120.3170.04016.34
5.4.110.3470.03716.50
5.4.100.3500.04016.44
5.4.90.3630.03016.35
5.4.80.3400.03316.52
5.4.70.3700.03716.38
5.4.60.3430.03316.28
5.4.50.3570.03016.40
5.4.40.3500.03716.36
5.4.30.3530.03716.37
5.4.20.3700.03716.32
5.4.10.3530.03716.46
5.4.00.3600.03015.85
5.3.290.0100.07314.70
5.3.280.3200.04314.65
5.3.270.3570.03714.83
5.3.260.4270.04014.82
5.3.250.4300.02714.57
5.3.240.4200.03714.61
5.3.230.3230.03714.82
5.3.220.3570.03714.64
5.3.210.3530.03714.43
5.3.200.3470.04014.63
5.3.190.3300.03714.54
5.3.180.3470.03714.62
5.3.170.3470.04014.53
5.3.160.3600.03314.60
5.3.150.3570.03314.67
5.3.140.3770.03314.61
5.3.130.3400.03714.59
5.3.120.3500.03714.60
5.3.110.3630.04314.60
5.3.100.3500.03714.01
5.3.90.3530.03314.07
5.3.80.3600.04014.09
5.3.70.3530.03314.07
5.3.60.3930.03714.04
5.3.50.4170.03714.07
5.3.40.3570.03014.00
5.3.30.3570.03313.91
5.3.20.3700.03313.75
5.3.10.3400.03713.71
5.3.00.3070.03013.68
5.2.170.3100.02310.92
5.2.160.2700.02311.29
5.2.150.2970.03311.17
5.2.140.3470.03311.10
5.2.130.3430.02311.08
5.2.120.2770.02711.24
5.2.110.2770.02311.11
5.2.100.2630.03011.05
5.2.90.2730.02711.11
5.2.80.2530.02311.01
5.2.70.2770.02010.93
5.2.60.3100.03011.04
5.2.50.2700.03310.84
5.2.40.2200.02710.77
5.2.30.2170.02311.12
5.2.20.1970.02710.94
5.2.10.2030.02710.90
5.2.00.2200.02310.75
5.1.60.1970.0239.96
5.1.50.2270.01710.02
5.1.40.2230.0239.95
5.1.30.2470.02710.34
5.1.20.2200.02310.37
5.1.10.2630.02710.13
5.1.00.2300.0239.97
5.0.50.1500.0238.60
5.0.40.1570.0178.54
5.0.30.1730.0308.05
5.0.20.1330.0208.16
5.0.10.1270.0237.99
5.0.00.1400.0378.22
4.4.90.0930.0177.28
4.4.80.1100.0137.28
4.4.70.1100.0137.28
4.4.60.0800.0177.28
4.4.50.1100.0137.28
4.4.40.1070.0237.28
4.4.30.1170.0207.28
4.4.20.1370.0177.28
4.4.10.1430.0137.28
4.4.00.1330.0277.28
4.3.110.1700.0137.28
4.3.100.1200.0177.28
4.3.90.1100.0137.28
4.3.80.1200.0207.28
4.3.70.1430.0177.28
4.3.60.1530.0177.28
4.3.50.1400.0207.28
4.3.40.1370.0307.28
4.3.30.0900.0177.28
4.3.20.0970.0207.28
4.3.10.0900.0237.28
4.3.00.0930.0207.28

preferences:
51.67 ms | 401 KiB | 5 Q