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 static::$self; } } class B extends A { function c() { echo get_class(self::$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.40.0090.00618.88
8.3.30.0070.00719.22
8.3.20.0070.00020.16
8.3.10.0000.00823.66
8.3.00.0080.00017.75
8.2.170.0140.00722.96
8.2.160.0100.00320.39
8.2.150.0070.00024.18
8.2.140.0000.00924.66
8.2.130.0000.00826.16
8.2.120.0050.00320.90
8.2.110.0030.00722.30
8.2.100.0040.00817.91
8.2.90.0040.00419.08
8.2.80.0000.00817.97
8.2.70.0050.00517.50
8.2.60.0000.00817.91
8.2.50.0040.00418.07
8.2.40.0000.00818.22
8.2.30.0040.00418.01
8.2.20.0040.00417.74
8.2.10.0040.00417.91
8.2.00.0050.00217.59
8.1.270.0000.00823.82
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0090.00023.89
8.1.230.0040.00719.17
8.1.220.0030.00617.74
8.1.210.0050.00318.77
8.1.200.0090.00017.23
8.1.190.0050.00317.23
8.1.180.0000.00818.10
8.1.170.0100.00018.50
8.1.160.0040.00421.86
8.1.150.0030.00518.88
8.1.140.0030.00717.32
8.1.130.0000.00717.78
8.1.120.0000.00717.32
8.1.110.0000.00717.45
8.1.100.0040.00317.39
8.1.90.0000.01017.46
8.1.80.0040.00417.30
8.1.70.0000.00717.32
8.1.60.0030.00617.48
8.1.50.0040.00417.45
8.1.40.0040.00417.52
8.1.30.0030.00517.64
8.1.20.0000.00817.63
8.1.10.0000.00717.58
8.1.00.0060.00317.51
8.0.300.0000.00818.77
8.0.290.0070.00016.63
8.0.280.0000.00718.43
8.0.270.0030.00317.21
8.0.260.0000.00717.10
8.0.250.0000.00916.86
8.0.240.0070.00016.91
8.0.230.0000.00716.96
8.0.220.0000.00716.91
8.0.210.0070.00016.77
8.0.200.0030.00316.97
8.0.190.0050.00316.91
8.0.180.0040.00416.93
8.0.170.0060.00316.89
8.0.160.0000.00716.86
8.0.150.0000.00816.92
8.0.140.0000.00816.86
8.0.130.0040.00413.41
8.0.120.0000.00816.90
8.0.110.0040.00416.86
8.0.100.0000.00716.77
8.0.90.0000.00816.87
8.0.80.0120.00916.86
8.0.70.0040.00416.96
8.0.60.0040.00416.78
8.0.50.0040.00416.78
8.0.30.0130.00617.19
8.0.20.0100.01317.40
8.0.10.0000.00817.00
8.0.00.0100.00816.59
7.4.330.0020.00215.13
7.4.320.0030.00316.43
7.4.300.0060.00016.55
7.4.290.0040.00416.50
7.4.280.0040.00416.45
7.4.270.0000.00716.56
7.4.260.0030.00316.48
7.4.250.0000.00716.37
7.4.240.0030.00516.57
7.4.230.0070.00016.51
7.4.220.0190.00516.61
7.4.210.0030.01616.47
7.4.200.0040.00416.71
7.4.160.0040.01216.58
7.4.150.0070.01017.40
7.4.140.0110.00917.86
7.4.130.0100.01016.70
7.4.120.0140.00216.48
7.4.110.0140.00716.79
7.4.100.0110.01116.49
7.4.90.0090.00916.64
7.4.80.0130.00619.39
7.4.70.0120.00616.62
7.4.60.0150.00316.68
7.4.50.0040.00416.39
7.4.40.0090.00616.40
7.4.30.0090.01216.54
7.4.10.0060.01014.66
7.4.00.0110.00615.04
7.3.330.0060.00313.21
7.3.320.0050.00013.22
7.3.310.0040.00416.23
7.3.300.0070.00016.27
7.3.290.0000.01416.41
7.3.280.0070.01116.35
7.3.270.0100.00717.40
7.3.260.0140.00316.34
7.3.240.0030.01416.61
7.3.230.0090.00916.45
7.3.210.0100.00716.41
7.3.200.0090.01319.39
7.3.190.0200.02316.27
7.3.180.0130.00316.43
7.3.170.0060.01016.45
7.3.160.0120.00416.59
7.3.130.0030.01014.80
7.3.120.0040.01414.61
7.3.110.0080.00914.92
7.3.100.0040.01014.78
7.3.90.0050.01014.98
7.3.80.0070.00714.84
7.3.70.0060.00914.77
7.3.60.0070.00714.78
7.3.50.0050.01014.74
7.3.40.0080.00314.77
7.3.30.0020.00614.83
7.3.20.0070.00516.56
7.3.10.0060.00616.66
7.3.00.0030.00916.64
7.2.330.0070.01716.43
7.2.320.0070.01316.80
7.2.310.0160.00616.41
7.2.300.0030.01416.60
7.2.290.0060.00916.61
7.2.260.0030.01314.92
7.2.250.0060.01315.16
7.2.240.0050.01314.73
7.2.230.0040.01014.94
7.2.220.0080.00714.80
7.2.210.0030.01015.10
7.2.200.0060.00514.91
7.2.190.0000.01414.87
7.2.180.0040.01014.93
7.2.170.0080.00514.95
7.2.160.0030.00615.13
7.2.150.0070.00716.69
7.2.140.0070.00716.91
7.2.130.0000.01316.93
7.2.120.0070.01016.88
7.2.110.0070.01116.95
7.2.100.0090.00016.92
7.2.90.0000.01016.70
7.2.80.0040.01217.01
7.2.70.0000.01217.00
7.2.60.0060.00516.87
7.2.50.0080.00416.92
7.2.40.0000.01416.93
7.2.30.0100.00316.75
7.2.20.0060.00616.93
7.2.10.0030.01316.80
7.2.00.0040.00618.14
7.1.330.0060.00915.69
7.1.320.0100.00315.57
7.1.310.0080.00515.50
7.1.300.0070.00915.52
7.1.290.0050.00815.65
7.1.280.0120.00015.71
7.1.270.0050.00815.49
7.1.260.0050.01015.42
7.1.250.0000.01215.67
7.1.240.0030.01315.42
7.1.230.0130.00015.72
7.1.220.0040.00415.67
7.1.210.0090.00015.51
7.1.200.0080.01015.43
7.1.190.0060.00315.74
7.1.180.0030.00715.61
7.1.170.0030.01315.75
7.1.160.0000.01215.61
7.1.150.0000.00815.75
7.1.140.0030.01015.53
7.1.130.0040.01215.54
7.1.120.0060.00315.58
7.1.110.0090.00615.50
7.1.100.0050.01017.04
7.1.90.0030.00715.44
7.1.80.0030.01015.45
7.1.70.0060.00416.40
7.1.60.0120.00817.60
7.1.50.0080.00516.27
7.1.40.0070.00315.83
7.1.30.0070.00715.39
7.1.20.0150.00315.84
7.1.10.0060.00315.52
7.1.00.0070.03818.95
7.0.330.0040.01115.47
7.0.320.0030.01015.31
7.0.310.0060.00915.32
7.0.300.0000.01415.45
7.0.290.0040.00415.28
7.0.280.0070.00715.18
7.0.270.0030.01015.43
7.0.260.0030.00515.20
7.0.250.0090.00615.42
7.0.240.0060.00315.36
7.0.230.0030.00715.37
7.0.220.0070.00715.39
7.0.210.0110.00015.45
7.0.200.0080.00516.04
7.0.190.0030.01315.08
7.0.180.0090.00615.32
7.0.170.0040.01115.52
7.0.160.0060.01215.49
7.0.150.0030.00915.32
7.0.140.0050.04018.81
7.0.130.0030.01015.37
7.0.120.0030.01015.39
7.0.110.0040.01115.38
7.0.100.0090.00615.25
7.0.90.0000.01515.15
7.0.80.0040.01115.41
7.0.70.0110.00415.35
7.0.60.0050.02817.61
7.0.50.0100.03116.77
7.0.40.0130.02716.89
7.0.30.0190.03216.88
7.0.20.0190.02716.74
7.0.10.0050.04916.91
7.0.00.0090.02816.63
5.6.400.0000.01114.29
5.6.390.0110.00714.39
5.6.380.0110.00314.41
5.6.370.0070.01014.17
5.6.360.0000.00914.58
5.6.350.0090.00314.37
5.6.340.0000.00814.27
5.6.330.0150.00014.52
5.6.320.0030.01214.17
5.6.310.0040.00814.18
5.6.300.0060.00914.14
5.6.290.0080.00814.22
5.6.280.0020.04217.66
5.6.270.0070.00714.34
5.6.260.0030.01414.23
5.6.250.0030.01014.20
5.6.240.0060.00914.13
5.6.230.0030.01014.19
5.6.220.0070.00914.38
5.6.210.0140.04217.50
5.6.200.0080.02116.30
5.6.190.0070.04717.42
5.6.180.0150.02717.49
5.6.170.0160.04517.42
5.6.160.0090.02017.40
5.6.150.0050.03716.16
5.6.140.0040.02216.32
5.6.130.0030.04316.26
5.6.120.0050.04717.75
5.6.110.0030.04417.52
5.6.100.0030.02317.47
5.6.90.0130.03517.57
5.6.80.0130.03517.09
5.6.70.0170.00014.18
5.6.60.0040.00814.25
5.6.50.0040.01214.15
5.6.40.0100.00614.30
5.6.30.0070.01014.50
5.6.20.0040.00914.28
5.6.10.0000.01014.08
5.6.00.0120.00414.06
5.5.380.0120.00614.23
5.5.370.0030.01014.07
5.5.360.0040.01514.18
5.5.350.0080.02217.32
5.5.340.0020.03915.99
5.5.330.0120.02517.25
5.5.320.0050.03017.37
5.5.310.0180.02317.29
5.5.300.0030.02916.06
5.5.290.0050.02316.17
5.5.280.0070.02317.62
5.5.270.0030.03117.46
5.5.260.0020.02917.46
5.5.250.0020.02817.42
5.5.240.0170.04217.20
5.5.230.0000.01514.23
5.5.220.0090.00314.16
5.5.210.0060.00613.93
5.5.200.0120.00314.14
5.5.190.0100.00014.16
5.5.180.0030.01014.03
5.5.170.0070.00714.22
5.5.160.0060.00914.15
5.5.150.0080.00314.24
5.5.140.0040.01114.29
5.5.130.0080.00813.95
5.5.120.0040.01114.06
5.5.110.0060.01214.16
5.5.100.0070.01114.35
5.5.90.0110.00814.29
5.5.80.0040.00814.38
5.5.70.0040.01114.02
5.5.60.0030.01013.91
5.5.50.0130.00014.18
5.5.40.0110.00414.23
5.5.30.0000.01114.23
5.5.20.0070.00714.05
5.5.10.0060.00314.17
5.5.00.0000.01114.32
5.4.450.0300.02515.30
5.4.440.0190.02415.20
5.4.430.0180.02615.36
5.4.420.0090.03015.17
5.4.410.0150.02115.21
5.4.400.0270.02315.09
5.4.390.0120.02915.13
5.4.380.0220.03014.94
5.4.370.0190.03014.83
5.4.360.0210.02714.83
5.4.350.0200.03314.78
5.4.340.0130.03214.91
5.4.330.0050.00511.07
5.4.320.0050.02311.79
5.4.310.0050.02311.78
5.4.300.0020.02611.79
5.4.290.0020.02511.79
5.4.280.0040.02311.73
5.4.270.0050.02711.73
5.4.260.0050.02411.73
5.4.250.0030.02711.73
5.4.240.0050.02911.73
5.4.230.0080.02211.75
5.4.220.0060.01911.73
5.4.210.0030.02411.73
5.4.200.0090.02211.73
5.4.190.0040.03011.72
5.4.180.0080.02111.73
5.4.170.0060.02311.73
5.4.160.0050.02211.73
5.4.150.0070.02311.73
5.4.140.0040.02311.57
5.4.130.0050.02211.56
5.4.120.0040.02011.60
5.4.110.0030.02211.54
5.4.100.0020.02511.54
5.4.90.0040.02211.54
5.4.80.0050.02011.54
5.4.70.0050.02311.54
5.4.60.0050.02211.54
5.4.50.0030.02711.54
5.4.40.0050.02211.53
5.4.30.0050.02211.53
5.4.20.0040.02311.53
5.4.10.0050.01911.53
5.4.00.0060.02011.28
5.3.290.0060.03912.80
5.3.280.0070.04512.71
5.3.270.0070.05012.72
5.3.260.0050.04012.72
5.3.250.0060.04312.72
5.3.240.0080.03412.72
5.3.230.0050.05012.71
5.3.220.0050.03912.68
5.3.210.0040.04012.68
5.3.200.0050.03612.68
5.3.190.0050.03912.68
5.3.180.0070.03512.67
5.3.170.0080.03412.67
5.3.160.0080.03412.67
5.3.150.0040.03812.68
5.3.140.0080.03412.66
5.3.130.0020.04212.66
5.3.120.0070.04012.66
5.3.110.0030.04212.66
5.3.100.0030.04512.12
5.3.90.0060.03712.11
5.3.80.0040.03912.10
5.3.70.0070.03612.10
5.3.60.0050.03712.08
5.3.50.0080.03912.03
5.3.40.0080.03512.03
5.3.30.0070.03311.99
5.3.20.0060.03411.77
5.3.10.0060.03411.73
5.3.00.0020.03911.73
5.2.170.0030.0319.22
5.2.160.0070.0269.23
5.2.150.0080.0269.22
5.2.140.0040.0309.22
5.2.130.0040.0299.18
5.2.120.0050.0379.18
5.2.110.0070.0319.18
5.2.100.0060.0309.18
5.2.90.0030.0309.18
5.2.80.0040.0309.17
5.2.70.0050.0299.18
5.2.60.0040.0309.13
5.2.50.0050.0289.10
5.2.40.0040.0289.07
5.2.30.0030.0309.05
5.2.20.0030.0299.04
5.2.10.0040.0288.94
5.2.00.0020.0358.80
5.1.60.0040.0258.09
5.1.50.0030.0298.09
5.1.40.0040.0338.06
5.1.30.0060.0298.42
5.1.20.0040.0308.44
5.1.10.0020.0278.16
5.1.00.0010.0298.16
5.0.50.0040.0206.64
5.0.40.0020.0236.50
5.0.30.0030.0376.32
5.0.20.0050.0186.28
5.0.10.0050.0186.26
5.0.00.0040.0326.25
4.4.90.0030.0174.78
4.4.80.0060.0124.76
4.4.70.0040.0144.75
4.4.60.0050.0144.75
4.4.50.0030.0164.77
4.4.40.0040.0244.71
4.4.30.0030.0154.75
4.4.20.0060.0134.84
4.4.10.0010.0184.85
4.4.00.0020.0264.76
4.3.110.0040.0144.67
4.3.100.0010.0174.66
4.3.90.0020.0154.63
4.3.80.0030.0244.59
4.3.70.0020.0164.63
4.3.60.0030.0144.63
4.3.50.0020.0164.63
4.3.40.0020.0244.54
4.3.30.0000.0183.28
4.3.20.0020.0163.26
4.3.10.0020.0153.22
4.3.00.0000.01715.98

preferences:
44.04 ms | 400 KiB | 5 Q