3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class T{ final private function __construct(){ } public function getInstanse() { if (!isset(static::$instanses)) { static::$instanses = new $this; } return static::$instanses; } } class A extends T{ } $t = A::getInstance(); var_dump($t); ?>

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.0180.00318.55
8.3.50.0190.00521.15
8.3.40.0100.00718.76
8.3.30.0130.00618.61
8.3.20.0070.00020.19
8.3.10.0000.00823.61
8.3.00.0040.00422.34
8.2.180.0160.00625.92
8.2.170.0070.00718.81
8.2.160.0150.00022.96
8.2.150.0060.00325.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00617.63
8.2.110.0030.00619.21
8.2.100.0040.00717.63
8.2.90.0040.00419.09
8.2.80.0080.00017.97
8.2.70.0000.00917.63
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0030.00621.19
8.2.30.0000.00819.77
8.2.20.0080.00017.75
8.2.10.0040.00418.01
8.2.00.0040.00417.96
8.1.280.0140.00725.92
8.1.270.0080.00020.38
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0040.00717.78
8.1.230.0110.00417.42
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0030.00617.13
8.1.190.0040.00417.35
8.1.180.0050.00318.10
8.1.170.0040.00418.59
8.1.160.0000.00721.91
8.1.150.0070.00018.65
8.1.140.0030.00517.21
8.1.130.0070.00017.59
8.1.120.0000.00717.24
8.1.110.0040.00417.34
8.1.100.0040.00417.39
8.1.90.0000.00717.32
8.1.80.0040.00417.20
8.1.70.0040.00417.30
8.1.60.0000.00817.36
8.1.50.0040.00417.54
8.1.40.0000.00817.50
8.1.30.0000.00817.61
8.1.20.0070.00017.61
8.1.10.0090.00017.39
8.1.00.0070.00017.40
8.0.300.0070.00018.77
8.0.290.0070.00016.75
8.0.280.0090.00018.44
8.0.270.0000.00717.21
8.0.260.0030.00317.20
8.0.250.0000.00716.86
8.0.240.0030.00316.92
8.0.230.0030.00316.83
8.0.220.0060.00016.92
8.0.210.0080.00016.93
8.0.200.0060.00016.84
8.0.190.0000.00816.98
8.0.180.0000.00716.89
8.0.170.0060.00316.93
8.0.160.0070.00016.90
8.0.150.0030.00316.75
8.0.140.0050.00216.78
8.0.130.0070.00013.34
8.0.120.0040.00416.76
8.0.110.0040.00416.89
8.0.100.0040.00416.91
8.0.90.0030.00516.70
8.0.80.0110.00616.95
8.0.70.0040.00416.76
8.0.60.0070.00016.85
8.0.50.0000.00716.87
8.0.30.0160.00417.14
8.0.20.0080.01017.40
8.0.10.0040.00416.78
8.0.00.0120.00716.77
7.4.330.0020.00215.08
7.4.320.0000.00616.55
7.4.300.0000.00716.46
7.4.290.0070.00016.55
7.4.280.0000.00716.45
7.4.270.0030.00316.31
7.4.260.0030.00316.33
7.4.250.0040.00416.54
7.4.240.0040.00416.47
7.4.230.0040.00416.30
7.4.220.0100.00716.39
7.4.210.0040.01116.58
7.4.200.0000.00716.52
7.4.160.0170.00716.29
7.4.150.0180.00017.40
7.4.140.0060.01617.86
7.4.130.0080.00916.50
7.4.120.0110.00816.49
7.4.110.0070.01016.45
7.4.100.0070.01416.54
7.4.90.0100.00716.46
7.4.80.0030.02019.39
7.4.70.0030.01316.50
7.4.60.0070.01016.50
7.4.50.0040.00416.37
7.4.40.0030.01416.34
7.4.30.0100.00716.44
7.4.00.0050.01114.63
7.3.330.0030.00413.32
7.3.320.0000.00813.13
7.3.310.0000.00716.30
7.3.300.0030.00316.18
7.3.290.0090.00716.33
7.3.280.0160.00216.37
7.3.270.0120.00617.40
7.3.260.0150.02516.17
7.3.250.0140.00516.26
7.3.240.0150.00616.26
7.3.230.0070.01016.39
7.3.210.0040.01416.49
7.3.200.0070.01319.39
7.3.190.0080.00816.30
7.3.180.0080.00816.57
7.3.170.0030.02216.27
7.3.160.0030.01516.38
7.3.120.0090.01114.70
7.3.110.0140.00414.50
7.3.100.0080.00314.45
7.3.90.0090.00314.93
7.3.80.0040.01414.41
7.3.70.0060.00314.65
7.3.60.0070.00314.82
7.3.50.0000.01214.86
7.3.40.0030.00914.47
7.3.30.0080.00614.58
7.3.20.0060.01216.58
7.3.10.0000.01416.57
7.3.00.0130.00016.61
7.2.330.0110.00716.62
7.2.320.0170.00616.57
7.2.310.0090.00616.48
7.2.300.0230.00016.60
7.2.290.0090.00916.39
7.2.250.0170.00314.88
7.2.240.0130.00314.94
7.2.230.0100.00715.04
7.2.220.0030.01015.02
7.2.210.0070.01114.70
7.2.200.0070.00714.77
7.2.190.0030.01015.00
7.2.180.0030.00614.64
7.2.170.0000.01014.58
7.2.80.0100.00316.45
7.2.60.0000.01516.75
7.2.00.0060.00619.29
7.1.330.0060.00915.55
7.1.320.0030.00915.49
7.1.310.0080.00815.64
7.1.300.0040.00715.55
7.1.290.0040.01215.63
7.1.280.0060.00615.65
7.1.270.0080.00615.43
7.1.260.0040.01215.73
7.1.200.0090.00315.66
7.1.100.0050.01017.66
7.1.70.0030.00517.03
7.1.60.0070.01720.03
7.1.50.0100.01316.86
7.1.00.0070.07322.27
7.0.200.0050.00216.66
7.0.60.0070.09019.93
7.0.50.0130.06317.87
7.0.40.0070.09020.19
7.0.30.0300.04720.25
7.0.20.0300.07320.33
7.0.10.0100.05020.32
7.0.00.0030.08720.03
5.6.280.0030.06020.94
5.6.210.0100.08020.71
5.6.200.0070.08018.31
5.6.190.0100.06720.68
5.6.180.0370.06720.42
5.6.170.0300.08020.71
5.6.160.0030.08020.54
5.6.150.0070.04318.14
5.6.140.0000.04018.22
5.6.130.0130.07318.21
5.6.120.0100.04020.99
5.6.110.0170.08021.11
5.6.100.0070.08021.11
5.6.90.0070.06721.13
5.6.80.0100.07720.51
5.6.70.4100.03320.35
5.5.350.0300.06320.33
5.5.340.0000.09018.01
5.5.330.0100.04020.43
5.5.320.0300.03720.29
5.5.310.0270.03720.34
5.5.300.0030.08317.92
5.5.290.0130.06718.03
5.5.280.0130.08020.87
5.5.270.0030.04320.76
5.5.260.0100.07020.73
5.5.250.0070.03720.66
5.5.240.0100.03720.29
5.4.450.0900.05719.34
5.4.440.0700.07019.49
5.4.430.1000.05319.55
5.4.420.0730.08319.30
5.4.410.0970.07019.45
5.4.400.0930.04019.29
5.4.390.0870.06319.06
5.4.380.1130.04019.13
5.4.370.0970.07719.01
5.4.360.1330.07019.06
5.4.350.1030.06719.11
5.4.340.0830.08319.26
5.4.320.1230.06719.26
5.4.310.1000.07319.38
5.4.300.0870.06719.30
5.4.290.0730.06319.01
5.4.280.0100.07319.37
5.4.270.0130.07319.30
5.4.260.0900.08319.28
5.4.250.0570.07019.05
5.4.240.0070.07719.25
5.4.230.0230.06719.25
5.4.220.0870.05719.14
5.4.210.0770.06319.23
5.4.200.0230.05717.08
5.4.190.0270.05719.10
5.4.180.1030.08019.00
5.4.170.0830.07719.25
5.4.160.1070.06018.91
5.4.150.1130.05719.15
5.4.140.0870.06316.59
5.4.130.0100.05316.56
5.4.120.0130.06016.56
5.4.110.1100.05016.34
5.4.100.0970.07716.55
5.4.90.1030.06016.48
5.4.80.1000.06016.46
5.4.70.1300.07316.48
5.4.60.0030.07316.23
5.4.50.0030.05016.55
5.4.40.0330.05716.16
5.4.30.0370.06016.53
5.4.20.0470.05316.44

preferences:
39.19 ms | 401 KiB | 5 Q