3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class HiddenFactory { protected function __construct() { } protected static function create() { } } class B extends HiddenFactory {} class A extends HiddenFactory { public static function createB() { return B::create(); } } $b = A::createB(); echo get_class($b);

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.00018.43
8.3.50.0150.00322.05
8.3.40.0140.00018.79
8.3.30.0030.01020.40
8.3.20.0040.00418.77
8.3.10.0080.00021.09
8.3.00.0000.00919.68
8.2.180.0110.00316.60
8.2.170.0110.01122.96
8.2.160.0070.00720.39
8.2.150.0040.01524.18
8.2.140.0070.00024.66
8.2.130.0000.00826.16
8.2.120.0040.00421.25
8.2.110.0080.00022.20
8.2.100.0070.00417.72
8.2.90.0040.00419.27
8.2.80.0020.00519.31
8.2.70.0040.00417.48
8.2.60.0030.00517.90
8.2.50.0030.00518.07
8.2.40.0000.00818.22
8.2.30.0000.00721.23
8.2.20.0050.00217.65
8.2.10.0040.00417.71
8.2.00.0000.00817.61
8.1.280.0160.00625.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.50
8.1.230.0120.00020.69
8.1.220.0000.00918.77
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0000.00817.54
8.1.180.0040.00418.10
8.1.170.0030.00618.64
8.1.160.0080.00018.88
8.1.150.0070.00018.49
8.1.140.0040.00417.32
8.1.130.0030.00317.77
8.1.120.0000.00717.40
8.1.110.0050.00317.31
8.1.100.0040.00417.29
8.1.90.0030.00317.45
8.1.80.0040.00417.29
8.1.70.0000.00717.35
8.1.60.0060.00317.57
8.1.50.0000.00717.35
8.1.40.0060.00317.43
8.1.30.0000.00717.65
8.1.20.0030.00517.58
8.1.10.0000.00717.60
8.1.00.0060.00317.56
8.0.300.0050.00819.73
8.0.290.0000.00817.05
8.0.280.0030.00318.32
8.0.270.0000.00717.18
8.0.260.0000.00616.73
8.0.250.0000.00716.87
8.0.240.0030.00716.95
8.0.230.0030.00516.96
8.0.220.0030.00316.77
8.0.210.0040.00416.89
8.0.200.0000.00716.93
8.0.190.0040.00416.90
8.0.180.0000.00716.98
8.0.170.0080.00016.77
8.0.160.0000.00716.79
8.0.150.0040.00416.91
8.0.140.0040.00416.84
8.0.130.0060.00013.41
8.0.120.0000.00816.74
8.0.110.0080.00016.89
8.0.100.0030.00516.71
8.0.90.0050.00216.79
8.0.80.0120.00616.91
8.0.70.0000.00816.89
8.0.60.0040.00416.85
8.0.50.0000.00716.75
8.0.30.0110.01216.89
8.0.20.0110.00817.40
8.0.10.0000.00717.04
8.0.00.0070.01116.81
7.4.330.0020.00214.91
7.4.320.0000.00816.58
7.4.300.0090.00016.50
7.4.290.0030.00316.59
7.4.280.0030.00316.52
7.4.270.0030.00316.59
7.4.260.0000.00513.38
7.4.250.0070.00016.58
7.4.240.0030.00416.59
7.4.230.0000.00716.70
7.4.220.0120.00316.57
7.4.210.0040.01216.49
7.4.200.0040.00416.68
7.4.190.0030.00316.68
7.4.160.0120.00616.31
7.4.150.0130.00717.40
7.4.140.0140.00517.86
7.4.130.0030.01316.43
7.4.120.0040.01316.55
7.4.110.0090.01116.54
7.4.100.0060.01616.38
7.4.90.0180.00316.55
7.4.80.0140.00819.39
7.4.70.0100.00616.39
7.4.60.0060.01416.54
7.4.50.0030.00616.46
7.4.40.0070.00422.77
7.4.30.0130.01116.41
7.4.00.0100.00714.68
7.3.330.0000.00513.20
7.3.320.0060.00013.22
7.3.310.0040.00416.25
7.3.300.0040.00416.22
7.3.290.0030.01116.27
7.3.280.0060.01016.35
7.3.270.0070.01117.40
7.3.260.0100.01218.24
7.3.250.0080.00916.35
7.3.240.0120.00316.29
7.3.230.0070.01016.55
7.3.210.0100.00716.49
7.3.200.0160.00819.39
7.3.190.0160.00616.59
7.3.180.0030.01516.41
7.3.170.0070.01116.31
7.3.160.0030.01316.47
7.3.120.0070.00714.98
7.3.10.0110.00416.70
7.3.00.0120.00316.68
7.2.330.0130.00316.75
7.2.320.0070.01016.68
7.2.310.0090.01216.46
7.2.300.0080.01116.77
7.2.290.0100.00716.37
7.2.130.0080.00817.09
7.2.120.0120.00316.91
7.2.110.0070.00316.95
7.2.100.0060.00916.85
7.2.90.0070.01016.68
7.2.80.0030.00717.06
7.2.70.0100.00716.89
7.2.60.0090.00716.85
7.2.50.0090.00617.02
7.2.40.0040.01116.93
7.2.30.0060.00916.53
7.2.20.0040.01116.84
7.2.10.0070.00316.91
7.2.00.0060.00718.19
7.1.250.0030.01015.70
7.1.200.0040.01115.69
7.1.70.0000.00916.86
7.1.60.0000.01117.19
7.1.50.0070.00716.89
7.1.40.0040.00816.47
7.1.30.0000.01116.66
7.1.20.0090.00916.66
7.1.10.0030.00616.33
7.1.00.0080.00816.71
7.0.200.0040.00416.58
7.0.190.0030.00616.66
7.0.180.0080.00416.34
7.0.170.0000.00916.09
7.0.160.0000.00816.26
7.0.150.0030.00616.38
7.0.140.0090.00016.40
7.0.130.0060.00316.52
7.0.120.0000.01016.73
7.0.110.0000.01016.20
7.0.100.0000.01016.42
7.0.90.0050.00516.50
7.0.80.0070.00316.32
7.0.70.0080.00316.21
7.0.60.0020.00716.23
7.0.50.0080.00316.53
7.0.40.0000.00915.37
7.0.30.0040.00715.37
7.0.20.0050.00515.37
7.0.10.0030.00615.37
7.0.00.0000.01215.37
5.6.300.0030.04620.87
5.6.290.0100.05220.61
5.6.280.0260.03920.87
5.6.270.0060.05420.82
5.6.260.0090.04020.91
5.6.250.0100.03920.75
5.6.240.0030.05120.83
5.6.230.0160.04920.95
5.6.220.0070.05320.94
5.6.210.0030.04420.59
5.6.200.0070.03820.99
5.6.190.0070.04120.83
5.6.180.0040.04320.88
5.6.170.0110.04120.96
5.6.160.0100.03820.83
5.6.150.0090.04021.04
5.6.140.0070.04020.99
5.6.130.0070.07520.82
5.6.120.0070.08120.96
5.6.110.0080.04920.83
5.6.100.0150.05320.80
5.6.90.0070.06620.95
5.6.80.0060.04220.35
5.6.70.0070.05420.21
5.6.60.0100.03820.24
5.6.50.0040.05620.43
5.6.40.0040.04520.15
5.6.30.0030.09120.23
5.6.20.0040.04620.41
5.6.10.0100.04020.20
5.6.00.0060.04820.40
5.5.380.0030.04117.54
5.5.370.0030.04317.52
5.5.360.0060.04217.52
5.5.350.0030.04217.44
5.5.340.0000.06018.10
5.5.330.0000.04917.71
5.5.320.0060.03918.07
5.5.310.0030.04118.09
5.5.300.0070.04918.09
5.5.290.0030.04618.03
5.5.280.0040.04217.74
5.5.270.0000.04618.02
5.5.260.0030.04118.00
5.5.250.0070.03917.83
5.5.240.0140.02917.45
5.5.230.0060.07817.56
5.5.220.0030.03817.50
5.5.210.0070.04017.46
5.5.200.0070.03717.36
5.5.190.0070.03917.38
5.5.180.0000.08417.45
5.5.160.0000.04617.32
5.5.150.0070.03717.35
5.5.140.0100.03517.18
5.5.130.0060.03817.38
5.5.120.0030.03917.21
5.5.110.0030.04317.18
5.5.100.0070.03417.26
5.5.90.0070.03817.22
5.5.80.0210.03417.09
5.5.70.0060.03817.28
5.5.60.0130.04017.25
5.5.50.0030.03717.39
5.5.40.0030.05017.28
5.5.30.0040.03917.23
5.5.20.0030.04717.34
5.5.10.0070.03717.26
5.5.00.0000.05817.09
5.4.450.0000.04919.31
5.4.440.0030.07319.40
5.4.430.0060.03919.48
5.4.420.0000.04519.52
5.4.410.0030.03919.09
5.4.400.0000.05119.07
5.4.390.0000.05919.07
5.4.380.0060.03519.26
5.4.370.0060.03519.20
5.4.360.0000.04518.91
5.4.350.0030.04119.11
5.4.340.0000.05418.89
5.4.320.0030.03819.17
5.4.310.0040.04218.94
5.4.300.0030.04419.16
5.4.290.0060.03519.00
5.4.280.0000.04419.07
5.4.270.0000.04318.91
5.4.260.0030.03718.92
5.4.250.0070.03718.97
5.4.240.0030.03919.18
5.4.230.0030.03918.88
5.4.220.0100.03119.07
5.4.210.0070.03619.06
5.4.200.0070.03519.13
5.4.190.0070.03518.88
5.4.180.0000.04418.88
5.4.170.0000.04319.05
5.4.160.0070.03718.87
5.4.150.0000.04419.05
5.4.140.0070.04316.57
5.4.130.0000.04816.77
5.4.120.0070.04916.65
5.4.110.0030.04616.64
5.4.100.0040.03616.68
5.4.90.0030.03316.75
5.4.80.0060.04216.76
5.4.70.0030.03816.52
5.4.60.0000.03716.45
5.4.50.0000.04316.75
5.4.40.0030.03516.66
5.4.30.0000.03616.67
5.4.20.0000.03716.71
5.4.10.0060.03216.55
5.4.00.0070.03115.94
5.3.290.0100.03315.37
5.3.280.0000.04315.37
5.3.270.0070.03315.37
5.3.260.0000.04515.37
5.3.250.0030.03715.37
5.3.240.0030.05415.37
5.3.230.0000.04015.37
5.3.220.0030.06715.37
5.3.210.0000.07615.37
5.3.200.0030.03515.37
5.3.190.0040.03615.37
5.3.180.0060.03215.37
5.3.170.0040.03615.37
5.3.160.0040.03515.37
5.3.150.0060.03415.37
5.3.140.0030.03415.37
5.3.130.0030.05015.37
5.3.120.0030.03815.37
5.3.110.0000.04015.37
5.3.100.0030.03915.37
5.3.90.0000.03815.37
5.3.80.0030.03715.37
5.3.70.0100.06615.37
5.3.60.0000.04115.37
5.3.50.0000.03715.37
5.3.40.0000.03715.37
5.3.30.0030.03915.37
5.3.20.0000.03915.37
5.3.10.0000.03615.37
5.3.00.0070.03615.37
5.2.170.0030.02715.37
5.2.160.0030.02815.37
5.2.150.0060.02915.37
5.2.140.0030.02715.37
5.2.130.0060.02815.37
5.2.120.0000.02915.37
5.2.110.0030.02615.37
5.2.100.0070.02515.37
5.2.90.0030.02715.37
5.2.80.0070.02415.37
5.2.70.0030.03115.37
5.2.60.0030.02715.37
5.2.50.0000.03115.37
5.2.40.0070.02315.37
5.2.30.0000.03115.37
5.2.20.0070.02715.37
5.2.10.0000.03115.37
5.2.00.0180.02515.37
5.1.60.0000.02615.37
5.1.50.0030.03115.37
5.1.40.0060.01915.37
5.1.30.0000.03015.37
5.1.20.0030.02415.37
5.1.10.0000.02715.37
5.1.00.0070.02715.37
5.0.50.0030.02315.37
5.0.40.0030.02215.37
5.0.30.0000.03315.37
5.0.20.0110.01815.37
5.0.10.0000.02415.37
5.0.00.0000.03315.37
4.4.90.0000.01715.37
4.4.80.0000.01615.37
4.4.70.0030.01415.37
4.4.60.0030.01415.37
4.4.50.0000.02115.37
4.4.40.0000.02615.37
4.4.30.0000.01615.37
4.4.20.0000.01815.37
4.4.10.0030.01315.37
4.4.00.0030.02215.37
4.3.110.0000.01715.37
4.3.100.0000.01715.37
4.3.90.0030.01315.37
4.3.80.0000.02715.37
4.3.70.0080.01515.37
4.3.60.0000.01615.37
4.3.50.0000.02015.37
4.3.40.0000.02615.37
4.3.30.0030.01715.37
4.3.20.0000.01915.37
4.3.10.0000.01815.37
4.3.00.0000.01615.37

preferences:
59.25 ms | 400 KiB | 5 Q