3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { static function bar() : self { return new static(); } } class Qux extends Foo { /* At runtime this is here: static function bar() : self { return new static(); } */ } var_dump(Foo::bar(), Qux::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.5.30.0100.00817.30
8.5.20.0120.00620.22
8.5.10.0080.00820.11
8.5.00.0080.01419.86
8.4.180.0110.01119.39
8.4.170.0130.00923.90
8.4.160.0110.01023.72
8.4.150.0080.00416.82
8.4.140.0130.00917.62
8.4.130.0130.00717.83
8.4.120.0050.00320.51
8.4.110.0110.00922.39
8.4.100.0130.00717.45
8.4.90.0130.00522.26
8.4.80.0070.00120.53
8.4.70.0130.00618.07
8.4.60.0130.00518.89
8.4.50.0040.00520.46
8.4.40.0110.01117.53
8.4.30.0040.00817.48
8.4.20.0070.00417.52
8.4.10.0130.00317.46
8.3.300.0130.00820.82
8.3.290.0100.01219.98
8.3.280.0100.00618.12
8.3.270.0100.01116.62
8.3.260.0090.00716.65
8.3.250.0080.00418.76
8.3.240.0110.00516.45
8.3.230.0140.00516.57
8.3.220.0140.00518.71
8.3.210.0100.00816.39
8.3.200.0020.00616.44
8.3.190.0060.00917.27
8.3.180.0130.00916.63
8.3.170.0140.00320.88
8.3.160.0110.00716.92
8.3.150.0120.00617.32
8.3.140.0110.00416.72
8.3.130.0030.01218.30
8.3.120.0130.00720.64
8.3.110.0060.01318.22
8.3.100.0060.00324.06
8.3.90.0060.01226.77
8.3.80.0040.00418.43
8.3.70.0120.00316.63
8.3.60.0050.00916.50
8.3.50.0100.00921.99
8.3.40.0070.00718.48
8.3.30.0110.00418.71
8.3.20.0040.00420.04
8.3.10.0080.00018.61
8.3.00.0050.00320.15
8.2.300.0140.00817.98
8.2.290.0120.00720.47
8.2.280.0130.01118.24
8.2.270.0110.00717.09
8.2.260.0070.01016.30
8.2.250.0030.00719.11
8.2.240.0060.00316.93
8.2.230.0090.00020.94
8.2.220.0030.00637.54
8.2.210.0080.00026.77
8.2.200.0050.00516.75
8.2.190.0100.00716.58
8.2.180.0090.01218.29
8.2.170.0070.00722.96
8.2.160.0030.01020.39
8.2.150.0080.00024.18
8.2.140.0110.00024.66
8.2.130.0080.00019.23
8.2.120.0000.00726.35
8.2.110.0050.00520.92
8.2.100.0120.00017.72
8.2.90.0000.00918.09
8.2.80.0000.00817.97
8.2.70.0080.00017.63
8.2.60.0040.00417.93
8.2.50.0000.00718.10
8.2.40.0040.00420.47
8.2.30.0000.00719.18
8.2.20.0040.00417.43
8.2.10.0050.00317.98
8.2.00.0070.00017.79
8.1.340.0080.00417.57
8.1.330.0130.00721.71
8.1.320.0060.00315.88
8.1.310.0000.00818.65
8.1.300.0030.00617.84
8.1.290.0100.00030.84
8.1.280.0110.01125.92
8.1.270.0090.00023.82
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0030.00723.92
8.1.230.0040.00720.88
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0000.00817.10
8.1.180.0080.00018.10
8.1.170.0040.00418.49
8.1.160.0000.00720.73
8.1.150.0040.00418.76
8.1.140.0040.00419.49
8.1.130.0070.00017.55
8.1.120.0050.00217.33
8.1.110.0030.00317.26
8.1.100.0030.00617.25
8.1.90.0040.00417.29
8.1.80.0000.00817.32
8.1.70.0000.00717.25
8.1.60.0040.00417.54
8.1.50.0030.00517.33
8.1.40.0040.00417.41
8.1.30.0040.00417.47
8.1.20.0030.00717.49
8.1.10.0000.00717.45
8.1.00.0030.00517.34
8.0.300.0050.00320.16
8.0.290.0040.00416.75
8.0.280.0000.00718.43
8.0.270.0070.00017.06
8.0.260.0030.00617.13
8.0.250.0000.00716.93
8.0.240.0000.00716.90
8.0.230.0060.00316.88
8.0.220.0030.00316.88
8.0.210.0000.00816.80
8.0.200.0000.00616.84
8.0.190.0050.00216.82
8.0.180.0090.00016.89
8.0.170.0040.00416.75
8.0.160.0000.00816.80
8.0.150.0030.00516.70
8.0.140.0030.00316.66
8.0.130.0060.00013.25
8.0.120.0000.00816.79
8.0.110.0030.00316.66
8.0.100.0040.00416.79
8.0.90.0000.00716.88
8.0.80.0120.00416.80
8.0.70.0050.00216.68
8.0.60.0000.00716.79
8.0.50.0040.00416.69
8.0.30.0120.00717.04
8.0.20.0090.01017.40
8.0.10.0000.00716.83
8.0.00.0100.00716.51
7.4.330.0050.00015.09
7.4.320.0000.00616.44
7.4.300.0030.00316.53
7.4.290.0000.00816.55
7.4.280.0030.00516.50
7.4.270.0030.00316.40
7.4.260.0030.00316.39
7.4.250.0030.00316.40
7.4.240.0000.00816.41
7.4.230.0060.00016.41
7.4.220.0030.01316.46
7.4.210.0110.00516.53
7.4.200.0070.00016.33
7.4.160.0110.00516.43
7.4.150.0100.00717.40
7.4.140.0090.00817.86
7.4.130.0090.00816.29
7.4.120.0070.01216.46
7.4.110.0100.00716.39
7.4.100.0060.01216.41
7.4.90.0100.00716.34
7.4.80.0100.00819.39
7.4.70.0030.01616.30
7.4.60.0070.01016.40
7.4.50.0070.01116.41
7.4.40.0060.01616.22
7.4.30.0030.01216.36
7.4.00.0070.01014.79
7.3.330.0030.00313.00
7.3.320.0030.00313.04
7.3.310.0070.00016.25
7.3.300.0030.00316.24
7.3.290.0030.00316.10
7.3.280.0110.00816.17
7.3.270.0090.00917.40
7.3.260.0090.01216.30
7.3.250.0110.00916.18
7.3.240.0130.00716.25
7.3.230.0070.01116.42
7.3.210.0120.00316.30
7.3.200.0110.01119.39
7.3.190.0130.00316.41
7.3.180.0110.00716.25
7.3.170.0120.00616.22
7.3.160.0140.00316.34
7.2.330.0080.01116.24
7.2.320.0100.00716.47
7.2.310.0110.00616.15
7.2.300.0060.01216.50
7.2.290.0060.01516.39
7.2.60.0030.00916.72
7.2.00.0070.01019.25
7.1.200.0070.00015.70
7.1.100.0370.00715.96
7.1.70.0030.00617.04
7.1.60.0100.00619.27
7.1.50.0030.01616.99
7.1.00.0030.07722.30
7.0.200.0000.00916.58
7.0.60.0270.06321.58
7.0.50.0000.07717.80
7.0.40.0030.04720.13
7.0.30.0130.04720.23
7.0.20.0200.04020.33
7.0.10.0200.06720.13
7.0.00.0130.04720.07
5.6.280.0000.07321.13
5.6.210.0030.04320.61
5.6.200.0070.05018.15
5.6.190.0170.07320.61
5.6.180.0270.07020.48
5.6.170.0270.08020.53
5.6.160.0030.06320.50
5.6.150.0130.07318.15
5.6.140.0070.03718.21
5.6.130.0070.05318.18
5.6.120.0000.08721.05
5.6.110.0070.07021.11
5.6.100.0030.04320.98
5.6.90.0000.04721.02
5.6.80.0100.03320.43
5.5.350.0230.07720.40
5.5.340.0070.03717.96
5.5.330.0070.08320.42
5.5.320.0500.05020.34
5.5.310.0200.06720.32
5.5.300.0030.07018.09
5.5.290.0100.07018.01
5.5.280.0030.08320.88
5.5.270.0200.07020.89
5.5.260.0070.06720.79
5.5.250.0170.07320.62
5.5.240.0230.06020.26

preferences:
45.93 ms | 1493 KiB | 5 Q