3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class StaticClass { private function __construct() {} private function StaticClass() {} private function __clone() {} } class Test extends StaticClass { public function testMethod() { echo "testwort"; } public static function testStatic() { return new self(); } } $test = new Test; (Test::testStatic())->testMethod();

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.0110.01116.50
8.3.50.0150.00322.05
8.3.40.0140.00718.79
8.3.30.0090.00618.69
8.3.20.0020.00520.20
8.3.10.0040.00423.66
8.3.00.0080.00019.26
8.2.180.0090.00616.63
8.2.170.0110.00422.96
8.2.160.0140.00020.38
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00517.48
8.2.120.0000.00826.35
8.2.110.0100.00021.05
8.2.100.0120.00017.84
8.2.90.0050.00319.10
8.2.80.0040.00417.97
8.2.70.0050.00517.61
8.2.60.0040.00417.91
8.2.50.0040.00418.10
8.2.40.0040.00419.16
8.2.30.0000.00720.62
8.2.20.0040.00417.56
8.2.10.0070.00017.98
8.2.00.0000.00717.86
8.1.280.0090.00925.92
8.1.270.0100.00021.79
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0060.00322.68
8.1.230.0030.00717.48
8.1.220.0030.00517.74
8.1.210.0050.00318.77
8.1.200.0000.00917.22
8.1.190.0030.00517.22
8.1.180.0000.00818.10
8.1.170.0000.00818.56
8.1.160.0070.00021.86
8.1.150.0040.00418.67
8.1.140.0040.00419.36
8.1.130.0030.00317.57
8.1.120.0040.00417.35
8.1.110.0070.00417.32
8.1.100.0000.01017.32
8.1.90.0070.00317.39
8.1.80.0070.00017.34
8.1.70.0000.00717.21
8.1.60.0040.00417.42
8.1.50.0050.00517.35
8.1.40.0030.00617.44
8.1.30.0000.00917.60
8.1.20.0000.00817.64
8.1.10.0040.00417.55
8.1.00.0060.00517.35
8.0.300.0000.00718.77
8.0.290.0050.00216.63
8.0.280.0040.00418.38
8.0.270.0000.00717.19
8.0.260.0000.00717.18
8.0.250.0000.00716.98
8.0.240.0030.00316.98
8.0.230.0030.00416.92
8.0.220.0040.00416.79
8.0.210.0000.00816.78
8.0.200.0070.00016.84
8.0.190.0040.00416.96
8.0.180.0000.00816.79
8.0.170.0040.00416.95
8.0.160.0070.00016.87
8.0.150.0000.00716.72
8.0.140.0000.00716.71
8.0.130.0050.00013.36
8.0.120.0030.00516.85
8.0.110.0040.00416.79
8.0.100.0000.00716.82
8.0.90.0070.00016.84
8.0.80.0090.00616.85
8.0.70.0080.00016.67
8.0.60.0000.00716.86
8.0.50.0070.00016.86
8.0.30.0090.01016.91
8.0.20.0060.01517.40
8.0.10.0040.00416.99
8.0.00.0090.00916.64
7.4.330.0050.00016.78
7.4.320.0030.00316.52
7.4.300.0030.00316.46
7.4.290.0070.00016.41
7.4.280.0030.00616.44
7.4.270.0000.00616.46
7.4.260.0050.00216.48
7.4.250.0050.00316.43
7.4.240.0000.00716.45
7.4.230.0000.00716.47
7.4.220.0110.01516.48
7.4.210.0170.00316.38
7.4.200.0030.00316.62
7.4.160.0090.00616.60
7.4.150.0110.00717.40
7.4.140.0140.00717.86
7.4.130.0090.01116.55
7.4.120.0080.01216.45
7.4.110.0130.00316.43
7.4.100.0160.00316.33
7.4.90.0120.00916.51
7.4.80.0060.01319.39
7.4.70.0150.00316.43
7.4.60.0060.01016.50
7.4.50.0060.00616.22
7.4.40.0080.01116.44
7.4.30.0090.01216.46
7.4.10.0060.01316.50
7.4.00.0060.00915.74
7.3.330.0030.00313.24
7.3.320.0000.00513.22
7.3.310.0070.00016.35
7.3.300.0070.00016.25
7.3.290.0080.00916.25
7.3.280.0100.00916.29
7.3.270.0140.00317.40
7.3.260.0100.00716.28
7.3.250.0100.01016.38
7.3.240.0110.01116.53
7.3.230.0140.00416.45
7.3.210.0100.00616.37
7.3.200.0110.01116.38
7.3.190.0050.01016.52
7.3.180.0180.00016.23
7.3.170.0060.01516.27
7.3.160.0100.00716.25
7.3.130.0070.01116.40
7.3.120.0110.00816.19
7.3.110.0080.00816.47
7.3.100.0070.01116.38
7.3.90.0100.01016.32
7.3.80.0120.00016.18
7.3.70.0070.00716.34
7.3.60.0040.01116.05
7.3.50.0030.01416.27
7.3.40.0060.00616.40
7.3.30.0030.00916.25
7.3.20.0090.00618.15
7.3.10.0060.00618.13
7.3.00.0090.00318.04
7.2.330.0080.00816.59
7.2.320.0220.00316.27
7.2.310.0120.00616.41
7.2.300.0090.01216.41
7.2.290.0130.00316.46
7.2.260.0070.01316.23
7.2.250.0070.01016.60
7.2.240.0030.01216.57
7.2.230.0070.01316.57
7.2.220.0120.00816.41
7.2.210.0000.01316.51
7.2.200.0030.00616.48
7.2.190.0030.01316.48
7.2.180.0030.00916.49
7.2.170.0090.00616.26
7.2.160.0040.01116.48
7.2.150.0040.01118.35
7.2.140.0030.01618.34
7.2.130.0100.00718.18
7.2.120.0070.00718.25
7.2.110.0090.00318.16
7.2.100.0070.00718.27
7.2.90.0030.01018.26
7.2.80.0030.01018.33
7.2.70.0080.00818.16
7.2.60.0020.01317.45
7.2.50.0000.01318.33
7.2.40.0060.00918.31
7.2.30.0060.00318.25
7.2.20.0000.01818.19
7.2.10.0030.00718.15
7.2.00.0070.00718.76
7.1.330.0120.00317.30
7.1.320.0110.00717.15
7.1.310.0070.00717.02
7.1.300.0070.01017.15
7.1.290.0070.00717.28
7.1.280.0030.01017.22
7.1.270.0030.01217.16
7.1.260.0040.00816.94
7.1.250.0060.00617.04
7.1.240.0090.00617.05
7.1.230.0040.00817.03
7.1.220.0040.01217.07
7.1.210.0090.00617.01
7.1.200.0070.00416.36
7.1.190.0070.00717.34
7.1.180.0000.01217.09
7.1.170.0030.00917.21
7.1.160.0100.00317.02
7.1.150.0060.00317.22
7.1.140.0080.00317.28
7.1.130.0030.00617.08
7.1.120.0080.00517.09
7.1.110.0110.00417.17
7.1.100.0060.00917.59
7.1.90.0030.01317.18
7.1.80.0100.00317.23
7.1.70.0030.01117.09
7.1.60.0060.01218.30
7.1.50.0070.00717.02
7.1.40.0000.01517.19
7.1.30.0100.00717.19
7.1.20.0090.00617.16
7.1.10.0070.01017.13
7.1.00.0010.04419.71
7.0.330.0080.00316.99
7.0.320.0070.00316.81
7.0.310.0040.00716.87
7.0.300.0000.01316.87
7.0.290.0030.00916.78
7.0.280.0090.00616.82
7.0.270.0120.00616.91
7.0.260.0080.00616.98
7.0.250.0000.01217.13
7.0.240.0060.00917.00
7.0.230.0060.00617.09
7.0.220.0040.01116.95
7.0.210.0070.00716.80
7.0.200.0040.00416.69
7.0.190.0000.01517.04
7.0.180.0040.01216.76
7.0.170.0040.01216.64
7.0.160.0030.01016.86
7.0.150.0060.00917.06
7.0.140.0070.00416.96
7.0.130.0040.01117.10
7.0.120.0060.01016.98
7.0.110.0090.00916.86
7.0.100.0060.01316.91
7.0.90.0060.00616.95
7.0.80.0000.01116.88
7.0.70.0040.01117.01
7.0.60.0060.02318.46
7.0.50.0080.04417.32
7.0.40.0050.04517.49
7.0.30.0200.03417.54
7.0.20.0190.04417.46
7.0.10.0020.02817.43
7.0.00.0000.02717.51
5.6.400.0060.00615.77
5.6.390.0060.00915.71
5.6.380.0000.01015.70
5.6.370.0040.00915.50
5.6.360.0060.00615.73
5.6.350.0030.01015.72
5.6.340.0040.01115.98
5.6.330.0100.00615.54
5.6.320.0040.00815.57
5.6.310.0060.00915.51
5.6.300.0090.00615.55
5.6.290.0030.00915.68
5.6.280.0070.02718.21
5.6.270.0030.01415.80
5.6.260.0060.01215.67
5.6.250.0030.01615.65
5.6.240.0060.00615.77
5.6.230.0030.00715.66
5.6.220.0030.01015.65
5.6.210.0070.03018.19
5.6.200.0060.04816.94
5.6.190.0050.03418.23
5.6.180.0140.02418.03
5.6.170.0140.04217.94
5.6.160.0070.03318.01
5.6.150.0080.04016.79
5.6.140.0100.02516.95
5.6.130.0040.03116.87
5.6.120.0110.04418.29
5.6.110.0050.04818.16
5.6.100.0080.04218.24
5.6.90.0050.04018.27
5.6.80.0050.04818.07
5.6.70.0080.01115.75
5.6.60.0080.00315.84
5.6.50.0000.01115.52
5.6.40.0000.01115.77
5.6.30.0030.01015.45
5.6.20.0030.00915.56
5.6.10.0030.00915.48
5.6.00.0060.00615.53
5.5.380.0070.00715.64
5.5.370.0060.00815.53
5.5.360.0100.00715.66
5.5.350.0170.04018.04
5.5.340.0030.02216.75
5.5.330.0090.02517.92
5.5.320.0090.04017.73
5.5.310.0130.02117.95
5.5.300.0060.04116.75
5.5.290.0050.04016.79
5.5.280.0070.03018.12
5.5.270.0060.04018.20
5.5.260.0100.04418.14
5.5.250.0120.01818.16
5.5.240.0080.02117.87
5.5.230.0070.00715.55
5.5.220.0000.01715.49
5.5.210.0040.00415.34
5.5.200.0040.01115.55
5.5.190.0060.00615.68
5.5.180.0030.01015.55
5.5.170.0120.00315.36
5.5.160.0000.00915.65
5.5.150.0040.00815.54
5.5.140.0040.00815.18
5.5.130.0070.00415.66
5.5.120.0040.00715.40
5.5.110.0040.01115.42
5.5.100.0030.00915.40
5.5.90.0100.00615.30
5.5.80.0070.01015.46
5.5.70.0030.00615.13
5.5.60.0030.00715.36
5.5.50.0080.00415.55
5.5.40.0030.01015.54
5.5.30.0040.01115.54
5.5.20.0090.00015.42
5.5.10.0030.00715.57
5.5.00.0030.01015.48

preferences:
44.86 ms | 401 KiB | 5 Q