3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static function bar() : self { return new static(); } } class Foo2 extends Foo {} var_dump(Foo::bar()); var_dump(Foo2::bar());

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.0090.01218.30
8.3.50.0090.00618.15
8.3.40.0130.00618.72
8.3.30.0100.00318.48
8.3.20.0040.00420.23
8.3.10.0080.00020.57
8.3.00.0080.00018.46
8.2.180.0070.01116.38
8.2.170.0070.00722.96
8.2.160.0070.01120.35
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0080.00019.11
8.2.120.0080.00026.35
8.2.110.0060.00319.27
8.2.100.0070.00417.80
8.2.90.0080.00018.81
8.2.80.0040.00417.97
8.2.70.0000.00817.38
8.2.60.0050.00317.88
8.2.50.0040.00418.09
8.2.40.0030.00520.46
8.2.30.0040.00421.20
8.2.20.0030.00517.46
8.2.10.0070.00017.93
8.2.00.0000.00817.82
8.1.270.0040.00423.86
8.1.260.0050.00328.09
8.1.250.0000.00828.09
8.1.240.0000.00919.15
8.1.230.0120.00019.32
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0000.00817.10
8.1.190.0000.00817.13
8.1.180.0000.00718.10
8.1.170.0040.00418.50
8.1.160.0040.00420.79
8.1.150.0070.00018.69
8.1.140.0080.00019.35
8.1.130.0080.00017.61
8.1.120.0070.00017.26
8.1.110.0000.00717.30
8.1.100.0080.00017.34
8.1.90.0000.00717.32
8.1.80.0050.00217.32
8.1.70.0070.00017.36
8.1.60.0040.00717.48
8.1.50.0000.00817.37
8.1.40.0040.00417.46
8.1.30.0040.00417.58
8.1.20.0030.00517.50
8.1.10.0040.00417.46
8.1.00.0040.00417.26
8.0.300.0090.00018.77
8.0.290.0030.00516.59
8.0.280.0070.00018.35
8.0.270.0070.00017.18
8.0.260.0000.00817.18
8.0.250.0030.00416.84
8.0.240.0070.00016.92
8.0.230.0000.00716.87
8.0.220.0040.00416.75
8.0.210.0050.00316.70
8.0.200.0030.00316.76
8.0.190.0050.00216.84
8.0.180.0040.00416.77
8.0.170.0040.00416.70
8.0.160.0080.00016.77
8.0.150.0030.00616.74
8.0.140.0000.00716.75
8.0.130.0050.00013.14
8.0.120.0080.00016.71
8.0.110.0040.00416.81
8.0.100.0070.00016.59
8.0.90.0040.00416.86
8.0.80.0060.00916.70
8.0.70.0000.00716.68
8.0.60.0070.00016.80
8.0.50.0000.00716.68
8.0.30.0110.00817.05
8.0.20.0100.00817.40
8.0.10.0040.00416.83
8.0.00.0120.00816.54
7.4.330.0000.00415.08
7.4.320.0000.00616.41
7.4.300.0030.00316.47
7.4.290.0030.00316.44
7.4.280.0080.00016.32
7.4.270.0030.00316.48
7.4.260.0040.00416.52
7.4.250.0000.01016.49
7.4.240.0030.00316.53
7.4.230.0030.00316.41
7.4.220.0110.01116.59
7.4.210.0120.00416.48
7.4.200.0070.00016.41
7.4.160.0060.01016.21
7.4.150.0120.00617.40
7.4.140.0120.00517.86
7.4.130.0180.00616.44
7.4.120.0140.00316.47
7.4.110.0040.01516.43
7.4.100.0090.00916.52
7.4.90.0070.01016.40
7.4.80.0120.00619.39
7.4.70.0100.01016.28
7.4.60.0160.00016.30
7.4.50.0060.00916.29
7.4.40.0120.00316.28
7.4.30.0040.01216.52
7.4.00.0030.01415.09
7.3.330.0040.00413.09
7.3.320.0000.00513.18
7.3.310.0030.00316.04
7.3.300.0070.00016.12
7.3.290.0110.00616.25
7.3.280.0050.01316.23
7.3.270.0100.01417.40
7.3.260.0120.00416.32
7.3.250.0140.01116.20
7.3.240.0100.00916.43
7.3.230.0100.00716.41
7.3.210.0160.00016.19
7.3.200.0110.00616.15
7.3.190.0040.01216.27
7.3.180.0090.00616.28
7.3.170.0120.00716.20
7.3.160.0070.01316.41
7.2.330.0040.01316.48
7.2.320.0130.00316.56
7.2.310.0120.00616.37
7.2.300.0100.00716.59
7.2.290.0060.00916.44
7.2.60.0040.00416.43
7.2.00.0040.00818.84
7.1.200.0050.00315.50
7.1.100.0030.01017.90
7.1.70.0050.00217.25
7.1.60.0110.01419.27
7.1.50.0030.01716.57
7.1.00.0000.08022.41
7.0.200.0180.00016.41
7.0.60.0100.06721.73
7.0.50.0070.03717.84
7.0.40.0100.07720.18
7.0.30.0270.05020.15
7.0.20.0230.03320.07
7.0.10.0130.05020.09
7.0.00.0130.04720.22
5.6.280.0070.06720.82
5.6.210.0030.06320.47
5.6.200.0030.04318.25
5.6.190.0100.06020.55
5.6.180.0270.04720.50
5.6.170.0230.05720.47
5.6.160.0170.05020.57
5.6.150.0070.08318.15
5.6.140.0100.07018.27
5.6.130.0030.04318.24
5.6.120.0070.04321.00
5.6.110.0100.08021.09
5.6.100.0100.07721.01
5.6.90.0070.08020.96
5.6.80.0070.05720.45
5.5.350.3930.04320.39
5.5.340.0070.07318.08
5.5.330.0070.04320.40
5.5.320.0270.07720.31
5.5.310.0270.07020.30
5.5.300.0070.08018.03
5.5.290.0070.05318.05
5.5.280.0130.08020.85
5.5.270.0070.05020.65
5.5.260.0030.07320.79
5.5.250.0170.06720.62
5.5.240.0230.06720.24

preferences:
51.54 ms | 400 KiB | 5 Q