3v4l.org

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

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.70.0070.00718.43
8.3.60.0140.00318.68
8.3.50.0100.01021.20
8.3.40.0040.01118.70
8.3.30.0100.00318.70
8.3.20.0040.00420.31
8.3.10.0040.00423.71
8.3.00.0040.00422.39
8.2.190.0070.01118.20
8.2.180.0190.00316.38
8.2.170.0070.00722.96
8.2.160.0100.00320.29
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0040.00417.63
8.2.110.0060.00321.12
8.2.100.0110.00017.66
8.2.90.0040.00419.28
8.2.80.0040.00417.97
8.2.70.0040.01117.50
8.2.60.0000.00817.93
8.2.50.0030.00618.22
8.2.40.0040.00421.01
8.2.30.0040.00419.77
8.2.20.0080.00017.76
8.2.10.0040.00418.05
8.2.00.0000.00817.98
8.1.280.0140.00725.92
8.1.270.0000.00820.29
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.26
8.1.230.0000.01119.17
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0030.00617.36
8.1.190.0040.00417.23
8.1.180.0040.00419.97
8.1.170.0000.00818.59
8.1.160.0040.00422.12
8.1.150.0040.00418.76
8.1.140.0040.00417.46
8.1.130.0070.00017.69
8.1.120.0000.00717.48
8.1.110.0030.00517.33
8.1.100.0000.00717.44
8.1.90.0080.00017.30
8.1.80.0040.00417.37
8.1.70.0070.00017.50
8.1.60.0090.00017.48
8.1.50.0080.00017.55
8.1.40.0040.00417.35
8.1.30.0040.00417.49
8.1.20.0040.00417.52
8.1.10.0000.00817.48
8.1.00.0020.00517.39
8.0.300.0070.00518.77
8.0.290.0070.00016.63
8.0.280.0000.00718.38
8.0.270.0080.00017.31
8.0.260.0030.00317.31
8.0.250.0070.00016.97
8.0.240.0040.00416.96
8.0.230.0030.00316.90
8.0.220.0000.00816.80
8.0.210.0050.00316.93
8.0.200.0030.00316.94
8.0.190.0030.00616.96
8.0.180.0000.00816.90
8.0.170.0040.00416.85
8.0.160.0040.00416.87
8.0.150.0000.00716.93
8.0.140.0030.00616.86
8.0.130.0060.00213.27
8.0.120.0050.00316.76
8.0.110.0040.00416.95
8.0.100.0050.00316.78
8.0.90.0040.00416.77
8.0.80.0000.01416.77
8.0.70.0080.00016.89
8.0.60.0040.00416.77
8.0.50.0040.00416.77
8.0.30.0040.01416.97
8.0.20.0110.00817.40
8.0.10.0030.00516.98
8.0.00.0120.00616.61
7.4.330.0000.00615.08
7.4.320.0030.00316.36
7.4.300.0030.00316.64
7.4.290.0030.00316.50
7.4.280.0060.00316.49
7.4.270.0040.00416.52
7.4.260.0020.00516.47
7.4.250.0040.00416.57
7.4.240.0050.00216.57
7.4.230.0030.00416.50
7.4.220.0070.01016.53
7.4.210.0060.00916.53
7.4.200.0030.00316.61
7.4.160.0070.01016.43
7.4.150.0120.00617.40
7.4.140.0080.01017.86
7.4.130.0100.00916.64
7.4.120.0090.01216.72
7.4.110.0040.01416.40
7.4.100.0040.01716.43
7.4.90.0150.00316.33
7.4.80.0170.00419.39
7.4.70.0090.00816.44
7.4.60.0070.01016.61
7.4.50.0000.00416.44
7.4.40.0120.00816.35
7.4.30.0120.00816.43
7.4.00.0050.00814.99
7.3.330.0050.00313.29
7.3.320.0030.00313.31
7.3.310.0070.00016.16
7.3.300.0030.00316.23
7.3.290.0040.01116.29
7.3.280.0070.00816.30
7.3.270.0070.01017.40
7.3.260.0040.01316.29
7.3.250.0080.01016.40
7.3.240.0100.00616.47
7.3.230.0090.01216.39
7.3.210.0080.00816.21
7.3.200.0070.01419.39
7.3.190.0380.01216.36
7.3.180.0060.01816.11
7.3.170.0060.01216.40
7.3.160.0160.00916.45
7.3.120.0100.00714.84
7.3.110.0070.01115.04
7.3.100.0070.01014.66
7.3.90.0070.00714.87
7.3.80.0030.01314.70
7.3.70.0060.01214.89
7.3.60.0070.01014.70
7.3.50.0120.00614.89
7.3.40.0030.01314.44
7.3.30.0000.01214.72
7.3.20.0060.00816.44
7.3.10.0060.00916.57
7.3.00.0090.00916.63
7.2.330.0090.00916.52
7.2.320.0030.01616.41
7.2.310.0120.00616.76
7.2.300.0070.01016.30
7.2.290.0060.01316.63
7.2.250.0040.01115.28
7.2.240.0070.01314.76
7.2.230.0040.01515.18
7.2.220.0040.01115.18
7.2.210.0000.01714.80
7.2.200.0070.01115.07
7.2.190.0110.00415.12
7.2.180.0000.01015.17
7.2.170.0030.01714.77
7.2.160.0000.01514.80
7.2.150.0030.01016.86
7.2.140.0070.01117.02
7.2.130.0050.00716.86
7.2.120.0100.00316.86
7.2.110.0060.00916.66
7.2.100.0070.00916.86
7.2.90.0100.00716.75
7.2.80.0060.01016.92
7.2.70.0020.01416.76
7.2.60.0110.00416.85
7.2.50.0030.01016.87
7.2.40.0090.00516.78
7.2.30.0070.01016.93
7.2.20.0040.01416.78
7.2.10.0050.00916.75
7.2.00.0100.00617.54
7.1.330.0060.00615.88
7.1.320.0000.00915.77
7.1.310.0130.00615.89
7.1.300.0140.00715.66
7.1.290.0030.01015.83
7.1.280.0030.00615.79
7.1.270.0070.00315.70
7.1.260.0070.01015.66
7.1.250.0060.00815.88
7.1.240.0040.01115.70
7.1.230.0030.01015.70
7.1.220.0000.01015.87
7.1.210.0090.00615.88
7.1.200.0050.00715.66
7.1.190.0030.01015.52
7.1.180.0100.00715.82
7.1.170.0000.01115.74
7.1.160.0040.01115.83
7.1.150.0000.00915.70
7.1.140.0030.00915.80
7.1.130.0060.00615.51
7.1.120.0120.00315.51
7.1.110.0040.01215.76
7.1.100.0050.00717.05
7.1.90.0030.00915.60
7.1.80.0060.00915.73
7.1.70.0090.00316.38
7.1.60.0050.01117.79
7.1.50.0080.00616.07
7.1.40.0030.01015.73
7.1.30.0060.00615.63
7.1.20.0070.00715.71
7.1.10.0030.00715.71
7.1.00.0070.04019.15
7.0.330.0060.00615.34
7.0.320.0030.00615.23
7.0.310.0030.01015.35
7.0.300.0090.00615.30
7.0.290.0000.01315.32
7.0.280.0030.01015.26
7.0.270.0000.01315.17
7.0.260.0030.00615.37
7.0.250.0030.00815.48
7.0.240.0100.00715.32
7.0.230.0000.01215.42
7.0.220.0000.01215.55
7.0.210.0030.01215.30
7.0.200.0020.00715.90
7.0.190.0110.00415.23
7.0.180.0030.01015.49
7.0.170.0070.00715.45
7.0.160.0000.00815.19
7.0.150.0080.00415.08
7.0.140.0040.00715.13
7.0.130.0040.01115.29
7.0.120.0030.01015.54
7.0.110.0000.01015.16
7.0.100.0100.00315.21
7.0.90.0050.00515.49
7.0.80.0100.00315.49
7.0.70.0000.01315.11
7.0.60.0070.02917.71
7.0.50.0110.02816.50
7.0.40.0060.04016.82
7.0.30.0250.04016.72
7.0.20.0080.03016.81
7.0.10.0080.02816.82
7.0.00.0040.04016.91
5.6.400.0060.00914.45
5.6.390.0080.00414.64
5.6.380.0000.01314.58
5.6.370.0040.01114.73
5.6.360.0060.00614.57
5.6.350.0040.01114.59
5.6.340.0000.01314.67
5.6.330.0040.01114.25
5.6.320.0000.01014.35
5.6.310.0000.01214.41
5.6.300.0030.01014.39
5.6.290.0090.00614.34
5.6.280.0040.00414.54
5.6.270.0060.00914.46
5.6.260.0060.00314.25
5.6.250.0030.01014.36
5.6.240.0080.00014.61
5.6.230.0040.00714.20
5.6.220.0030.01014.64
5.6.210.0150.03117.48
5.6.200.0070.04016.40
5.6.190.0090.04117.39
5.6.180.0120.02217.47
5.6.170.0120.02517.49
5.6.160.0080.03617.36
5.6.150.0020.04816.30
5.6.140.0050.02216.25
5.6.130.0050.04216.33
5.6.120.0070.04217.75
5.6.110.0050.04517.74
5.6.100.0070.03817.81
5.6.90.0080.04617.56
5.6.80.0030.03717.41
5.6.70.2280.02517.34
5.6.60.0090.00614.14
5.6.50.0060.00314.02
5.6.40.0070.00714.11
5.6.30.0030.00914.52
5.6.20.0030.01014.44
5.6.10.0030.00714.48
5.6.00.0070.00714.39
5.5.380.0080.00814.57
5.5.370.0040.01214.22
5.5.360.0060.00614.41
5.5.350.0130.02017.22
5.5.340.0100.01816.31
5.5.330.0050.03017.38
5.5.320.0210.01817.22
5.5.310.0120.02617.44
5.5.300.0030.02616.31
5.5.290.0070.02216.34
5.5.280.0100.03517.45
5.5.270.0000.05017.55
5.5.260.0070.04817.41
5.5.250.0050.04617.21
5.5.240.2100.02217.16
5.5.230.0120.00314.40
5.5.220.0070.00714.13
5.5.210.0080.00414.28
5.5.200.0000.01614.16
5.5.190.0040.01214.04
5.5.180.0070.00414.26
5.5.170.0090.00313.95
5.5.160.0080.00614.13
5.5.150.0030.00714.09
5.5.140.0000.01014.18
5.5.130.0070.00714.34
5.5.120.0060.00914.57
5.5.110.0130.00014.08
5.5.100.0090.00614.38
5.5.90.0060.00914.25
5.5.80.0060.01213.95
5.5.70.0040.01414.14
5.5.60.0000.01314.40
5.5.50.0080.00614.13
5.5.40.0000.01314.12
5.5.30.0000.01114.41
5.5.20.0000.01214.02
5.5.10.0060.00913.70
5.5.00.0030.01014.40
5.4.450.0350.02215.46
5.4.440.0520.03215.57
5.4.430.0630.03815.44
5.4.420.0450.03315.42
5.4.410.0450.03315.37
5.4.400.0470.03215.26
5.4.390.0470.03415.19
5.4.380.0430.02715.30
5.4.370.0570.03315.19
5.4.360.0260.03315.38
5.4.350.0080.03915.39
5.4.340.0070.03215.21
5.4.330.0000.01311.54
5.4.320.0380.02815.39
5.4.310.0420.03015.33
5.4.300.0470.03615.39
5.4.290.0510.03315.35
5.4.280.0500.03015.46
5.4.270.0460.03115.20
5.4.260.0380.03415.29
5.4.250.0420.03015.40
5.4.240.0520.02715.40
5.4.230.0440.03215.34
5.4.220.0560.02915.34
5.4.210.0450.03115.32
5.4.200.0380.02914.13
5.4.190.0380.03515.21
5.4.180.0350.03415.29
5.4.170.0440.03415.28
5.4.160.0450.02815.38
5.4.150.0390.03415.26
5.4.140.0380.02914.02
5.4.130.0380.02814.04
5.4.120.0350.03014.05
5.4.110.0370.03413.96
5.4.100.0360.03214.04
5.4.90.0400.03113.96
5.4.80.0400.02714.03
5.4.70.0530.02713.92
5.4.60.0020.04513.98
5.4.50.0030.03813.85
5.4.40.0140.03114.03
5.4.30.0180.03714.02
5.4.20.0180.03413.99
5.4.10.0040.00811.54
5.4.00.0050.00311.54

preferences:
18.49 ms | 401 KiB | 5 Q