3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class A { protected static $self; private function __construct() { echo "parent constructor" ; static::$self = $this; } public static final function AI() { return new self; } } class B extends A { function c() { echo get_class(static::$self); } } $b = B::AI(); $b->c();

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.00716.63
8.3.50.0070.01122.82
8.3.40.0120.00318.79
8.3.30.0070.00719.18
8.3.20.0030.00520.19
8.3.10.0040.00423.52
8.3.00.0030.00517.63
8.2.180.0150.00716.75
8.2.170.0150.00622.96
8.2.160.0070.00720.44
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0150.00326.16
8.2.120.0040.00421.04
8.2.110.0030.00622.31
8.2.100.0000.01117.59
8.2.90.0040.00419.17
8.2.80.0080.00017.97
8.2.70.0040.00417.50
8.2.60.0040.00417.80
8.2.50.0000.00818.07
8.2.40.0000.00918.03
8.2.30.0020.00518.00
8.2.20.0040.00417.70
8.2.10.0040.00417.90
8.2.00.0030.00517.69
8.1.280.0100.01025.92
8.1.270.0080.00023.88
8.1.260.0030.00526.35
8.1.250.0050.00228.09
8.1.240.0060.00323.87
8.1.230.0080.00419.16
8.1.220.0070.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.22
8.1.190.0060.00317.10
8.1.180.0040.00418.10
8.1.170.0090.00018.36
8.1.160.0040.00421.84
8.1.150.0040.00418.68
8.1.140.0040.00417.25
8.1.130.0000.00717.86
8.1.120.0050.00317.26
8.1.110.0060.00317.38
8.1.100.0000.00817.30
8.1.90.0060.00317.23
8.1.80.0000.00717.41
8.1.70.0070.00017.27
8.1.60.0050.00317.56
8.1.50.0030.00617.45
8.1.40.0040.00417.38
8.1.30.0030.00617.50
8.1.20.0040.00417.48
8.1.10.0040.00417.50
8.1.00.0000.00817.29
8.0.300.0040.00418.77
8.0.290.0050.00316.74
8.0.280.0000.00718.39
8.0.270.0000.00717.18
8.0.260.0000.00817.20
8.0.250.0030.00617.00
8.0.240.0030.00316.82
8.0.230.0000.00716.97
8.0.220.0030.00316.94
8.0.210.0040.00416.78
8.0.200.0040.00417.00
8.0.190.0070.00016.84
8.0.180.0070.00016.81
8.0.170.0000.00816.88
8.0.160.0050.00316.81
8.0.150.0000.00916.91
8.0.140.0040.00416.91
8.0.130.0030.00613.28
8.0.120.0050.00216.77
8.0.110.0000.00716.73
8.0.100.0000.00716.96
8.0.90.0030.00516.82
8.0.80.0110.00616.89
8.0.70.0000.00716.92
8.0.60.0000.00716.96
8.0.50.0040.00416.84
8.0.30.0100.01016.81
8.0.20.0140.00517.40
8.0.10.0080.00016.75
8.0.00.0130.00416.74
7.4.330.0060.00015.00
7.4.320.0070.00016.52
7.4.300.0070.00016.53
7.4.290.0030.00316.58
7.4.280.0070.00216.55
7.4.270.0000.00716.56
7.4.260.0040.00416.57
7.4.250.0050.00216.39
7.4.240.0010.00616.43
7.4.230.0030.00316.37
7.4.220.0150.00916.61
7.4.210.0000.01716.55
7.4.200.0050.00216.57
7.4.160.0050.01016.21
7.4.150.0090.00917.40
7.4.140.0120.01017.86
7.4.130.0100.00816.44
7.4.120.0060.01016.64
7.4.110.0040.01216.65
7.4.100.0030.01416.72
7.4.90.0070.01116.28
7.4.80.0030.02019.39
7.4.70.0130.01016.54
7.4.60.0100.00616.44
7.4.50.0030.00616.23
7.4.40.0120.01016.30
7.4.30.0080.00816.54
7.4.00.0000.01414.68
7.3.330.0050.00513.29
7.3.320.0060.00013.42
7.3.310.0030.00316.39
7.3.300.0070.00016.36
7.3.290.0070.00716.43
7.3.280.0080.00916.35
7.3.270.0120.00617.40
7.3.260.0100.00716.31
7.3.250.0100.00716.41
7.3.240.0100.00716.57
7.3.230.0070.01016.57
7.3.210.0090.00916.43
7.3.200.0100.00719.39
7.3.190.0150.00916.38
7.3.180.0040.01116.49
7.3.170.0060.00916.31
7.3.160.0160.00616.26
7.3.10.0090.00316.66
7.3.00.0070.00316.50
7.2.330.0100.01016.37
7.2.320.0120.00616.59
7.2.310.0030.01516.51
7.2.300.0030.01716.48
7.2.290.0030.01316.44
7.2.130.0050.00916.79
7.2.120.0060.00716.68
7.2.110.0050.00616.86
7.2.100.0070.00716.73
7.2.90.0040.00916.72
7.2.80.0070.00616.72
7.2.70.0070.00516.79
7.2.60.0120.00416.71
7.2.50.0080.00416.66
7.2.40.0020.00816.69
7.2.30.0030.00816.68
7.2.20.0040.00816.73
7.2.10.0090.00416.67
7.2.00.0060.00717.35
7.1.250.0070.00515.60
7.1.240.0030.01015.66
7.1.230.0060.01015.40
7.1.220.0060.01015.49
7.1.210.0030.01215.28
7.1.200.0080.00715.56
7.1.190.0040.01115.38
7.1.180.0000.01615.35
7.1.170.0040.00415.68
7.1.160.0000.01515.68
7.1.150.0070.00715.66
7.1.140.0100.00315.69
7.1.130.0100.00715.48
7.1.120.0130.00315.63
7.1.110.0140.00015.77
7.1.100.0050.00916.83
7.1.90.0070.00715.65
7.1.80.0070.00715.43
7.1.70.0070.00516.08
7.1.60.0070.01117.54
7.1.50.0030.01216.18
7.1.40.0030.00615.45
7.1.30.0090.00615.52
7.1.20.0130.00015.37
7.1.10.0000.01515.50
7.1.00.0020.04319.01
7.0.330.0060.00815.09
7.0.320.0070.00715.33
7.0.310.0030.01315.35
7.0.300.0040.01115.34
7.0.290.0040.01215.00
7.0.280.0110.00415.35
7.0.270.0090.00615.29
7.0.260.0040.00415.48
7.0.250.0070.00715.39
7.0.240.0030.01015.32
7.0.230.0090.00615.12
7.0.220.0040.00414.93
7.0.210.0070.00415.09
7.0.200.0090.00615.92
7.0.190.0090.00615.33
7.0.180.0040.00715.21
7.0.170.0100.00315.16
7.0.160.0060.00315.19
7.0.150.0000.00815.39
7.0.140.0000.04518.64
7.0.130.0080.00415.27
7.0.120.0000.01315.45
7.0.110.0040.00415.28
7.0.100.0030.00915.09
7.0.90.0070.00715.39
7.0.80.0120.00315.41
7.0.70.0000.00715.44
7.0.60.0030.02517.64
7.0.50.0080.04016.67
7.0.40.0100.04216.63
7.0.30.0200.03816.80
7.0.20.0150.03016.86
7.0.10.0070.02716.79
7.0.00.0100.03616.60
5.6.380.0080.00614.48
5.6.370.0000.01014.47
5.6.360.0070.00714.14
5.6.350.0000.00914.53
5.6.340.0060.00914.40
5.6.330.0140.00314.13
5.6.320.0000.01514.31
5.6.310.0030.00714.18
5.6.300.0030.01014.16
5.6.290.0070.00014.15
5.6.280.0070.03817.65
5.6.270.0030.00714.05
5.6.260.0060.00614.32
5.6.250.0000.01214.36
5.6.240.0100.00014.36
5.6.230.0100.00314.09
5.6.220.0030.01014.00
5.6.210.0060.02117.27
5.6.200.0100.03716.09
5.6.190.0080.02417.37
5.6.180.0150.03517.25
5.6.170.0130.02717.35
5.6.160.0060.02617.55
5.6.150.0050.03516.20
5.6.140.0050.02716.03
5.6.130.0120.04316.19
5.6.120.0080.04217.63
5.6.110.0030.04717.59
5.6.100.0090.04317.52
5.6.90.0170.03717.73
5.6.80.0060.02317.26
5.6.70.0000.01414.12
5.6.60.0060.00614.07
5.6.50.0070.00714.14
5.6.40.0040.00814.43
5.6.30.0040.01214.15
5.6.20.0080.00814.07
5.6.10.0100.00314.00
5.6.00.0040.00813.85
5.5.380.0000.01210.73
5.5.370.0040.00811.24
5.5.360.0000.01110.79
5.5.350.0020.02215.64
5.5.340.0070.04014.58
5.5.330.0080.03915.82
5.5.320.0050.04715.66
5.5.310.0180.03615.74
5.5.300.0040.02614.47
5.5.290.0030.04814.57
5.5.280.0080.01715.73
5.5.270.0060.03916.02
5.5.260.0070.04016.01
5.5.250.0020.05115.75
5.5.240.0100.04315.62
5.5.230.0030.00610.95
5.5.220.0040.00411.12
5.5.210.0040.00411.04
5.5.200.0060.00010.75
5.5.190.0040.00811.04
5.5.180.0030.00810.88
5.5.170.0030.01010.74
5.5.160.0000.01010.90
5.5.150.0030.00611.10
5.5.140.0000.00711.16
5.5.130.0070.00011.04
5.5.120.0000.00611.09
5.5.110.0000.00811.05
5.5.100.0030.00310.46
5.5.90.0070.00310.74
5.5.80.0050.00010.75
5.5.70.0060.00311.00
5.5.60.0040.00810.84
5.5.50.0000.01010.88
5.5.40.0030.00311.04
5.5.30.0030.00310.86
5.5.20.0030.00910.90
5.5.10.0040.00810.93
5.5.00.0040.00811.05
5.4.450.0170.02814.88
5.4.440.0220.02715.05
5.4.430.0600.02614.91
5.4.420.0210.02315.19
5.4.410.0220.02314.94
5.4.400.0170.02214.91
5.4.390.0130.02214.94
5.4.380.0220.03514.49
5.4.370.0210.02614.73
5.4.360.0190.02914.68
5.4.350.0250.03714.87
5.4.340.0400.02914.78
5.4.330.0000.00610.72
5.4.320.0060.02211.71
5.4.310.0030.02411.70
5.4.300.0090.02111.55
5.4.290.0020.02511.54
5.4.280.0060.02111.39
5.4.270.0040.02211.59
5.4.260.0060.02311.70
5.4.250.0060.02111.47
5.4.240.0040.02311.57
5.4.230.0050.02011.62
5.4.220.0040.02411.67
5.4.210.0050.02211.51
5.4.200.0060.02011.64
5.4.190.0020.02811.48
5.4.180.0040.02011.39
5.4.170.0040.02111.41
5.4.160.0060.01911.53
5.4.150.0050.02111.62
5.4.140.0030.02411.51
5.4.130.0070.01811.42
5.4.120.0020.02411.24
5.4.110.0040.02011.33
5.4.100.0080.02211.38
5.4.90.0110.02411.45
5.4.80.0040.02111.56
5.4.70.0040.02111.42
5.4.60.0020.02211.39
5.4.50.0040.02211.44
5.4.40.0050.02111.45
5.4.30.0020.02511.35
5.4.20.0050.02211.51
5.4.10.0060.02711.44
5.4.00.0040.02011.12
5.3.290.0060.02211.67
5.3.280.0080.01911.60
5.3.270.0070.02311.63
5.3.260.0080.02011.63
5.3.250.0070.02011.61
5.3.240.0070.02011.54
5.3.230.0100.02011.57
5.3.220.0060.02011.53
5.3.210.0050.02111.55
5.3.200.0060.01911.55
5.3.190.0080.01911.55
5.3.180.0040.02311.47
5.3.170.0040.02211.51
5.3.160.0050.02111.63
5.3.150.0050.02411.62
5.3.140.0070.02011.59
5.3.130.0040.02111.59
5.3.120.0080.02011.56
5.3.110.0050.02311.51
5.3.100.0060.02211.38
5.3.90.0020.02211.30
5.3.80.0060.01811.12
5.3.70.0040.02211.15
5.3.60.0040.02411.27
5.3.50.0030.02211.20
5.3.40.0060.02411.20
5.3.30.0060.01711.17
5.3.20.0020.02111.08
5.3.10.0060.02011.03
5.3.00.0050.02110.94
5.2.170.0070.0159.57
5.2.160.0050.0179.58
5.2.150.0060.0179.57
5.2.140.0020.0229.57
5.2.130.0050.0169.55
5.2.120.0070.0139.55
5.2.110.0030.0189.55
5.2.100.0050.0179.55
5.2.90.0030.0219.55
5.2.80.0010.0209.55
5.2.70.0030.0179.55
5.2.60.0050.0239.53
5.2.50.0050.0239.51
5.2.40.0040.0169.50
5.2.30.0030.0189.49
5.2.20.0060.0179.48
5.2.10.0040.0189.44
5.2.00.0070.0189.37
5.1.60.0060.0179.01
5.1.50.0060.0159.01
5.1.40.0050.0148.99
5.1.30.0040.0139.17
5.1.20.0030.0149.18
5.1.10.0020.0149.05
5.1.00.0020.0179.04
5.0.50.0020.0148.28
5.0.40.0020.0138.21
5.0.30.0020.0178.12
5.0.20.0030.0138.10
5.0.10.0020.0138.09
5.0.00.0030.0208.09
4.4.90.0050.0077.35
4.4.80.0020.0117.34
4.4.70.0040.0077.34
4.4.60.0020.0117.34
4.4.50.0040.0117.35
4.4.40.0020.0157.32
4.4.30.0000.0137.34
4.4.20.0020.0127.38
4.4.10.0010.0127.39
4.4.00.0000.0207.34
4.3.110.0030.0107.30
4.3.100.0020.0097.30
4.3.90.0030.0097.28
4.3.80.0020.0157.25
4.3.70.0030.0107.28
4.3.60.0040.0097.28
4.3.50.0030.0127.28
4.3.40.0000.0167.23
4.3.30.0020.0096.60
4.3.20.0000.0136.59
4.3.10.0030.0136.57
4.3.00.0030.01012.95

preferences:
38.56 ms | 401 KiB | 5 Q