3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 0); interface Foo { /** * @return string|object The violation message as a string or a stringable object */ function getMessage(); } class SomeMessage implements Foo { /** * {@inheritDoc} */ public function getMessage() { return new class { public function __toString(): string { return 'Hello World'; } }; } }; (static function (string $message): void { echo $message; })((new SomeMessage())->getMessage());

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.0170.00318.30
8.3.50.0040.01118.12
8.3.40.0150.00618.76
8.3.30.0110.00418.75
8.3.20.0080.00020.82
8.3.10.0120.00320.34
8.3.00.0080.00022.38
8.2.180.0070.01116.35
8.2.170.0040.01122.96
8.2.160.0110.00422.20
8.2.150.0000.00824.18
8.2.140.0090.00624.66
8.2.130.0070.00026.16
8.2.120.0040.00420.81
8.2.110.0070.00320.52
8.2.100.0080.00417.78
8.2.90.0030.00617.64
8.2.80.0050.00317.97
8.2.70.0040.00417.80
8.2.60.0040.00418.16
8.2.50.0040.00418.10
8.2.40.0030.00519.24
8.2.30.0000.00719.19
8.2.20.0040.00418.05
8.2.10.0000.00718.91
8.2.00.0040.00419.11
8.1.280.0080.00625.92
8.1.270.0060.00320.80
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0000.00923.88
8.1.230.0100.00320.81
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0060.00317.36
8.1.190.0040.00417.35
8.1.180.0030.00518.10
8.1.170.0040.00418.59
8.1.160.0040.00418.86
8.1.150.0000.00718.78
8.1.140.0000.00818.77
8.1.130.0000.00820.13
8.1.120.0000.00717.44
8.1.110.0000.00817.29
8.1.100.0080.00017.32
8.1.90.0040.00417.46
8.1.80.0040.00417.43
8.1.70.0000.00817.36
8.1.60.0040.00417.55
8.1.50.0000.01117.47
8.1.40.0040.00417.46
8.1.30.0070.00017.58
8.1.20.0000.00717.48
8.1.10.0000.00917.50
8.1.00.0030.00517.43
8.0.300.0000.00819.60
8.0.290.0060.00616.75
8.0.280.0030.00318.43
8.0.270.0030.00617.24
8.0.260.0030.00320.05
8.0.250.0000.00716.91
8.0.240.0030.00316.98
8.0.230.0070.00016.98
8.0.220.0030.00316.95
8.0.210.0000.00716.84
8.0.200.0040.00417.01
8.0.190.0040.00416.99
8.0.180.0000.00716.95
8.0.170.0040.00416.96
8.0.160.0000.00716.88
8.0.150.0070.00016.81
8.0.140.0080.00016.93
8.0.130.0030.00313.37
8.0.120.0000.00816.94
8.0.110.0040.00416.94
8.0.100.0070.00016.72
8.0.90.0040.00416.79
8.0.80.0130.00916.93
8.0.70.0000.00716.94
8.0.60.0000.00716.84
8.0.50.0000.00816.91
8.0.30.0130.00316.74
8.0.20.0130.00917.05
8.0.10.0000.00717.11
8.0.00.0030.01516.62
7.4.330.0050.00015.55
7.4.320.0030.00316.42
7.4.300.0000.00616.56
7.4.290.0040.00416.50
7.4.280.0000.00816.59
7.4.270.0000.00716.64
7.4.260.0000.00513.38
7.4.250.0040.00416.54
7.4.240.0030.00516.51
7.4.230.0050.00216.67
7.4.220.0020.00516.46
7.4.210.0070.01016.60
7.4.200.0050.00216.47
7.4.130.0100.01016.51
7.4.120.0100.00616.55
7.4.110.0070.01316.60
7.4.100.0080.00816.48
7.4.90.0100.00616.41
7.4.80.0080.00819.39
7.4.70.0090.00616.31
7.4.60.0100.00616.68
7.4.50.0100.00616.57
7.4.40.0050.01016.46
7.4.00.0080.00714.79
7.3.330.0070.00016.30
7.3.320.0060.00013.32
7.3.310.0000.00716.34
7.3.300.0030.00316.15
7.3.290.0070.01016.25
7.3.280.0070.01016.36
7.3.260.0090.00916.36
7.3.240.0110.00716.45
7.3.230.0160.00016.59
7.3.210.0060.01016.68
7.3.200.0070.01416.54
7.3.190.0180.00016.33
7.3.180.0070.01016.64
7.3.170.0080.01516.66
7.3.160.0060.00916.28
7.3.120.0140.00514.79
7.3.110.0090.00315.00
7.3.100.0090.00614.71
7.3.90.0030.00914.63
7.3.80.0030.00914.67
7.3.70.0060.00614.66
7.3.60.0070.01014.36
7.3.50.0110.00714.65
7.3.40.0040.01214.61
7.3.30.0070.01014.61
7.3.20.0030.01014.58
7.3.10.0080.00614.60
7.3.00.0030.01014.61
7.2.330.0110.00616.70
7.2.320.0090.00916.67
7.2.310.0110.00516.86
7.2.300.0150.00416.40
7.2.290.0060.01016.80
7.2.250.0050.01414.82
7.2.240.0090.00314.68
7.2.230.0130.00914.61
7.2.220.0120.01214.76
7.2.210.0080.00414.85
7.2.200.0070.01014.94
7.2.190.0000.01514.91
7.2.180.0150.00014.86
7.2.170.0030.00914.75
7.2.160.0000.01314.78
7.2.150.0030.01314.91
7.2.140.0050.00814.84
7.2.130.0030.01514.94
7.2.120.0100.00414.93
7.2.110.0060.00915.15
7.2.100.0030.01315.16
7.2.90.0100.01014.89
7.2.80.0050.01114.97
7.2.70.0100.00714.80
7.2.60.0090.01214.99
7.2.50.0050.01014.97
7.2.40.0110.00515.02
7.2.30.0100.00915.20
7.2.20.0060.00915.07
7.2.10.0100.01014.95
7.2.00.0090.00915.00
7.1.330.0030.00913.89
7.1.320.0030.00913.65
7.1.310.0050.01013.53
7.1.300.0140.00613.83
7.1.290.0120.00913.84
7.1.280.0030.01013.75
7.1.270.0100.00313.77
7.1.260.0040.00913.99
7.1.250.0110.00313.91

preferences:
59.35 ms | 400 KiB | 5 Q