3v4l.org

run code in 500+ PHP versions simultaneously
<?php class A { public static function getSelfInstance() : self { return new self(); } /** @return static */ public static function getStaticInstance(): self { return new static(); } } class B extends A {} var_dump(get_class(B::getSelfInstance())); var_dump(get_class(B::getStaticInstance()));

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.90.0080.00516.80
8.5.80.0080.00716.90
8.5.70.0110.00716.85
8.5.60.0060.00316.73
8.5.50.0090.00718.52
8.5.30.0100.01118.95
8.5.20.0080.00919.30
8.5.10.0110.00718.82
8.5.00.0120.00919.86
8.4.240.0080.00819.60
8.4.230.0050.00419.63
8.4.220.0130.00819.57
8.4.210.0120.00821.26
8.4.180.0140.00919.64
8.4.170.0130.00923.89
8.4.160.0180.00720.43
8.4.150.0060.00616.81
8.4.140.0150.00817.41
8.4.130.0090.00518.84
8.4.120.0080.01124.11
8.4.110.0110.00919.76
8.4.100.0090.00818.57
8.4.90.0060.00620.57
8.4.80.0040.00418.57
8.4.70.0070.00117.84
8.4.60.0150.00618.81
8.4.50.0130.00720.42
8.4.40.0100.01019.05
8.4.30.0100.01020.14
8.4.20.0070.00317.80
8.4.10.0080.01119.27
8.3.330.0110.00918.32
8.3.320.0130.01220.05
8.3.310.0110.00520.02
8.3.300.0120.00820.65
8.3.290.0120.00920.72
8.3.280.0130.00718.26
8.3.270.0120.00716.49
8.3.260.0050.00516.42
8.3.250.0130.00519.03
8.3.240.0120.00717.29
8.3.230.0090.00816.51
8.3.220.0110.00418.81
8.3.210.0130.00516.64
8.3.200.0120.00716.56
8.3.190.0060.00218.84
8.3.180.0130.00717.03
8.3.170.0120.00620.88
8.3.160.0140.00416.50
8.3.150.0070.01117.15
8.3.140.0080.00018.60
8.3.130.0030.00618.45
8.3.120.0150.00020.74
8.3.110.0030.00620.94
8.3.100.0060.00316.38
8.3.90.0070.01016.63
8.3.80.0030.00719.36
8.3.70.0110.00816.75
8.3.60.0090.00918.43
8.3.50.0100.00724.43
8.3.40.0100.00618.64
8.3.30.0080.00618.69
8.3.20.0070.00021.81
8.3.10.0070.00020.34
8.3.00.0050.00321.78
8.2.320.0130.00918.09
8.2.310.0050.00417.74
8.2.300.0140.00821.81
8.2.290.0060.00320.27
8.2.280.0130.00718.18
8.2.270.0100.00717.25
8.2.260.0120.00318.10
8.2.250.0080.00018.23
8.2.240.0000.01917.17
8.2.230.0030.00622.58
8.2.220.0080.00024.06
8.2.210.0100.01026.77
8.2.200.0060.00316.75
8.2.190.0070.01118.28
8.2.180.0120.00318.24
8.2.170.0110.00422.96
8.2.160.0100.00320.43
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0000.00726.16
8.2.110.0070.00320.88
8.2.100.0080.00417.59
8.2.90.0000.00817.59
8.2.80.0000.00817.97
8.2.70.0050.00318.04
8.2.60.0030.00618.22
8.2.50.0030.00618.10
8.2.40.0030.00619.30
8.2.30.0040.00417.48
8.2.20.0040.00417.99
8.2.10.0000.00819.03
8.2.00.0020.00519.18
8.1.340.0110.00917.53
8.1.330.0090.00621.57
8.1.320.0090.01015.97
8.1.310.0080.00016.02
8.1.300.0060.00318.41
8.1.290.0070.00418.88
8.1.280.0060.00925.92
8.1.270.0000.00822.10
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00323.92
8.1.230.0110.00021.04
8.1.220.0040.00417.74
8.1.210.0080.00020.14
8.1.200.0030.00717.23
8.1.190.0050.00316.98
8.1.180.0000.00818.10
8.1.170.0050.00318.47
8.1.160.0040.00420.31
8.1.150.0040.00418.77
8.1.140.0000.00822.05
8.1.130.0080.00020.03
8.1.120.0000.00717.34
8.1.110.0000.00817.30
8.1.100.0000.00817.31
8.1.90.0050.00217.16
8.1.80.0080.00017.37
8.1.70.0070.00017.34
8.1.60.0030.00617.50
8.1.50.0030.00617.48
8.1.40.0030.00617.46
8.1.30.0030.00817.57
8.1.20.0040.00417.45
8.1.10.0060.00317.37
8.1.00.0030.00617.46
8.0.300.0050.00320.09
8.0.290.0050.00216.63
8.0.280.0040.00418.38
8.0.270.0000.00717.88
8.0.260.0030.00320.08
8.0.250.0000.00716.77
8.0.240.0070.00016.75
8.0.230.0030.00516.95
8.0.220.0030.00316.81
8.0.210.0070.00016.87
8.0.200.0030.00316.77
8.0.190.0040.00416.88
8.0.180.0060.00316.84
8.0.170.0050.00316.90
8.0.160.0000.00716.72
8.0.150.0030.00516.75
8.0.140.0000.00716.77
8.0.130.0030.00313.23
8.0.120.0040.00416.77
8.0.110.0000.00716.89
8.0.100.0040.00416.82
8.0.90.0060.00316.71
8.0.80.0070.00916.81
8.0.70.0070.00016.67
8.0.60.0000.00716.95
8.0.50.0080.00016.80
8.0.30.0070.01417.16
8.0.20.0060.01316.95
8.0.10.0040.00416.89
8.0.00.0090.00916.46
7.4.330.0020.00215.55
7.4.320.0000.00616.28
7.4.300.0030.00316.32
7.4.290.0040.00416.54
7.4.280.0080.00016.44
7.4.270.0000.00716.52
7.4.260.0030.00313.21
7.4.250.0070.00016.50
7.4.240.0030.00616.43
7.4.230.0030.00316.54
7.4.220.0030.00316.53
7.4.210.0080.00916.58
7.4.200.0040.00416.42
7.4.140.0100.01317.86
7.4.130.0180.00016.53
7.4.120.0120.00616.59
7.4.110.0100.00716.71
7.4.100.0130.00316.48
7.4.90.0100.00716.46
7.4.80.0070.00919.39
7.4.70.0140.00316.50
7.4.60.0070.01016.29
7.4.50.0070.00716.51
7.4.40.0080.01116.58
7.4.00.0110.00414.95
7.3.330.0030.00316.23
7.3.320.0050.00013.20
7.3.310.0040.00416.27
7.3.300.0060.00016.29
7.3.290.0090.00816.23
7.3.280.0100.00316.23
7.3.260.0120.00616.23
7.3.240.0090.00716.24
7.3.230.0160.00716.43
7.3.210.0140.00316.39
7.3.200.0070.01416.31
7.3.190.0100.00716.50
7.3.180.0110.00416.34
7.3.170.0120.00316.51
7.3.160.0080.00816.16
7.3.120.0110.00614.91
7.3.110.0120.00614.84
7.3.100.0050.01114.64
7.3.90.0090.00914.62
7.3.80.0080.00814.46
7.3.70.0080.01114.57
7.3.60.0070.00914.80
7.3.50.0090.00614.67
7.3.40.0090.00914.63
7.3.30.0090.00414.38
7.3.20.0040.00914.81
7.3.10.0090.00614.71
7.3.00.0130.00614.63
7.2.330.0090.01516.44
7.2.320.0070.01016.67
7.2.310.0080.00816.47
7.2.300.0030.01616.52
7.2.290.0120.00316.64
7.2.250.0080.01215.02
7.2.240.0120.00414.89
7.2.230.0150.00714.75
7.2.220.0070.00714.89
7.2.210.0080.00815.05
7.2.200.0070.00714.71
7.2.190.0150.01114.63
7.2.180.0090.00614.88
7.2.170.0060.00914.91
7.1.330.0040.01113.69
7.1.320.0060.01413.50
7.1.310.0060.00914.10
7.1.300.0000.01313.80
7.1.290.0060.01013.80
7.1.280.0100.00713.79
7.1.270.0080.00613.56
7.1.260.0080.01113.91

preferences:
89.45 ms | 1463 KiB | 5 Q