3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class PageObject { const X = "Don't print this"; public function __construct() { echo __CLASS__; } } class Test extends PageObject { const X = "OMG"; } $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.60.0070.01018.18
8.3.50.0130.00322.05
8.3.40.0100.01018.81
8.3.30.0070.00718.96
8.3.20.0040.00420.20
8.3.10.0090.00022.15
8.3.00.0000.00822.36
8.2.180.0140.00018.36
8.2.170.0110.00722.96
8.2.160.0100.01018.82
8.2.150.0000.00724.18
8.2.140.0000.00724.66
8.2.130.0030.00526.16
8.2.120.0040.00417.63
8.2.110.0050.00522.26
8.2.100.0040.00717.91
8.2.90.0050.00318.03
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0040.00418.04
8.2.50.0030.00518.07
8.2.40.0000.00817.91
8.2.30.0040.00418.06
8.2.20.0000.00717.46
8.2.10.0030.00617.53
8.2.00.0070.00017.59
8.1.280.0180.00325.92
8.1.270.0000.00821.93
8.1.260.0050.00226.35
8.1.250.0050.00228.09
8.1.240.0060.00322.48
8.1.230.0080.00420.88
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0060.00317.12
8.1.190.0030.00617.53
8.1.180.0060.00318.10
8.1.170.0040.00418.43
8.1.160.0050.00321.86
8.1.150.0000.00718.48
8.1.140.0000.00717.34
8.1.130.0040.00417.80
8.1.120.0070.00017.45
8.1.110.0000.00717.27
8.1.100.0000.00717.36
8.1.90.0040.00417.35
8.1.80.0000.00717.27
8.1.70.0030.00317.29
8.1.60.0030.00617.62
8.1.50.0000.00817.49
8.1.40.0040.00417.42
8.1.30.0040.00417.61
8.1.20.0040.00417.65
8.1.10.0000.00717.55
8.1.00.0040.00417.40
8.0.300.0000.00720.03
8.0.290.0000.00716.75
8.0.280.0030.00318.38
8.0.270.0000.00817.30
8.0.260.0030.00316.73
8.0.250.0070.00016.92
8.0.240.0070.00016.73
8.0.230.0030.00316.88
8.0.220.0050.00316.86
8.0.210.0030.00316.86
8.0.200.0000.00616.84
8.0.190.0000.00816.84
8.0.180.0030.00316.85
8.0.170.0040.00416.79
8.0.160.0000.00716.69
8.0.150.0040.00416.79
8.0.140.0050.00316.82
8.0.130.0030.00313.21
8.0.120.0000.00816.84
8.0.110.0000.00716.82
8.0.100.0070.00016.63
8.0.90.0000.00716.88
8.0.80.0090.00916.77
8.0.70.0000.00716.84
8.0.60.0040.00416.68
8.0.50.0040.00416.67
8.0.30.0100.01117.06
8.0.20.0130.00717.40
8.0.10.0070.00016.95
8.0.00.0110.01016.77
7.4.330.0000.00515.03
7.4.320.0000.00616.55
7.4.300.0000.00716.50
7.4.290.0070.00016.35
7.4.280.0000.00716.48
7.4.270.0050.00216.61
7.4.260.0000.00716.41
7.4.250.0070.00016.56
7.4.240.0000.00716.58
7.4.230.0030.00316.62
7.4.220.0060.01116.67
7.4.210.0090.00916.47
7.4.200.0070.00016.69
7.4.190.0030.00516.71
7.4.160.0050.01016.55
7.4.150.0130.00317.40
7.4.140.0120.00917.86
7.4.130.0150.00516.47
7.4.120.0150.00616.50
7.4.110.0130.01316.47
7.4.100.0070.01016.63
7.4.90.0120.01216.52
7.4.80.0080.00819.39
7.4.70.0120.00616.45
7.4.60.0060.01016.23
7.4.50.0030.00516.40
7.4.40.0070.00722.77
7.4.30.0120.00316.39
7.4.00.0030.01314.95
7.3.330.0000.00613.19
7.3.320.0050.00013.04
7.3.310.0050.00216.12
7.3.300.0030.00316.23
7.3.290.0030.01016.18
7.3.280.0090.00616.16
7.3.270.0100.00717.40
7.3.260.0000.02316.27
7.3.250.0130.01116.18
7.3.240.0000.01716.64
7.3.230.0090.00916.39
7.3.210.0030.01416.16
7.3.200.0130.00919.39
7.3.190.0190.00316.24
7.3.180.0000.01516.18
7.3.170.0040.01416.27
7.3.160.0070.00716.55
7.3.120.0030.00914.38
7.3.10.0000.01116.45
7.3.00.0160.00016.34
7.2.330.0070.01016.49
7.2.320.0150.00616.30
7.2.310.0100.00616.60
7.2.300.0120.01116.58
7.2.290.0110.00716.61
7.2.130.0100.00716.84
7.2.120.0110.00716.54
7.2.110.0060.01116.46
7.2.100.0130.00316.43
7.2.90.0140.00316.60
7.2.80.0110.00416.71
7.2.70.0150.00216.48
7.2.60.0040.00816.57
7.2.50.0080.00816.65
7.2.40.0100.00716.38
7.2.30.0030.00916.62
7.2.20.0070.00716.72
7.2.10.0070.00716.49
7.2.00.0040.00816.84
7.1.250.0000.00915.27
7.1.70.0000.01117.03
7.1.60.0040.01919.82
7.1.50.0060.00916.95
7.1.00.0030.08022.31
7.0.200.0100.00716.76
7.0.140.0030.07322.01
7.0.60.0100.07320.00
7.0.50.0030.05717.87
7.0.40.0130.07720.02
7.0.30.0200.04020.11
7.0.20.0300.09020.26
7.0.10.0270.07720.07
7.0.00.0130.08320.07
5.6.280.0070.07021.01
5.6.210.0070.04020.77
5.6.200.0100.05318.15
5.6.190.0030.08320.64
5.6.180.4030.04720.64
5.6.170.0400.04020.53
5.6.160.0030.08720.39
5.6.150.0030.04018.29
5.6.140.0000.04318.17
5.6.130.0030.07318.23
5.6.120.0130.07720.95
5.6.110.0100.07321.03
5.6.100.0100.05320.98
5.6.90.0130.07321.11
5.6.80.0070.03720.39
5.6.70.0270.08020.45
5.5.350.0030.08020.38
5.5.340.0170.07017.95
5.5.330.0100.03720.32
5.5.320.0070.05020.27
5.5.310.0300.08020.34
5.5.300.0030.06318.07
5.5.290.0000.08718.03
5.5.280.0100.08720.87
5.5.270.0070.05320.84
5.5.260.0070.08320.77
5.5.250.0070.06320.68
5.5.240.0130.07020.36
5.4.450.0730.06019.47
5.4.440.0670.05319.46
5.4.430.0130.05019.68
5.4.420.0100.05319.68
5.4.410.0170.05719.48
5.4.400.1470.00018.85
5.4.390.1700.00018.50
5.4.380.0230.05318.46
5.4.370.0230.05018.52
5.4.360.0370.04718.55
5.4.350.0330.05018.80
5.4.340.0300.04718.71
5.4.320.0070.03712.50
5.4.310.0080.04112.50
5.4.300.0080.03812.50
5.4.290.0050.04212.50
5.4.280.0070.04012.39
5.4.270.0130.05018.98
5.4.260.0100.06018.91
5.4.250.0270.05718.95
5.4.240.0030.05718.96
5.4.230.0130.04718.96
5.4.220.0170.07018.92
5.4.210.0130.06319.05
5.4.200.0100.05018.77
5.4.190.0200.05318.79
5.4.180.0100.05718.91
5.4.170.0070.07018.75
5.4.160.0130.05718.75
5.4.150.0100.07718.71
5.4.140.0030.05316.60
5.4.130.0100.06716.63
5.4.120.0070.04716.52
5.4.110.0100.06316.49
5.4.100.0130.04016.43
5.4.90.0070.04716.37
5.4.80.0000.06016.55
5.4.70.0100.06716.47
5.4.60.0030.06316.34
5.4.50.0130.06016.42
5.4.40.0070.05716.48
5.4.30.0070.05716.48
5.4.20.0130.05316.46
5.4.10.0030.05316.45
5.4.00.0030.06015.91
5.3.290.0060.04012.80
5.3.280.0070.06714.68
5.3.270.0130.07314.74
5.3.260.0070.07314.43
5.3.250.0170.06314.62
5.3.240.0070.05014.59
5.3.230.0100.05714.50
5.3.220.0070.05314.70
5.3.210.0200.05014.57
5.3.200.0100.06014.57
5.3.190.0100.06014.47
5.3.180.0170.05714.65
5.3.170.0000.05714.56
5.3.160.0130.06714.70
5.3.150.0070.05014.79
5.3.140.0100.06314.57
5.3.130.0070.05714.53
5.3.120.0070.07314.76
5.3.110.0170.06314.64
5.3.100.0100.05014.17
5.3.90.0130.04313.99
5.3.80.0100.04714.00
5.3.70.0070.07013.94
5.3.60.0100.05313.98
5.3.50.0000.06014.03
5.3.40.0030.05313.86
5.3.30.0070.05313.94
5.3.20.0100.05713.69
5.3.10.0070.06713.73
5.3.00.0070.05713.62
5.2.170.0100.05711.14
5.2.160.0000.05011.05
5.2.150.0070.05711.32
5.2.140.0070.04011.14
5.2.130.0030.05011.13
5.2.120.0130.04711.11
5.2.110.0030.05711.10
5.2.100.0000.04311.07
5.2.90.0070.04311.06
5.2.80.0130.03711.25
5.2.70.0070.04010.93
5.2.60.0070.04011.05
5.2.50.0100.03311.00
5.2.40.0070.05011.09
5.2.30.0030.04311.05
5.2.20.0000.04310.86
5.2.10.0100.03710.93
5.2.00.0130.04310.79
5.1.60.0070.03710.04
5.1.50.0070.04310.19
5.1.40.0000.0539.95
5.1.30.0100.03010.33
5.1.20.0070.03310.43
5.1.10.0070.04710.14
5.1.00.0030.0379.90
5.0.50.0100.0338.52
5.0.40.0070.0338.37
5.0.30.0070.0408.31
5.0.20.0030.0278.20
5.0.10.0030.0408.22
5.0.00.0070.0378.35
4.4.90.0030.0236.85
4.4.80.0000.0236.85
4.4.70.0070.0176.85
4.4.60.0000.0236.85
4.4.50.0030.0276.85
4.4.40.0000.0336.85
4.4.30.0100.0236.85
4.4.20.0030.0206.85
4.4.10.0000.0236.85
4.4.00.0070.0406.85
4.3.110.0070.0206.85
4.3.100.0070.0276.85
4.3.90.0030.0276.85
4.3.80.0030.0306.85
4.3.70.0030.0206.85
4.3.60.0100.0206.85
4.3.50.0000.0236.85
4.3.40.0070.0276.85
4.3.30.0030.0236.85
4.3.20.0070.0236.85
4.3.10.0000.0236.85
4.3.00.0070.0237.39

preferences:
48.54 ms | 401 KiB | 5 Q