3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Test { public static function factory() : object { return new static(); } } class Test2 extends Test { public static function factory() : static { return parent::factory(); } }

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.80.0050.00216.72
8.5.70.0110.00618.20
8.5.60.0080.00916.51
8.5.50.0120.00518.20
8.5.30.0070.01020.24
8.5.20.0070.01020.17
8.5.10.0110.00720.38
8.5.00.0100.01321.53
8.4.230.0100.00719.27
8.4.220.0070.00319.41
8.4.210.0120.00919.38
8.4.180.0120.01421.95
8.4.170.0120.01121.96
8.4.160.0150.00822.03
8.4.150.0060.00516.82
8.4.140.0150.00617.30
8.4.130.0140.00520.36
8.4.120.0060.00324.08
8.4.110.0160.00622.62
8.4.100.0070.01117.45
8.4.90.0080.01120.50
8.4.80.0100.01017.68
8.4.70.0070.00117.46
8.4.60.0100.00618.46
8.4.50.0130.00718.51
8.4.40.0100.01017.67
8.4.30.0040.00817.61
8.4.20.0180.00020.65
8.4.10.0030.00619.44
8.3.310.0080.01218.39
8.3.300.0120.00918.32
8.3.290.0110.01020.73
8.3.280.0110.01018.30
8.3.270.0120.00716.36
8.3.260.0120.00816.39
8.3.250.0110.00718.99
8.3.240.0080.01016.91
8.3.230.0110.00916.22
8.3.220.0150.00516.86
8.3.210.0120.00816.36
8.3.200.0080.00216.41
8.3.190.0110.00816.90
8.3.180.0090.00616.55
8.3.170.0070.00720.59
8.3.160.0120.00617.02
8.3.150.0060.01220.62
8.3.140.0050.00316.44
8.3.130.0030.00618.13
8.3.120.0100.00018.98
8.3.110.0000.00520.94
8.3.100.0040.00716.51
8.3.90.0130.00626.77
8.3.80.0030.00617.97
8.3.70.0130.00316.63
8.3.60.0150.00616.38
8.3.50.0140.00521.97
8.3.40.0120.00418.64
8.3.30.0110.00318.64
8.3.20.0030.00518.81
8.3.10.0040.00421.77
8.3.00.0040.00418.89
8.2.310.0130.00718.11
8.2.300.0140.00820.27
8.2.290.0100.00920.39
8.2.280.0090.00918.23
8.2.270.0110.00717.14
8.2.260.0040.00416.92
8.2.250.0110.00718.12
8.2.240.0090.00018.90
8.2.230.0090.00022.58
8.2.220.0050.00324.06
8.2.210.0050.00526.77
8.2.200.0000.00916.50
8.2.190.0140.00318.19
8.2.180.0120.00616.50
8.2.170.0070.00722.96
8.2.160.0000.01620.38
8.2.150.0070.00024.18
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0040.00419.47
8.2.110.0060.00322.23
8.2.100.0060.00318.64
8.1.340.0080.01220.07
8.1.330.0110.00721.88
8.1.320.0110.00916.04
8.1.310.0120.00616.53
8.1.300.0000.01615.95
8.1.290.0060.00330.84
8.1.280.0120.00625.92
8.1.270.0080.00022.07
8.1.260.0050.00226.35
8.1.250.0080.00028.09
8.1.240.0060.00318.41
8.1.230.0030.00618.48
7.0.130.0130.07322.09
7.0.120.0400.05720.19
7.0.110.0130.07722.16
7.0.100.0170.06022.13
7.0.90.0100.07722.20
7.0.80.0400.06720.21
7.0.70.0130.07722.04
7.0.60.0070.07721.98
7.0.50.0200.07022.14
7.0.40.0100.07322.08
7.0.30.0070.07721.98
7.0.20.0070.08322.11
7.0.10.0170.07322.11
7.0.00.0030.08722.20
5.6.280.0100.08020.92
5.6.270.0200.06720.80
5.6.260.0030.06721.07
5.6.250.0170.07021.06
5.6.240.0030.09020.96
5.6.230.0200.07321.02
5.6.220.0230.05321.05
5.6.210.0130.07720.95
5.6.200.0100.08020.76
5.6.190.0130.08021.04
5.6.180.0130.07020.95
5.6.170.0130.06320.94
5.6.160.0130.06720.87
5.6.150.0070.06721.02
5.6.140.0100.06021.08
5.6.130.0030.06720.83
5.6.120.0100.06320.99
5.6.110.0100.08320.92
5.6.100.0030.08720.79
5.6.90.0130.07320.96
5.6.80.0030.06320.47
5.6.70.0030.05720.37
5.6.60.0230.05320.21
5.6.50.0230.06020.20
5.6.40.0200.06320.39
5.6.30.0200.06320.36
5.6.20.0170.07020.16
5.6.10.0070.05720.21
5.6.00.0030.07320.26

preferences:
85.74 ms | 1055 KiB | 5 Q