3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface FooInterface {} class A implements FooInterface {} class B implements FooInterface {} interface DoX { public function run(): FooInterface; } class Imp implements DoX { /** * @return \A|\B */ public function run() { return new A(); } }

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.5.20.0080.00820.23
8.5.10.0080.01016.75
8.5.00.0150.00721.70
8.4.170.0140.00722.03
8.4.160.0110.01421.97
8.4.150.0020.00014.05
8.4.140.0120.00917.27
8.4.130.0100.01217.95
8.4.120.0110.01020.48
8.4.110.0130.00719.11
8.4.100.0140.00617.68
8.4.90.0150.00617.87
8.4.80.0130.00717.86
8.4.70.0050.00517.79
8.4.60.0340.01317.57
8.4.50.0340.01217.42
8.4.40.0400.00917.57
8.4.30.0210.00817.63
8.4.20.0240.01017.70
8.4.10.0360.00817.55
8.3.300.0100.01120.79
8.3.290.0150.00720.71
8.3.280.0020.00014.05
8.3.270.0090.00916.83
8.3.260.0080.01116.75
8.3.250.0090.00818.81
8.3.240.0110.00816.80
8.3.230.0100.00916.88
8.3.220.0050.00316.79
8.3.210.0130.00716.63
8.3.200.0360.00816.33
8.3.190.0380.01016.68
8.3.180.0340.00816.59
8.3.170.0390.01016.50
8.3.160.0390.01016.35
8.3.150.0400.00716.51
8.3.140.0320.00916.49
8.3.130.0250.00916.61
8.3.120.0260.00816.52
8.3.110.0340.00716.61
8.3.100.0380.00916.36
8.3.90.0370.00616.57
8.3.80.0410.00516.53
8.3.70.0260.00316.49
8.3.60.0460.00816.41
8.3.50.0380.01016.50
8.3.40.0330.01317.38
8.3.30.0310.00817.34
8.3.20.0320.00917.40
8.3.10.0270.00717.28
8.3.00.0220.00717.39
8.2.300.0120.00920.29
8.2.290.0090.00820.34
8.2.280.0230.01016.69
8.2.270.0320.00816.57
8.2.260.0300.01016.74
8.2.250.0320.00816.63
8.2.240.0330.00716.67
8.2.230.0300.01016.15
8.2.220.0340.00616.42
8.2.210.0310.00816.54
8.2.200.0290.00716.34
8.2.190.0300.01116.14
8.2.180.0250.01316.33
8.2.170.0330.01217.57
8.2.160.0360.00717.64
8.2.150.0330.00917.60
8.2.140.0320.01017.45
8.2.130.0360.00717.54
8.2.120.0340.00917.44
8.2.110.0250.00717.59
8.2.100.0200.01117.45
8.2.90.0380.00617.58
8.2.80.0300.01217.50
8.2.70.0350.00717.37
8.2.60.0460.00917.17
8.2.50.0380.00817.36
8.2.40.0280.00517.22
8.2.30.0390.00717.19
8.2.20.0220.00317.55
8.2.10.0350.00617.41
8.2.00.0330.00517.53
8.1.340.0120.00719.98

preferences:
28.87 ms | 403 KiB | 5 Q