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.0140.00316.38
8.3.50.0080.01021.91
8.3.40.0110.00418.54
8.3.30.0030.01019.22
8.3.20.0070.00020.19
8.3.10.0040.00423.52
8.3.00.0040.00419.38
8.2.180.0070.01016.63
8.2.170.0030.00922.96
8.2.160.0070.01020.35
8.2.150.0090.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0070.00022.26
8.2.110.0030.00621.18
8.2.100.0090.00317.72
8.2.90.0070.00019.21
8.2.80.0030.00517.97
8.2.70.0060.00317.63
8.2.60.0000.00717.92
8.2.50.0030.00619.23
8.2.40.0080.00018.22
8.2.30.0030.00618.08
8.2.20.0050.00317.68
8.2.10.0080.00018.12
8.2.00.0070.00317.72
8.1.280.0140.00725.92
8.1.270.0000.00822.09
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0030.00719.13
8.1.230.0050.00819.16
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0000.00817.23
8.1.190.0050.00317.53
8.1.180.0080.00418.10
8.1.170.0040.00418.53
8.1.160.0000.00722.02
8.1.150.0030.00518.63
8.1.140.0050.00217.40
8.1.130.0030.00317.75
8.1.120.0000.00817.35
8.1.110.0020.00517.48
8.1.100.0000.00717.46
8.1.90.0000.00717.38
8.1.80.0070.00017.41
8.1.70.0030.00317.36
8.1.60.0030.00517.54
8.1.50.0000.00717.50
8.1.40.0030.00617.49
8.1.30.0030.00617.54
8.1.20.0040.00417.65
8.1.10.0040.00417.46
8.1.00.0040.00417.52
8.0.300.0090.00019.02
8.0.290.0030.00417.30
8.0.280.0060.00018.44
8.0.270.0030.00417.17
8.0.260.0050.00317.13
8.0.250.0000.00716.92
8.0.240.0000.00616.90
8.0.230.0030.00316.84
8.0.220.0070.00016.95
8.0.210.0000.00716.72
8.0.200.0030.00516.85
8.0.190.0000.00716.88
8.0.180.0040.00416.82
8.0.170.0040.00416.80
8.0.160.0070.00016.84
8.0.150.0000.00716.79
8.0.140.0050.00316.77
8.0.130.0070.00013.29
8.0.120.0040.00416.85
8.0.110.0040.00416.86
8.0.100.0040.00416.89
8.0.90.0050.00216.69
8.0.80.0040.01116.93
8.0.70.0000.00716.96
8.0.60.0000.00816.73
8.0.50.0000.00816.71
8.0.30.0080.01117.06
8.0.20.0120.00717.40
8.0.10.0050.00316.85
8.0.00.0140.00316.66
7.4.330.0000.00515.00
7.4.320.0030.00316.59
7.4.300.0030.00316.52
7.4.290.0030.00316.52
7.4.280.0000.00716.63
7.4.270.0050.00316.56
7.4.260.0040.00416.55
7.4.250.0070.00016.41
7.4.240.0000.00716.54
7.4.230.0030.00316.62
7.4.220.0070.01216.63
7.4.210.0080.00716.57
7.4.200.0080.00016.60
7.4.190.0000.00716.48
7.4.160.0130.00316.62
7.4.150.0100.00717.40
7.4.140.0140.00317.86
7.4.130.0090.00816.45
7.4.120.0080.00816.49
7.4.110.0060.01116.37
7.4.100.0100.00716.44
7.4.90.0120.00616.40
7.4.80.0120.00619.39
7.4.70.0110.00616.42
7.4.60.0090.00916.62
7.4.50.0040.00416.45
7.4.40.0100.00522.77
7.4.30.0110.00516.51
7.4.00.0000.01514.83
7.3.330.0070.00013.14
7.3.320.0030.00313.17
7.3.310.0000.00716.38
7.3.300.0030.00316.37
7.3.290.0110.00316.44
7.3.280.0100.00516.33
7.3.270.0160.00317.40
7.3.260.0100.00716.25
7.3.250.0060.01116.32
7.3.240.0030.01316.35
7.3.230.0090.00616.39
7.3.210.0070.01016.67
7.3.200.0120.00619.39
7.3.190.0040.01516.43
7.3.180.0070.00716.53
7.3.170.0130.00716.47
7.3.160.0060.00916.38
7.3.120.0110.00414.66
7.2.330.0120.00616.30
7.2.320.0070.01116.31
7.2.310.0130.00716.79
7.2.300.0060.00916.74
7.2.290.0120.00916.64
7.2.00.0090.00619.26
7.1.100.0000.01118.01
7.1.70.0000.01417.05
7.1.60.0080.00419.33
7.1.50.0000.02216.88
7.1.00.0070.07322.41
7.0.200.0030.00616.71
7.0.140.0000.07722.00
7.0.60.0100.08019.75
7.0.50.0000.09017.87
7.0.40.0100.04320.24
7.0.30.0000.05720.09
7.0.20.0300.07720.22
7.0.10.0100.07320.33
7.0.00.0100.04720.27
5.6.280.0000.07720.91
5.6.210.0100.07720.57
5.6.200.0130.07018.20
5.6.190.0170.03320.33
5.6.180.0230.07020.63
5.6.170.0270.05320.40
5.6.160.0100.08320.56
5.6.150.0030.06318.15
5.6.140.0030.09018.17
5.6.130.0030.04718.28
5.6.120.0170.08321.12
5.6.110.0030.08721.12
5.6.100.0100.07020.98
5.6.90.0130.04720.88
5.6.80.0130.06320.48
5.6.70.3400.02320.39
5.5.350.0170.08020.42
5.5.340.0170.05718.07
5.5.330.0100.06720.27
5.5.320.0000.04320.51
5.5.310.0330.04320.34
5.5.300.0030.05718.02
5.5.290.0130.08017.95
5.5.280.0070.03720.66
5.5.270.0130.07720.86
5.5.260.0100.08020.96
5.5.250.0070.07320.57
5.5.240.0200.04020.27
5.4.450.0870.08719.32
5.4.440.0800.06319.18
5.4.430.0730.05019.35
5.4.420.0670.06019.47
5.4.410.0770.05719.16
5.4.400.1100.04318.88
5.4.390.0730.05019.29
5.4.380.0130.05718.74
5.4.370.0230.05318.58
5.4.360.0330.06018.79
5.4.350.0370.05718.72
5.4.340.0370.04718.63
5.4.320.0060.03912.50
5.4.310.0080.04812.49
5.4.300.0100.03612.50
5.4.290.0100.03312.50
5.4.280.0060.04412.37
5.4.270.0080.05112.37
5.4.260.0080.03912.37
5.4.250.0200.04612.37
5.4.240.0140.04612.37
5.4.230.0100.05412.36
5.4.220.0070.06012.36
5.4.210.0090.05812.36
5.4.200.0080.06012.36
5.4.190.0090.05812.36
5.4.180.0080.05512.36
5.4.170.0090.05812.37
5.4.160.0120.05212.36
5.4.150.0110.04912.36
5.4.140.0120.04912.05
5.4.130.0130.04612.03
5.4.120.0110.05311.99
5.4.110.0110.05611.99
5.4.100.0100.04911.98
5.4.90.0120.05111.99
5.4.80.0100.05511.98
5.4.70.0110.04911.98
5.4.60.0140.04411.98
5.4.50.0120.07111.98
5.4.40.0070.05111.96
5.4.30.0110.05511.96
5.4.20.0080.05411.96
5.4.10.0080.05411.96
5.4.00.0120.05511.45
5.3.290.0040.04212.80
5.3.280.0080.06112.70
5.3.270.0130.06312.73
5.3.260.0140.06612.71
5.3.250.0050.07412.72
5.3.240.0120.06412.71
5.3.230.0110.06212.70
5.3.220.0140.05912.68
5.3.210.0240.06812.68
5.3.200.0080.07112.68
5.3.190.0100.06012.68
5.3.180.0100.06312.68
5.3.170.0090.05412.67
5.3.160.0070.05512.67
5.3.150.0070.05612.67
5.3.140.0110.05212.66
5.3.130.0110.05312.66
5.3.120.0110.06912.66
5.3.110.0110.06012.66
5.3.100.0090.05512.12
5.3.90.0100.05612.08
5.3.80.0110.05612.08
5.3.70.0120.05512.07
5.3.60.0110.05612.06
5.3.50.0140.05012.00
5.3.40.0100.06412.00
5.3.30.0090.06011.95
5.3.20.0150.05511.74
5.3.10.0120.05611.70
5.3.00.0100.06311.69
5.2.170.0100.0519.18
5.2.160.0110.0529.19
5.2.150.0090.0559.19
5.2.140.0040.0569.18
5.2.130.0080.0489.14
5.2.120.0060.0529.14
5.2.110.0110.0499.15
5.2.100.0090.0499.15
5.2.90.0070.0519.15
5.2.80.0070.0499.14
5.2.70.0080.0469.14
5.2.60.0090.0419.10
5.2.50.0090.0459.07
5.2.40.0130.0539.04
5.2.30.0090.0549.02
5.2.20.0070.0539.02
5.2.10.0080.0588.91
5.2.00.0070.0408.79
5.1.60.0090.0308.07
5.1.50.0080.0358.07
5.1.40.0070.0298.05
5.1.30.0050.0318.40
5.1.20.0080.0418.43
5.1.10.0090.0268.15
5.1.00.0080.0368.15
5.0.50.0090.0276.62
5.0.40.0060.0316.48
5.0.30.0060.0396.29
5.0.20.0050.0276.26
5.0.10.0060.0286.24
5.0.00.0060.0426.23
4.4.90.0050.0224.78
4.4.80.0070.0304.75
4.4.70.0100.0254.75
4.4.60.0070.0314.75
4.4.50.0100.0254.77
4.4.40.0020.0344.71
4.4.30.0060.0204.75
4.4.20.0110.0344.85
4.4.10.0100.0444.85
4.4.00.0070.0534.76
4.3.110.0070.0384.67
4.3.100.0060.0414.66
4.3.90.0130.0434.63
4.3.80.0020.0514.58
4.3.70.0060.0184.63
4.3.60.0040.0224.63
4.3.50.0040.0244.63
4.3.40.0060.0304.54
4.3.30.0110.0353.29
4.3.20.0050.0213.26
4.3.10.0100.0223.23
4.3.00.0000.01710.30

preferences:
35.18 ms | 401 KiB | 5 Q