3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { const ALPHA = 1, BETA = 2, GAMMA = 3; public $a = "apple", $b = "bread", $c = "candy"; public function __construct() { // do something } } $t = new Test; echo $t->ALPHA, $t->c, $t->$a;

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.0170.00316.75
8.3.50.0070.01122.12
8.3.40.0090.00618.71
8.3.30.0030.01018.99
8.3.20.0070.00020.20
8.3.10.0040.00423.61
8.3.00.0000.00919.38
8.2.180.0090.00618.47
8.2.170.0150.00622.96
8.2.160.0130.00320.38
8.2.150.0080.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00826.16
8.2.120.0070.00022.29
8.2.110.0040.00422.31
8.2.100.0080.00418.03
8.2.90.0040.00419.23
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0000.00918.34
8.2.30.0000.00818.11
8.2.20.0050.00317.79
8.2.10.0040.00418.11
8.2.00.0080.00017.79
8.1.280.0120.00925.92
8.1.270.0000.00822.19
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0000.00823.85
8.1.230.0070.00419.09
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0030.00617.35
8.1.190.0000.00817.40
8.1.180.0030.00718.10
8.1.170.0000.00918.52
8.1.160.0070.00021.92
8.1.150.0070.00018.63
8.1.140.0000.00817.43
8.1.130.0000.00817.70
8.1.120.0000.00717.51
8.1.110.0030.00517.48
8.1.100.0000.00717.44
8.1.90.0040.00417.34
8.1.80.0040.00417.45
8.1.70.0000.00717.37
8.1.60.0030.00617.52
8.1.50.0030.00617.48
8.1.40.0000.00717.34
8.1.30.0000.00817.61
8.1.20.0040.00417.69
8.1.10.0040.00417.52
8.1.00.0070.00017.55
8.0.300.0060.00319.02
8.0.290.0040.00417.15
8.0.280.0030.00318.44
8.0.270.0030.00317.27
8.0.260.0000.00617.27
8.0.250.0030.00316.98
8.0.240.0030.00317.02
8.0.230.0030.00316.95
8.0.220.0070.00017.00
8.0.210.0070.00016.96
8.0.200.0000.00717.02
8.0.190.0050.00316.96
8.0.180.0030.00516.98
8.0.170.0000.00816.95
8.0.160.0050.00216.84
8.0.150.0040.00416.80
8.0.140.0040.00416.76
8.0.130.0030.00313.36
8.0.120.0020.00516.82
8.0.110.0080.00016.90
8.0.100.0000.00716.82
8.0.90.0050.00216.95
8.0.80.0070.00716.86
8.0.70.0070.00017.02
8.0.60.0000.00716.78
8.0.50.0030.00517.01
8.0.30.0090.01017.28
8.0.20.0090.00917.40
8.0.10.0080.00017.02
8.0.00.0090.00916.87
7.4.330.0020.00215.00
7.4.320.0030.00316.56
7.4.300.0000.00716.46
7.4.290.0000.00816.46
7.4.280.0040.00416.53
7.4.270.0040.00416.60
7.4.260.0000.00716.48
7.4.250.0070.00016.57
7.4.240.0020.00516.60
7.4.230.0040.00416.57
7.4.220.0060.01216.56
7.4.210.0020.01316.54
7.4.200.0030.00316.43
7.4.190.0030.00316.67
7.4.160.0030.01216.53
7.4.150.0130.00617.40
7.4.140.0120.00617.86
7.4.130.0080.00916.46
7.4.120.0060.01116.55
7.4.110.0150.00616.37
7.4.100.0060.01216.37
7.4.90.0130.00416.50
7.4.80.0090.01419.39
7.4.70.0030.01416.69
7.4.60.0120.00416.50
7.4.50.0000.00716.35
7.4.40.0060.00922.77
7.4.30.0070.01016.64
7.4.00.0090.00614.78
7.3.330.0030.00313.14
7.3.320.0000.00513.17
7.3.310.0070.00016.39
7.3.300.0030.00316.23
7.3.290.0100.00516.35
7.3.280.0100.00716.37
7.3.270.0180.00417.40
7.3.260.0120.00616.36
7.3.250.0120.00916.45
7.3.240.0070.01516.64
7.3.230.0120.01216.39
7.3.210.0030.01416.47
7.3.200.0130.01219.39
7.3.190.0070.01016.43
7.3.180.0060.00916.32
7.3.170.0130.00316.33
7.3.160.0040.01316.39
7.3.120.0040.00714.66
7.3.10.0160.00816.14
7.3.00.0040.02016.54
7.2.330.0090.00816.60
7.2.320.0090.00916.73
7.2.310.0120.00816.71
7.2.300.0110.00616.46
7.2.290.0110.00616.32
7.2.130.0060.01416.27
7.2.120.0090.00516.29
7.2.110.0090.00616.04
7.2.100.0110.01416.48
7.2.90.0160.00316.02
7.2.80.0160.00416.11
7.2.70.0180.00516.39
7.2.60.0100.00916.41
7.2.50.0140.01016.71
7.2.40.0070.00716.20
7.2.30.0080.01116.58
7.2.20.0100.00616.21
7.2.10.0180.00316.25
7.2.00.0060.01017.92
7.1.250.0060.01215.10
7.1.200.0070.00715.38
7.1.100.0070.00718.00
7.1.70.0100.00017.02
7.1.60.0060.01319.33
7.1.50.0120.00916.79
7.1.00.0030.04022.41
7.0.200.0070.00316.88
7.0.140.0030.07022.16
7.0.60.0170.07720.05
7.0.50.0030.04017.72
7.0.40.0000.05020.04
7.0.30.0400.04020.12
7.0.20.0200.04320.13
7.0.10.0300.07720.08
7.0.00.0100.07020.11
5.6.280.0000.07721.11
5.6.210.0000.07720.67
5.6.200.0030.06718.29
5.6.190.0170.03020.60
5.6.180.0300.04020.64
5.6.170.0230.04720.47
5.6.160.0000.04320.55
5.6.150.0030.05318.19
5.6.140.0000.04018.23
5.6.130.0130.08018.13
5.6.120.0130.08321.00
5.6.110.0100.07020.99
5.6.100.0070.08321.14
5.6.90.0030.09020.97
5.6.80.0070.06320.38
5.6.70.4100.03020.40
5.5.350.0030.08320.30
5.5.340.0030.03717.95
5.5.330.0070.07020.56
5.5.320.0300.05720.33
5.5.310.0330.04020.29
5.5.300.0130.06717.97
5.5.290.0030.05317.93
5.5.280.0070.08720.65
5.5.270.0070.03720.76
5.5.260.0100.08720.68
5.5.250.0000.07320.46
5.5.240.0170.03020.19
5.4.450.0170.05019.59
5.4.440.0970.06319.48
5.4.430.0600.08719.61
5.4.420.0130.08019.55
5.4.410.0870.05719.35
5.4.400.0070.06318.98
5.4.390.0400.07719.30
5.4.380.0330.05718.80
5.4.370.0230.05318.61
5.4.360.0370.04718.47
5.4.350.0330.05018.72
5.4.340.0200.05318.78
5.4.320.0070.03612.50
5.4.310.0110.05012.50
5.4.300.0060.04612.50
5.4.290.0050.04412.50
5.4.280.0080.03512.37
5.4.270.0090.03712.37
5.4.260.0080.04012.37
5.4.250.0090.04012.37
5.4.240.0090.03712.37
5.4.230.0100.03812.36
5.4.220.0080.04012.36
5.4.210.0100.03712.36
5.4.200.0070.05412.36
5.4.190.0080.05712.36
5.4.180.0130.05112.36
5.4.170.0100.05312.37
5.4.160.0100.05112.37
5.4.150.0090.05112.36
5.4.140.0110.05312.04
5.4.130.0100.05512.03
5.4.120.0130.05211.99
5.4.110.0190.09211.98
5.4.100.0090.05111.99
5.4.90.0090.05911.99
5.4.80.0090.05911.99
5.4.70.0080.06111.98
5.4.60.0140.05411.98
5.4.50.0110.05811.98
5.4.40.0090.05611.96
5.4.30.0120.05611.96
5.4.20.0120.05711.96
5.4.10.0050.06311.96
5.4.00.0080.05711.45
5.3.290.0090.04112.80
5.3.280.0150.06812.70
5.3.270.0100.05512.73
5.3.260.0080.05912.72
5.3.250.0160.05012.72
5.3.240.0210.04712.72
5.3.230.0100.05212.70
5.3.220.0100.05312.68
5.3.210.0110.06212.68
5.3.200.0110.05912.68
5.3.190.0110.05512.68
5.3.180.0090.05712.67
5.3.170.0070.05612.67
5.3.160.0090.05512.67
5.3.150.0100.05712.67
5.3.140.0080.05612.66
5.3.130.0120.05712.66
5.3.120.0140.05112.66
5.3.110.0130.05412.66
5.3.100.0170.04712.12
5.3.90.0190.05612.08
5.3.80.0120.05612.07
5.3.70.0120.05812.07
5.3.60.0110.05612.07
5.3.50.0080.05612.00
5.3.40.0070.05212.00
5.3.30.0070.05211.95
5.3.20.0100.05111.73
5.3.10.0070.05411.70
5.3.00.0110.05111.69
5.2.170.0110.0399.19
5.2.160.0130.0379.18
5.2.150.0080.0419.18
5.2.140.0030.0459.18
5.2.130.0120.0399.14
5.2.120.0080.0409.14
5.2.110.0070.0399.15
5.2.100.0100.0429.15
5.2.90.0120.0349.15
5.2.80.0050.0419.14
5.2.70.0090.0409.14
5.2.60.0130.0329.09
5.2.50.0070.0389.06
5.2.40.0080.0309.04
5.2.30.0050.0409.02
5.2.20.0100.0339.00
5.2.10.0080.0388.91
5.2.00.0090.0408.79
5.1.60.0060.0358.07
5.1.50.0100.0328.07
5.1.40.0090.0448.05
5.1.30.0070.0378.39
5.1.20.0050.0408.42
5.1.10.0090.0388.14
5.1.00.0040.0398.14
5.0.50.0040.0316.62
5.0.40.0080.0276.48
5.0.30.0050.0476.29
5.0.20.0050.0306.26
5.0.10.0060.0346.24
5.0.00.0060.0466.22
4.4.90.0050.0504.78
4.4.80.0050.0314.76
4.4.70.0090.0234.76
4.4.60.0060.0234.75
4.4.50.0040.0274.77
4.4.40.0050.0384.71
4.4.30.0040.0444.76
4.4.20.0060.0214.84
4.4.10.0060.0214.85
4.4.00.0060.0334.76
4.3.110.0040.0254.67
4.3.100.0030.0254.66
4.3.90.0100.0314.63
4.3.80.0030.0424.58
4.3.70.0030.0264.63
4.3.60.0060.0284.63
4.3.50.0070.0284.62
4.3.40.0060.0434.54
4.3.30.0050.0293.28
4.3.20.0060.0333.26
4.3.10.0030.0233.23
4.3.00.0030.01710.30

preferences:
45.7 ms | 401 KiB | 5 Q