3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 1); abstract class test{ abstract public function hi(): string; } class hello extends test { public function hi(): string { return array(); } }

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.0120.00316.10
8.3.40.0210.00018.68
8.3.30.0110.01118.58
8.3.20.0040.00420.34
8.3.10.0080.00021.85
8.3.00.0040.00419.44
8.2.180.0170.00317.93
8.2.170.0030.01222.96
8.2.160.0070.01320.43
8.2.150.0030.00524.18
8.2.140.0140.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00420.93
8.2.110.0060.00322.20
8.2.100.0150.00017.38
8.2.90.0040.00419.11
8.2.80.0040.00417.97
8.2.70.0050.00317.36
8.2.60.0030.00517.68
8.2.50.0040.00418.07
8.2.40.0080.00019.43
8.2.30.0070.00019.63
8.2.20.0030.00617.54
8.2.10.0000.00717.80
8.2.00.0040.00417.93
8.1.280.0070.00725.92
8.1.270.0130.00320.40
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00322.40
8.1.230.0040.00817.42
8.1.220.0050.00317.74
8.1.210.0000.00918.77
8.1.200.0100.00316.88
8.1.190.0040.00417.23
8.1.180.0080.00018.10
8.1.170.0040.00418.67
8.1.160.0070.00022.00
8.1.150.0030.00618.75
8.1.140.0040.00417.31
8.1.130.0080.00017.58
8.1.120.0000.00717.37
8.1.110.0050.00317.38
8.1.100.0000.00817.23
8.1.90.0000.00717.25
8.1.80.0000.00817.26
8.1.70.0030.00317.34
8.1.60.0080.00017.45
8.1.50.0080.00017.23
8.1.40.0070.00417.33
8.1.30.0040.00417.42
8.1.20.0000.00717.52
8.1.10.0000.00717.37
8.1.00.0060.00317.21
8.0.300.0000.00918.77
8.0.290.0040.00416.63
8.0.280.0050.00218.19
8.0.270.0040.00417.11
8.0.260.0000.00717.18
8.0.250.0040.00416.79
8.0.240.0050.00316.73
8.0.230.0000.00716.82
8.0.220.0000.00716.73
8.0.210.0040.00416.79
8.0.200.0000.00616.73
8.0.190.0050.00316.72
8.0.180.0040.00416.82
8.0.170.0060.00316.71
8.0.160.0070.00016.83
8.0.150.0040.00316.74
8.0.140.0030.00416.76
8.0.130.0030.00613.18
8.0.120.0050.00316.71
8.0.110.0000.00716.66
8.0.100.0060.00316.80
8.0.90.0000.00716.88
8.0.80.0060.00916.75
8.0.70.0040.00416.73
8.0.60.0030.00416.73
8.0.50.0050.00216.76
8.0.30.0100.00617.15
8.0.20.0180.00417.40
8.0.10.0070.00016.88
8.0.00.0060.01216.57
7.4.330.0020.00215.08
7.4.320.0070.00016.39
7.4.300.0040.00416.47
7.4.290.0020.00716.38
7.4.280.0000.00616.31
7.4.270.0030.00316.48
7.4.260.0000.00716.35
7.4.250.0000.00716.40
7.4.240.0000.00816.43
7.4.230.0030.00316.35
7.4.220.0090.00916.31
7.4.210.0080.00616.41
7.4.200.0070.00016.46
7.4.160.0060.00916.23
7.4.150.0070.01317.40
7.4.140.0120.01017.86
7.4.130.0040.01416.36
7.4.120.0100.00616.25
7.4.110.0110.00616.33
7.4.100.0120.00916.47
7.4.90.0080.00916.54
7.4.80.0090.00619.39
7.4.70.0060.01216.25
7.4.60.0080.00816.34
7.4.50.0000.00716.14
7.4.40.0060.00916.51
7.4.30.0140.00616.35
7.4.00.0070.00714.72
7.3.330.0000.00713.09
7.3.320.0030.00313.09
7.3.310.0000.00716.03
7.3.300.0030.00316.13
7.3.290.0000.00716.04
7.3.280.0080.00816.16
7.3.270.0060.01017.40
7.3.260.0130.00416.32
7.3.250.0120.00516.14
7.3.240.0060.01016.32
7.3.230.0130.00316.39
7.3.210.0040.01116.34
7.3.200.0070.01016.30
7.3.190.0070.01016.25
7.3.180.0130.00316.16
7.3.170.0060.01016.34
7.3.160.0100.00716.40
7.2.330.0040.01416.24
7.2.320.0070.01116.55
7.2.310.0100.01316.40
7.2.300.0140.00716.63
7.2.290.0170.00616.42
7.2.60.0070.00716.47
7.2.00.0030.00719.22
7.1.200.0090.00615.65
7.1.100.0040.01118.01
7.1.70.0040.00416.99
7.1.60.0070.01720.03
7.1.50.0060.01316.80
7.1.00.0070.07322.32
7.0.200.0000.00716.46
7.0.60.0030.04020.00
7.0.50.0070.03717.86
7.0.40.0000.05020.40
7.0.30.0270.04720.06
7.0.20.0200.05320.33
7.0.10.0070.08720.16
7.0.00.0000.09020.20
5.6.280.0030.06721.13
5.6.210.0100.03320.63
5.6.200.0070.08718.29
5.6.190.0070.09020.46
5.6.180.0400.06720.52
5.6.170.0270.09020.51
5.6.160.0030.04320.64
5.6.150.0070.08018.14
5.6.140.0070.03718.24
5.6.130.0100.05018.27
5.6.120.0100.03721.00
5.6.110.0100.08720.98
5.6.100.0130.03720.98
5.6.90.0030.08721.00
5.6.80.0070.08020.53
5.6.70.4500.03720.50
5.5.350.0170.04720.39
5.5.340.0030.04717.98
5.5.330.0030.04320.42
5.5.320.0570.06020.42
5.5.310.0230.04720.29
5.5.300.0000.04717.97
5.5.290.0100.06317.99
5.5.280.0030.08320.74
5.5.270.0200.04020.89
5.5.260.0100.08320.68
5.5.250.0100.05320.60
5.5.240.0370.05720.34
5.4.450.0270.05319.57
5.4.440.0070.06019.27
5.4.430.0130.05019.27
5.4.420.0170.05319.56
5.4.410.0230.04719.43
5.4.400.0130.05018.85
5.4.390.0130.05319.21
5.4.380.0130.06319.07
5.4.370.0570.05719.26
5.4.360.0430.04718.84
5.4.350.0130.05319.23
5.4.340.0070.06019.37
5.4.320.0100.05319.11
5.4.310.0070.05319.37
5.4.300.0370.05319.16
5.4.290.0630.05319.28
5.4.280.0870.05319.12
5.4.270.0700.06319.27
5.4.260.0730.04719.27
5.4.250.0700.06019.27
5.4.240.0670.05718.82
5.4.230.0630.07719.09
5.4.220.0870.06019.24
5.4.210.0300.06319.37
5.4.200.0170.06318.81
5.4.190.0300.04319.36
5.4.180.0130.06019.26
5.4.170.0230.06018.94
5.4.160.0130.06019.09
5.4.150.0200.05719.11
5.4.140.0200.05316.61
5.4.130.0130.05016.35
5.4.120.0230.04316.40
5.4.110.0230.05016.47
5.4.100.0230.04016.68
5.4.90.0130.05016.30
5.4.80.0170.04716.32
5.4.70.0170.03316.42
5.4.60.0330.06316.34
5.4.50.0070.07316.49
5.4.40.0030.07716.42
5.4.30.0030.03316.53
5.4.20.0270.03716.37

preferences:
55.15 ms | 400 KiB | 5 Q