3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function current() { return 5; } } class B {} class C extends A { public function current(): B { return new B(); } } $o = new C; var_dump($o->current());

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.0070.01118.56
8.3.50.0120.00318.18
8.3.40.0040.01118.58
8.3.30.0070.00718.68
8.3.20.0030.00518.98
8.3.10.0030.00720.90
8.3.00.0090.00023.66
8.2.180.0110.01116.59
8.2.170.0090.00622.96
8.2.160.0070.01022.16
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0100.00017.84
8.2.120.0020.00526.35
8.2.110.0060.00321.11
8.2.100.0070.00417.62
8.2.90.0060.00317.71
8.2.80.0000.00917.97
8.2.70.0080.00017.92
8.2.60.0040.00418.04
8.2.50.0040.00418.10
8.2.40.0040.00419.12
8.2.30.0030.00519.25
8.2.20.0060.00317.88
8.2.10.0060.00317.93
8.2.00.0040.00419.42
8.1.280.0030.01025.92
8.1.270.0040.00420.21
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.47
8.1.230.0090.00320.96
8.1.220.0030.00517.76
8.1.210.0090.00018.89
8.1.200.0060.00317.00
8.1.190.0040.00417.22
8.1.180.0000.00818.10
8.1.170.0030.00618.65
8.1.160.0070.00018.74
8.1.150.0000.00818.78
8.1.140.0070.00017.68
8.1.130.0030.00319.02
8.1.120.0000.00717.30
8.1.110.0080.00317.39
8.1.100.0000.00817.29
8.1.90.0000.00717.38
8.1.80.0050.00217.32
8.1.70.0030.00717.31
8.1.60.0030.00517.53
8.1.50.0040.00417.50
8.1.40.0080.00017.40
8.1.30.0080.00017.64
8.1.20.0000.00817.69
8.1.10.0000.00817.38
8.1.00.0050.00317.49
8.0.300.0040.00419.96
8.0.290.0040.00416.63
8.0.280.0030.00318.30
8.0.270.0000.00817.20
8.0.260.0030.00317.23
8.0.250.0000.00716.88
8.0.240.0030.00316.80
8.0.230.0040.00416.88
8.0.220.0040.00416.93
8.0.210.0040.00316.76
8.0.200.0030.00316.78
8.0.190.0030.00516.77
8.0.180.0040.00416.82
8.0.170.0050.00316.89
8.0.160.0040.00416.83
8.0.150.0000.00716.78
8.0.140.0070.00016.81
8.0.130.0000.00613.19
8.0.120.0040.00416.69
8.0.110.0040.00416.81
8.0.100.0000.00816.87
8.0.90.0070.00016.74
8.0.80.0110.00516.84
8.0.70.0040.00416.86
8.0.60.0040.00416.85
8.0.50.0000.00716.79
8.0.30.0090.00916.89
8.0.20.0140.00517.40
8.0.10.0020.00516.89
8.0.00.0110.00716.79
7.4.330.0060.00015.55
7.4.320.0000.00716.45
7.4.300.0000.00616.49
7.4.290.0030.00316.48
7.4.280.0070.00016.49
7.4.270.0000.00916.58
7.4.260.0040.00416.59
7.4.250.0000.00716.43
7.4.240.0000.00716.52
7.4.230.0030.00316.44
7.4.220.0070.00016.69
7.4.210.0110.00816.57
7.4.200.0000.00716.54
7.4.160.0080.00916.36
7.4.140.0110.00817.86
7.4.130.0100.00716.48
7.4.120.0150.00916.50
7.4.110.0080.00916.34
7.4.100.0080.00816.30
7.4.90.0110.00516.51
7.4.80.0070.01019.39
7.4.70.0120.00816.43
7.4.60.0000.01716.53
7.4.50.0060.00916.49
7.4.40.0090.01516.59
7.4.00.0090.00314.65
7.3.330.0050.00013.10
7.3.320.0030.00313.27
7.3.310.0030.00316.05
7.3.300.0000.00716.18
7.3.290.0030.00316.25
7.3.280.0030.01016.22
7.3.260.0120.00516.32
7.3.240.0100.00716.27
7.3.230.0030.01616.48
7.3.210.0060.01216.50
7.3.200.0130.00316.49
7.3.190.0030.01316.54
7.3.180.0080.00816.45
7.3.170.0120.00416.46
7.3.160.0150.00016.44
7.3.10.0060.00815.75
7.3.00.0040.01116.28
7.2.330.0170.00016.29
7.2.320.0170.00616.66
7.2.310.0080.01516.68
7.2.300.0070.01016.54
7.2.290.0000.01716.38
7.2.130.0060.00616.77
7.2.120.0030.00916.48
7.2.110.0060.00916.29
7.2.100.0090.00616.64
7.2.90.0030.01216.75
7.2.80.0030.00616.78
7.2.70.0070.00716.51
7.2.60.0170.00815.36
7.2.50.0190.01215.47
7.2.40.0270.00615.57
7.2.30.0170.00915.64
7.2.20.0210.00615.60
7.2.10.0180.00815.54
7.2.00.0130.01115.71
7.1.250.0000.01315.47
7.1.200.0120.00315.62
7.1.170.0260.00613.80
7.1.160.0280.01013.68
7.1.150.0460.01013.59
7.1.140.0310.00513.72
7.1.130.0310.00613.59
7.1.120.0310.00313.48
7.1.110.0430.00613.68
7.1.100.0290.00613.65
7.1.90.0380.00313.65
7.1.80.0320.00613.60
7.1.70.0320.00413.88
7.1.60.0590.00331.87
7.1.50.0560.01231.77
7.1.40.0440.01731.74
7.1.30.0560.00631.67
7.1.20.0450.01631.57
7.1.10.0280.01013.83
7.1.00.0350.01013.51

preferences:
79.07 ms | 401 KiB | 5 Q