3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class PageObject { const X = "Don't print this!"; public function __construct() { echo self::X; echo static::X; echo parent::X; } } class Test extends PageObject { const X = "OMG"; public function __construct() { parent::__construct(); } } $x = new Test;

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.40.0080.00618.71
8.3.30.0100.00318.96
8.3.20.0070.00020.29
8.3.10.0050.00320.38
8.3.00.0040.00422.43
8.2.170.0110.00722.96
8.2.160.0150.00320.67
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0070.00726.16
8.2.120.0120.00319.36
8.2.110.0060.00322.13
8.2.100.0040.00719.52
8.2.90.0000.00919.14
8.2.80.0080.00017.97
8.2.70.0060.00317.38
8.2.60.0000.00817.91
8.2.50.0000.00818.07
8.2.40.0040.00418.09
8.2.30.0000.00717.82
8.2.20.0000.00717.59
8.2.10.0040.00419.27
8.2.00.0040.00417.60
8.1.270.0000.00822.14
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00323.88
8.1.230.0050.00519.23
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0030.00517.43
8.1.180.0030.00618.31
8.1.170.0080.00018.61
8.1.160.0060.00323.74
8.1.150.0000.00718.39
8.1.140.0050.00317.32
8.1.130.0040.00417.77
8.1.120.0000.00817.38
8.1.110.0000.00817.36
8.1.100.0060.00317.29
8.1.90.0070.00017.27
8.1.80.0030.00317.27
8.1.70.0030.00317.30
8.1.60.0000.01217.34
8.1.50.0060.00317.36
8.1.40.0000.00717.29
8.1.30.0030.00617.47
8.1.20.0000.00817.45
8.1.10.0060.00317.23
8.1.00.0000.00817.28
8.0.300.0040.00418.77
8.0.290.0040.00417.05
8.0.280.0070.00018.20
8.0.270.0050.00317.10
8.0.260.0030.00316.75
8.0.250.0000.00616.89
8.0.240.0030.00316.98
8.0.230.0070.00016.77
8.0.220.0030.00316.82
8.0.210.0000.00716.82
8.0.200.0030.00316.89
8.0.190.0040.00416.89
8.0.180.0080.00016.74
8.0.170.0000.00716.82
8.0.160.0000.00716.69
8.0.150.0030.00416.68
8.0.140.0050.00216.71
8.0.130.0050.00013.19
8.0.120.0080.00016.80
8.0.110.0030.00516.73
8.0.100.0040.00416.70
8.0.90.0000.00716.89
8.0.80.0110.00716.79
8.0.70.0080.00016.63
8.0.60.0070.00016.82
8.0.50.0000.00716.86
8.0.30.0080.01116.96
8.0.20.0040.01417.40
8.0.10.0030.00316.83
8.0.00.0080.01116.50
7.4.330.0020.00215.00
7.4.320.0030.00316.40
7.4.300.0060.00016.47
7.4.290.0050.00316.30
7.4.280.0070.00016.50
7.4.270.0070.00016.45
7.4.260.0050.00316.45
7.4.250.0070.00016.55
7.4.240.0040.00316.41
7.4.230.0000.00716.57
7.4.220.0000.01816.62
7.4.210.0060.01016.49
7.4.200.0080.00016.42
7.4.190.0030.00316.50
7.4.160.0090.00616.39
7.4.150.0090.00917.40
7.4.140.0150.00617.86
7.4.130.0090.00816.53
7.4.120.0080.00816.41
7.4.110.0080.00816.59
7.4.100.0130.00316.43
7.4.90.0080.01116.65
7.4.80.0100.00719.39
7.4.70.0070.01316.45
7.4.60.0110.00716.55
7.4.50.0040.00416.20
7.4.40.0070.01022.77
7.4.30.0120.00916.59
7.4.10.0040.01315.04
7.4.00.0080.00714.72
7.3.330.0050.00013.32
7.3.320.0050.00013.36
7.3.310.0070.00016.39
7.3.300.0040.00416.32
7.3.290.0040.01116.31
7.3.280.0070.01016.33
7.3.270.0090.00917.40
7.3.260.0130.01016.38
7.3.250.0070.01116.37
7.3.240.0080.00916.62
7.3.230.0040.01216.39
7.3.210.0130.00416.47
7.3.200.0000.01719.39
7.3.190.0080.01416.57
7.3.180.0120.00316.38
7.3.170.0060.00916.37
7.3.160.0130.00316.48
7.3.130.0100.00714.80
7.3.120.0060.01114.82
7.3.110.0120.00514.68
7.3.100.0080.00714.84
7.3.90.0080.00914.79
7.3.80.0050.00714.71
7.3.70.0040.00814.73
7.3.60.0050.01014.78
7.3.50.0060.00414.85
7.3.40.0090.00614.91
7.3.30.0040.00914.80
7.3.20.0070.00716.66
7.3.10.0050.01016.72
7.3.00.0060.00816.55
7.2.330.0090.01216.62
7.2.320.0120.00616.72
7.2.310.0100.01316.66
7.2.300.0120.01216.52
7.2.290.0110.00816.63
7.2.260.0050.01115.18
7.2.250.0070.01014.99
7.2.240.0070.00815.04
7.2.230.0080.00714.95
7.2.220.0050.01014.91
7.2.210.0050.00814.93
7.2.200.0050.00815.00
7.2.190.0070.00914.98
7.2.180.0100.00614.88
7.2.170.0040.01014.93
7.2.160.0060.00914.95
7.2.150.0040.01216.89
7.2.140.0080.00916.81
7.2.130.0050.01016.86
7.2.120.0060.00816.78
7.2.110.0070.00716.81
7.2.100.0070.00616.81
7.2.90.0030.01116.92
7.2.80.0060.00816.83
7.2.70.0050.01016.89
7.2.60.0050.00916.85
7.2.50.0080.00716.94
7.2.40.0060.00916.81
7.2.30.0080.00716.85
7.2.20.0070.00716.74
7.2.10.0050.00916.87
7.2.00.0060.00617.34
7.1.330.0060.01015.61
7.1.320.0060.00815.65
7.1.310.0060.00715.70
7.1.300.0030.01115.62
7.1.290.0070.00715.70
7.1.280.0070.00715.50
7.1.270.0060.00615.65
7.1.260.0070.00715.53
7.1.250.0030.00915.65
7.1.240.0000.01315.55
7.1.230.0100.00515.65
7.1.220.0030.00715.54
7.1.210.0060.00515.67
7.1.200.0060.00615.52
7.1.190.0080.00215.67
7.1.180.0050.00715.34
7.1.170.0080.00815.65
7.1.160.0060.00715.51
7.1.150.0070.00415.52
7.1.140.0050.00915.70
7.1.130.0090.00315.76
7.1.120.0110.00215.62
7.1.110.0100.00215.65
7.1.100.0060.00515.60
7.1.90.0050.00915.72
7.1.80.0100.00315.63
7.1.70.0050.00616.03
7.1.60.0040.00916.10
7.1.50.0140.00921.91
7.1.40.0070.00415.61
7.1.30.0060.00815.69
7.1.20.0120.00315.50
7.1.10.0060.00615.43
7.1.00.0030.03117.76
7.0.330.0060.00415.45
7.0.320.0030.00815.45
7.0.310.0080.00515.35
7.0.300.0060.00615.38
7.0.290.0060.00515.33
7.0.280.0080.00515.22
7.0.270.0090.00515.19
7.0.260.0040.01015.18
7.0.250.0070.00915.49
7.0.240.0050.00715.40
7.0.230.0060.00915.38
7.0.220.0070.00115.19
7.0.210.0030.00815.30
7.0.200.0050.00815.71
7.0.190.0070.00515.33
7.0.180.0080.00615.30
7.0.170.0030.01015.35
7.0.160.0080.00615.32
7.0.150.0020.00915.30
7.0.140.0060.02817.45
7.0.130.0020.00815.23
7.0.120.0030.00715.49
7.0.110.0080.00515.36
7.0.100.0030.01015.32
7.0.90.0060.00315.11
7.0.80.0020.00915.36
7.0.70.0100.00315.46
7.0.60.0120.02116.87
7.0.50.0020.02216.29
7.0.40.0050.02215.62
7.0.30.0140.02015.67
7.0.20.0100.02815.63
7.0.10.0140.03315.53
7.0.00.0050.01615.57
5.6.400.0070.00714.07
5.6.390.0050.00914.09
5.6.380.0050.01014.49
5.6.370.0080.00414.33
5.6.360.0060.00814.49
5.6.350.0070.00614.39
5.6.340.0060.00814.47
5.6.330.0100.00314.22
5.6.320.0020.00613.99
5.6.310.0070.00714.32
5.6.300.0060.00614.34
5.6.290.0040.00914.33
5.6.280.0070.02816.40
5.6.270.0080.00514.14
5.6.260.0050.01014.23
5.6.250.0040.00714.35
5.6.240.0060.00814.11
5.6.230.0060.01014.29
5.6.220.0060.00614.36
5.6.210.0050.03416.31
5.6.200.0030.03215.71
5.6.190.0090.03116.47
5.6.180.0610.02316.23
5.6.170.0110.03416.26
5.6.160.0050.02716.31
5.6.150.0040.02815.46
5.6.140.0030.03715.56
5.6.130.0050.02215.63
5.6.120.0070.03416.46
5.6.110.0050.02816.45
5.6.100.0070.03316.43
5.6.90.0060.02016.51
5.6.80.0070.02416.24
5.6.70.0120.01416.30
5.6.60.0040.01214.03
5.6.50.0020.01214.09
5.6.40.0060.00814.10
5.6.30.0060.00914.03
5.6.20.0020.01014.00
5.6.10.0050.00914.17
5.6.00.0080.00513.99
5.5.380.0050.00814.46
5.5.370.0070.00814.27
5.5.360.0090.00514.19
5.5.350.0060.03116.37
5.5.340.0060.02215.46
5.5.330.0040.03316.38
5.5.320.0100.02216.40
5.5.310.0140.03016.27
5.5.300.0070.03215.51
5.5.290.0070.03015.42
5.5.280.0060.01616.45
5.5.270.0080.01916.39
5.5.260.0050.01816.21
5.5.250.0110.03016.42
5.5.240.0040.03316.12
5.5.230.0050.00714.05
5.5.220.0030.00914.08
5.5.210.0070.00314.21
5.5.200.0020.01314.15
5.5.190.0090.00814.07
5.5.180.0050.00714.13
5.5.170.0050.01014.27
5.5.160.0050.00914.01
5.5.150.0070.00614.13
5.5.140.0080.00214.27
5.5.130.0020.01114.26
5.5.120.0090.00214.24
5.5.110.0020.00814.11
5.5.100.0100.00314.19
5.5.90.0090.00414.14
5.5.80.0020.00914.06
5.5.70.0030.00913.80
5.5.60.0050.01014.10
5.5.50.0080.00614.03
5.5.40.0030.00814.05
5.5.30.0050.00814.24
5.5.20.0050.00914.08
5.5.10.0050.00814.27
5.5.00.0090.00714.15
5.4.450.0230.02214.41
5.4.440.0060.02314.37
5.4.430.0080.01914.32
5.4.420.0110.02114.43
5.4.410.0060.02314.43
5.4.400.0290.00514.07
5.4.390.0340.00414.21
5.4.380.0080.02614.05
5.4.370.0270.01714.00
5.4.360.0160.01714.13
5.4.350.0090.02314.21
5.4.340.0120.02314.10
5.4.330.0040.00611.79
5.4.320.0060.01412.00
5.4.310.0050.01612.13
5.4.300.0060.01512.13
5.4.290.0020.02312.10
5.4.280.0070.01412.00
5.4.270.0050.01612.00
5.4.260.0030.02414.20
5.4.250.0090.01914.27
5.4.240.0050.02114.22
5.4.230.0070.01914.17
5.4.220.0030.02414.15
5.4.210.0080.01914.16
5.4.200.0080.01914.09
5.4.190.0050.02414.23
5.4.180.0040.02114.13
5.4.170.0060.02514.09
5.4.160.0050.02114.13
5.4.150.0030.02514.07
5.4.140.0100.01713.24
5.4.130.0050.02013.42
5.4.120.0090.02313.44
5.4.110.0070.01813.35
5.4.100.0060.02913.41
5.4.90.0080.02513.43
5.4.80.0070.01813.45
5.4.70.0060.02113.30
5.4.60.0060.01813.48
5.4.50.0090.02113.36
5.4.40.0070.02013.45
5.4.30.0050.01913.38
5.4.20.0060.01913.30
5.4.10.0060.02413.39
5.4.00.0070.02613.23
5.3.290.0040.01811.96
5.3.280.0040.02112.59
5.3.270.0040.02312.66
5.3.260.0060.03112.50
5.3.250.0050.01912.59
5.3.240.0070.02612.61
5.3.230.0040.02312.65
5.3.220.0050.02012.61
5.3.210.0040.02212.54
5.3.200.0060.02212.56
5.3.190.0060.02612.53
5.3.180.0060.01912.68
5.3.170.0040.02912.64
5.3.160.0070.01912.63
5.3.150.0080.01912.71
5.3.140.0050.02212.66
5.3.130.0060.02312.66
5.3.120.0070.02012.67
5.3.110.0040.02012.55
5.3.100.0060.02712.42
5.3.90.0040.02012.42
5.3.80.0060.02412.34
5.3.70.0080.02112.37
5.3.60.0070.01912.39
5.3.50.0030.02212.42
5.3.40.0040.02312.38
5.3.30.0060.02412.38
5.3.20.0050.02012.30
5.3.10.0110.02112.22
5.3.00.0040.02012.20
5.2.170.0070.04711.22
5.2.160.0070.04011.14
5.2.150.0070.06311.32
5.2.140.0030.05311.30
5.2.130.0130.05011.32
5.2.120.0070.04011.11
5.2.110.0070.05711.17
5.2.100.0030.04011.27
5.2.90.0100.03711.16
5.2.80.0170.03011.09
5.2.70.0230.03311.09
5.2.60.0030.04711.11
5.2.50.0070.05710.98
5.2.40.0130.03710.96
5.2.30.0170.04710.94
5.2.20.0170.04311.11
5.2.10.0000.04311.02
5.2.00.0130.03710.68
5.1.60.0030.0509.99
5.1.50.0030.03310.00
5.1.40.0100.03710.07
5.1.30.0030.04310.49
5.1.20.0130.03010.44
5.1.10.0100.03010.03
5.1.00.0030.04010.13
5.0.50.0000.0338.38
5.0.40.0070.0238.47
5.0.30.0000.0538.46
5.0.20.0070.0278.19
5.0.10.0070.0338.00
5.0.00.0070.0538.11
4.4.90.0000.0276.99
4.4.80.0030.0206.99
4.4.70.0000.0236.99
4.4.60.0070.0206.99
4.4.50.0030.0236.99
4.4.40.0100.0276.99
4.4.30.0070.0206.99
4.4.20.0130.0106.99
4.4.10.0030.0236.99
4.4.00.0070.0336.99
4.3.110.0030.0306.99
4.3.100.0000.0236.99
4.3.90.0070.0176.99
4.3.80.0000.0376.99
4.3.70.0030.0176.99
4.3.60.0030.0206.99
4.3.50.0000.0236.99
4.3.40.0030.0306.99
4.3.30.0000.0236.99
4.3.20.0030.0206.99
4.3.10.0000.0276.99
4.3.00.0100.0237.32

preferences:
48.69 ms | 400 KiB | 5 Q