3v4l.org

run code in 300+ PHP versions simultaneously
<?php class cBase { private static $instance; public static function getInstance() { if (null === static::$instance) { static::$instance = new static(); } return static::$instance; } protected function __construct() { } } class c extends cBase { protected function __construct() { } } c::getInstance();

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.0150.00318.30
8.3.50.0090.00922.06
8.3.40.0040.01118.71
8.3.30.0120.00619.09
8.3.20.0050.00220.16
8.3.10.0040.00421.72
8.3.00.0000.00822.33
8.2.180.0100.00716.88
8.2.170.0100.00722.96
8.2.160.0200.00020.66
8.2.150.0030.00624.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0080.00019.36
8.2.110.0030.00622.02
8.2.100.0120.00017.84
8.2.90.0000.00719.26
8.2.80.0090.00018.04
8.2.70.0040.00417.63
8.2.60.0040.00417.80
8.2.50.0000.00818.07
8.2.40.0070.00418.01
8.2.30.0070.00317.88
8.2.20.0000.00817.59
8.2.10.0000.00717.57
8.2.00.0050.00317.49
8.1.280.0140.00325.92
8.1.270.0050.00323.96
8.1.260.0040.00426.35
8.1.250.0090.00928.09
8.1.240.0080.00023.89
8.1.230.0070.00419.10
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00717.23
8.1.190.0080.00017.52
8.1.180.0000.00818.10
8.1.170.0030.00618.64
8.1.160.0040.00421.97
8.1.150.0000.00818.69
8.1.140.0040.00417.39
8.1.130.0000.00717.82
8.1.120.0040.00417.28
8.1.110.0050.00217.27
8.1.100.0000.00717.43
8.1.90.0040.00317.41
8.1.80.0080.00017.44
8.1.70.0070.00017.32
8.1.60.0040.00417.50
8.1.50.0040.00417.55
8.1.40.0030.00517.40
8.1.30.0040.00417.54
8.1.20.0040.00417.55
8.1.10.0050.00217.45
8.1.00.0040.00417.52
8.0.300.0030.00318.77
8.0.290.0000.00816.93
8.0.280.0030.00318.29
8.0.270.0070.00017.20
8.0.260.0070.00016.80
8.0.250.0040.00416.88
8.0.240.0040.00416.81
8.0.230.0070.00016.75
8.0.220.0000.00716.76
8.0.210.0030.00516.83
8.0.200.0000.00816.90
8.0.190.0000.01016.81
8.0.180.0050.00316.87
8.0.170.0080.00016.78
8.0.160.0080.00016.85
8.0.150.0040.00416.82
8.0.140.0080.00016.78
8.0.130.0030.00313.30
8.0.120.0000.00716.75
8.0.110.0000.00716.86
8.0.100.0000.00716.70
8.0.90.0040.00416.84
8.0.80.0070.01016.75
8.0.70.0000.00716.85
8.0.60.0000.00716.73
8.0.50.0000.00716.71
8.0.30.0170.00616.97
8.0.20.0110.01217.40
8.0.10.0080.00016.84
8.0.00.0110.00716.72
7.4.330.0050.00015.03
7.4.320.0040.00416.59
7.4.300.0030.00316.59
7.4.290.0100.00016.59
7.4.280.0000.00716.59
7.4.270.0000.00716.58
7.4.260.0040.00416.48
7.4.250.0040.00416.56
7.4.240.0050.00216.59
7.4.230.0070.00016.49
7.4.220.0110.00516.55
7.4.210.0100.00816.42
7.4.200.0000.00716.58
7.4.190.0000.00816.45
7.4.160.0000.01616.32
7.4.150.0190.00317.40
7.4.140.0090.01317.86
7.4.130.0120.00716.38
7.4.120.0110.01016.43
7.4.110.0090.00916.49
7.4.100.0070.01016.52
7.4.90.0060.01216.54
7.4.80.0130.00619.39
7.4.70.0120.00916.56
7.4.60.0130.00616.49
7.4.50.0000.00616.45
7.4.40.0070.01122.77
7.4.30.0120.00316.41
7.4.00.0030.01114.98
7.3.330.0030.00313.43
7.3.320.0060.00013.22
7.3.310.0030.00316.36
7.3.300.0000.00716.22
7.3.290.0000.01416.32
7.3.280.0090.00816.31
7.3.270.0090.00917.40
7.3.260.0080.00916.34
7.3.250.0040.01516.46
7.3.240.0110.00716.59
7.3.230.0000.01616.43
7.3.210.0130.00916.40
7.3.200.0030.01719.39
7.3.190.0110.00916.48
7.3.180.0040.01816.34
7.3.170.0120.00316.28
7.3.160.0030.01216.51
7.3.120.0130.00614.73
7.3.110.0060.00914.89
7.3.100.0070.01014.93
7.3.90.0120.00314.72
7.3.80.0060.00314.89
7.3.70.0120.00614.60
7.3.60.0000.01814.39
7.3.50.0080.00414.80
7.3.40.0070.00314.84
7.3.30.0060.00914.71
7.3.20.0090.00916.61
7.3.10.0040.00816.68
7.3.00.0040.00816.56
7.2.330.0110.00616.70
7.2.320.0120.01316.66
7.2.310.0090.01216.37
7.2.300.0040.01216.33
7.2.290.0080.00816.64
7.2.250.0140.00415.05
7.2.240.0070.01414.93
7.2.230.0060.00714.55
7.2.220.0090.00014.54
7.2.210.0090.00615.11
7.2.200.0040.01114.95
7.2.190.0070.01014.97
7.2.180.0110.00715.05
7.2.170.0120.00314.85
7.2.160.0030.00714.83
7.2.150.0090.00316.71
7.2.140.0060.00616.64
7.2.130.0040.01116.63
7.2.120.0070.01116.95
7.2.110.0060.00916.97
7.2.100.0070.00716.98
7.2.90.0070.00316.57
7.2.80.0030.01016.70
7.2.70.0000.01316.91
7.2.60.0040.00916.84
7.2.50.0030.00716.98
7.2.40.0060.00916.83
7.2.30.0150.00017.00
7.2.20.0070.00316.92
7.2.10.0090.00616.59
7.2.00.0000.01518.17
7.1.330.0140.00015.41
7.1.320.0000.00815.76
7.1.310.0060.00615.52
7.1.300.0000.01115.41
7.1.290.0070.00715.70
7.1.280.0060.01315.73
7.1.270.0070.01115.48
7.1.260.0110.00415.67
7.1.250.0060.00315.57
7.1.200.0030.01015.65
7.1.100.0040.00717.52
7.1.70.0080.00416.73
7.1.60.0040.01519.82
7.1.50.0140.01116.75
7.1.00.0000.08022.36
7.0.200.0050.00516.77
7.0.140.0000.09722.04
7.0.60.0100.04319.79
7.0.50.0100.03317.89
7.0.40.0000.04719.96
7.0.30.0170.05720.02
7.0.20.0100.04720.33
7.0.10.0230.08320.23
7.0.00.0170.07020.24
5.6.280.0100.06021.07
5.6.210.0170.06720.71
5.6.200.0100.06718.22
5.6.190.0170.05720.52
5.6.180.0130.08020.41
5.6.170.0300.08320.44
5.6.160.0030.05020.46
5.6.150.0100.04318.29
5.6.140.0030.07018.26
5.6.130.0100.08318.27
5.6.120.0070.08721.13
5.6.110.0070.08720.98
5.6.100.0170.08021.01
5.6.90.0100.07321.11
5.6.80.0070.07320.52
5.6.70.0300.05720.48
5.5.350.0100.05320.34
5.5.340.0100.07717.92
5.5.330.0070.08320.27
5.5.320.0270.04320.36
5.5.310.0230.07320.28
5.5.300.0070.04018.08
5.5.290.0000.08717.96
5.5.280.0000.04720.74
5.5.270.0030.07320.64
5.5.260.0070.08020.77
5.5.250.0000.09020.77
5.5.240.0070.07320.04
5.4.450.0770.05019.22
5.4.440.0670.04019.52
5.4.430.0570.04319.30
5.4.420.0270.03319.54
5.4.410.0030.07318.94
5.4.400.0100.05318.77
5.4.390.0200.04318.72
5.4.380.0100.05718.47
5.4.370.0130.05318.73
5.4.360.0200.04718.70
5.4.350.0230.04718.46
5.4.340.0130.05318.71
5.4.320.0070.03512.50
5.4.310.0060.04412.50
5.4.300.0070.03612.50
5.4.290.0090.03712.50
5.4.280.0070.04912.38
5.4.270.0070.04812.37
5.4.260.0050.04612.38
5.4.250.0070.04312.37
5.4.240.0080.04912.37
5.4.230.0100.04812.37
5.4.220.0070.03712.36
5.4.210.0070.03412.36
5.4.200.0100.04212.36
5.4.190.0080.03712.36
5.4.180.0120.03212.36
5.4.170.0140.04412.38
5.4.160.0120.04312.36
5.4.150.0120.03712.36
5.4.140.0060.04912.05
5.4.130.0110.04012.04
5.4.120.0170.03811.99
5.4.110.0120.04411.98
5.4.100.0070.04011.98
5.4.90.0060.03911.99
5.4.80.0080.04611.98
5.4.70.0070.04311.98
5.4.60.0080.03311.99
5.4.50.0070.04011.99
5.4.40.0060.04711.98
5.4.30.0100.03411.97
5.4.20.0110.04311.97
5.4.10.0060.04111.97
5.4.00.0110.03711.45
5.3.290.0080.04812.80
5.3.280.0070.04812.71
5.3.270.0070.04112.73
5.3.260.0070.05612.72
5.3.250.0090.04312.72
5.3.240.0130.04912.72
5.3.230.0230.08912.71
5.3.220.0130.04712.68
5.3.210.0140.05012.68
5.3.200.0050.04312.68
5.3.190.0070.03812.68
5.3.180.0090.03812.67
5.3.170.0060.03812.67
5.3.160.0100.04612.67
5.3.150.0060.03812.68
5.3.140.0080.04512.66
5.3.130.0100.05112.65
5.3.120.0090.05712.66
5.3.110.0090.05112.66
5.3.100.0100.04612.11
5.3.90.0080.03812.08
5.3.80.0110.03612.07
5.3.70.0080.04312.07
5.3.60.0100.04612.06
5.3.50.0080.04712.00
5.3.40.0120.04312.00
5.3.30.0170.04311.95
5.3.20.0110.04911.74
5.3.10.0080.04911.71
5.3.00.0060.03811.70
5.2.170.0040.0389.18
5.2.160.0050.0329.19
5.2.150.0070.0329.18
5.2.140.0100.0359.18
5.2.130.0060.0369.14
5.2.120.0050.0359.14
5.2.110.0080.0369.15
5.2.100.0070.0359.14
5.2.90.0040.0309.14
5.2.80.0050.0409.14
5.2.70.0040.0439.14
5.2.60.0050.0359.09
5.2.50.0080.0279.06
5.2.40.0080.0469.04
5.2.30.0050.0369.02
5.2.20.0020.0369.00
5.2.10.0100.0328.91
5.2.00.0090.0378.78
5.1.60.0060.0338.06
5.1.50.0020.0278.07
5.1.40.0080.0308.05
5.1.30.0060.0328.39
5.1.20.0030.0398.41
5.1.10.0060.0318.14
5.1.00.0070.0318.14
5.0.50.0040.0266.62
5.0.40.0050.0236.48
5.0.30.0030.0326.29
5.0.20.0070.0186.26
5.0.10.0030.0206.23
5.0.00.0030.0396.22
4.4.90.0020.0174.78
4.4.80.0020.0234.76
4.4.70.0070.0184.76
4.4.60.0030.0224.75
4.4.50.0050.0204.77
4.4.40.0020.0284.71
4.4.30.0030.0214.76
4.4.20.0030.0204.84
4.4.10.0080.0204.85
4.4.00.0040.0274.75
4.3.110.0020.0164.67
4.3.100.0050.0174.66
4.3.90.0090.0154.63
4.3.80.0030.0244.58
4.3.70.0020.0154.63
4.3.60.0070.0104.63
4.3.50.0040.0144.63
4.3.40.0050.0214.54
4.3.30.0020.0163.28
4.3.20.0020.0163.27
4.3.10.0020.0153.23
4.3.00.0030.01315.11

preferences:
44.86 ms | 401 KiB | 5 Q