3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface InterfaceY { public function y(): string; } trait TraitY { public function y(): string { } } class X { public function y(): string { } } class Y extends X implements InterfaceY { use TraitY; }

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.0140.00716.38
8.3.50.0070.01321.92
8.3.40.0070.00718.51
8.3.30.0070.00718.46
8.3.20.0080.00021.95
8.3.10.0040.00420.23
8.3.00.0040.00421.95
8.2.180.0200.00018.41
8.2.170.0100.01018.59
8.2.160.0100.00322.96
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0080.00020.80
8.2.120.0080.00026.35
8.2.110.0090.00019.45
8.2.100.0070.00417.80
8.2.90.0000.00919.23
8.2.80.0000.00817.97
8.2.70.0000.00817.63
8.2.60.0080.00017.80
8.2.50.0000.00818.09
8.2.40.0050.00321.98
8.2.30.0070.00019.28
8.2.20.0040.00417.67
8.2.10.0040.00417.84
8.2.00.0040.00417.86
8.1.280.0080.00625.92
8.1.270.0100.01022.12
8.1.260.0080.00028.09
8.1.250.0000.00728.09
8.1.240.0090.00022.53
8.1.230.0110.00017.58
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0070.00317.35
8.1.190.0000.00817.23
8.1.180.0030.00518.10
8.1.170.0090.00018.37
8.1.160.0000.00720.57
8.1.150.0040.00418.82
8.1.140.0060.00319.47
8.1.130.0000.00717.63
8.1.120.0000.00717.29
8.1.110.0000.00717.29
8.1.100.0050.00317.36
8.1.90.0030.00617.37
8.1.80.0040.00417.25
8.1.70.0070.00317.39
8.1.60.0040.00417.44
8.1.50.0030.00617.47
8.1.40.0040.00417.43
8.1.30.0050.00317.64
8.1.20.0000.00717.45
8.1.10.0080.00017.42
8.1.00.0040.00417.29
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00718.50
8.0.270.0040.00417.23
8.0.260.0040.00417.18
8.0.250.0000.00716.77
8.0.240.0040.00416.83
8.0.230.0030.00316.89
8.0.220.0030.00516.82
8.0.210.0000.00716.72
8.0.200.0060.00016.88
8.0.190.0080.00016.87
8.0.180.0040.00416.72
8.0.170.0080.00016.71
8.0.160.0030.00716.88
8.0.150.0000.00716.79
8.0.140.0000.00716.66
8.0.130.0000.00513.18
8.0.120.0080.00016.88
8.0.110.0000.00716.73
8.0.100.0000.00816.83
8.0.90.0040.00416.77
8.0.80.0060.00916.88
8.0.70.0000.00816.84
8.0.60.0060.00316.78
8.0.50.0040.00416.62
8.0.30.0090.00616.91
8.0.20.0130.00717.40
8.0.10.0040.00417.02
8.0.00.0070.01116.61
7.4.330.0020.00216.88
7.4.320.0060.00016.48
7.4.300.0000.00716.55
7.4.290.0070.00016.52
7.4.280.0050.00316.43
7.4.270.0030.00316.52
7.4.260.0030.00316.41
7.4.250.0040.00416.43
7.4.240.0000.00716.45
7.4.230.0000.00716.55
7.4.220.0210.00316.54
7.4.210.0070.01016.64
7.4.200.0070.00016.33
7.4.160.0120.00316.58
7.4.150.0060.01217.40
7.4.140.0130.01017.86
7.4.130.0080.01116.40
7.4.120.0100.00716.37
7.4.110.0070.01516.53
7.4.100.0100.00716.41
7.4.90.0150.00916.31
7.4.80.0100.00719.39
7.4.70.0000.01616.41
7.4.60.0110.00716.63
7.4.50.0130.00316.04
7.4.40.0140.00316.64
7.4.30.0110.00716.41
7.4.00.0080.00814.91
7.3.330.0050.00013.24
7.3.320.0030.00313.22
7.3.310.0000.00816.32
7.3.300.0070.00016.21
7.3.290.0080.00816.32
7.3.280.0070.01316.28
7.3.270.0120.00517.40
7.3.260.0120.00616.34
7.3.250.0110.00616.35
7.3.240.0110.00716.36
7.3.230.0120.00616.39
7.3.210.0030.01316.56
7.3.200.0060.01616.38
7.3.190.0060.01116.41
7.3.180.0090.00616.59
7.3.170.0040.01216.23
7.3.160.0050.01016.42
7.3.120.0060.01314.77
7.3.110.0070.01014.86
7.3.100.0030.00614.70
7.3.90.0100.00714.49
7.3.80.0060.00314.76
7.3.70.0030.01014.56
7.3.60.0030.00914.78
7.3.50.0070.00714.74
7.3.40.0040.00814.75
7.3.30.0060.00614.85
7.3.20.0030.01016.65
7.3.10.0090.00316.55
7.3.00.0060.00616.46
7.2.330.0070.01016.54
7.2.320.0180.00016.38
7.2.310.0080.00816.60
7.2.300.0050.01016.41
7.2.290.0110.00816.54
7.2.250.0040.01514.76
7.2.240.0170.00314.91
7.2.230.0120.00614.38
7.2.220.0100.00414.94
7.2.210.0060.00615.03
7.2.200.0050.00514.77
7.2.190.0030.00614.82
7.2.180.0030.01014.82
7.2.170.0060.00614.96
7.2.60.0280.00316.58
7.2.00.0000.00919.36
7.1.330.0000.01315.40
7.1.320.0030.01215.72
7.1.310.0090.00615.80
7.1.300.0070.00415.69
7.1.290.0080.00515.84
7.1.280.0060.00915.71
7.1.270.0030.01015.76
7.1.260.0040.01215.38
7.1.200.0120.01115.54
7.1.70.0050.00217.01
7.1.60.0080.00416.81
7.1.50.0270.01034.40
7.1.00.0030.07322.57
7.0.200.0060.00916.70
7.0.60.0330.05020.06
7.0.50.0030.07717.86
7.0.40.0030.09020.24
7.0.30.0230.08320.17
7.0.20.0230.06720.06
7.0.10.0070.05020.12
7.0.00.0100.04720.29
5.6.280.0000.07321.15
5.6.210.0070.05720.67
5.6.200.0100.04718.20
5.6.190.0100.06020.61
5.6.180.0270.04020.52
5.6.170.0300.04720.62
5.6.160.0070.04320.39
5.6.150.0070.05718.18
5.6.140.0070.07318.15
5.6.130.0070.04318.14
5.6.120.0100.08020.99
5.6.110.0030.07721.09
5.6.100.0030.04321.01
5.6.90.0170.07321.08
5.6.80.0170.08320.42
5.5.350.0130.05320.43
5.5.340.0070.08017.94
5.5.330.0070.04320.31
5.5.320.0630.05720.33
5.5.310.0330.07320.27
5.5.300.0070.04717.98
5.5.290.0100.05318.01
5.5.280.0070.04020.98
5.5.270.0100.08020.76
5.5.260.0070.06020.77
5.5.250.0170.07320.64
5.5.240.0200.08020.23

preferences:
59.48 ms | 401 KiB | 5 Q