3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestA{ public $member; public function TestA(){ $this->member = 'testA'; } public function __construct(){ $this->member = 'testB'; } } $a = new TestA(); echo $a->member;

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.0100.00518.16
8.3.50.0160.00323.04
8.3.40.0090.00618.89
8.3.30.0050.01018.81
8.3.20.0040.00420.00
8.3.10.0150.00423.70
8.3.00.0120.00317.25
8.2.180.0110.01116.32
8.2.170.0150.00622.96
8.2.160.0070.01420.39
8.2.150.0070.01124.18
8.2.140.0080.00024.66
8.2.130.0150.00326.16
8.2.120.0000.00821.16
8.2.110.0000.00920.96
8.2.100.0070.00417.72
8.2.90.0040.00417.84
8.2.80.0040.00417.97
8.2.70.0100.00317.25
8.2.60.0040.00417.91
8.2.50.0030.00518.07
8.2.40.0070.00319.88
8.2.30.0030.00618.18
8.2.20.0000.00717.68
8.2.10.0070.00018.04
8.2.00.0030.00417.57
8.1.280.0100.01025.92
8.1.270.0090.00023.91
8.1.260.0020.00526.35
8.1.250.0110.00728.09
8.1.240.0060.00322.67
8.1.230.0060.00620.78
8.1.220.0000.00917.74
8.1.210.0050.00318.83
8.1.200.0060.00317.36
8.1.190.0000.00817.23
8.1.180.0050.00319.14
8.1.170.0000.00918.36
8.1.160.0040.00422.00
8.1.150.0040.00418.83
8.1.140.0050.00317.38
8.1.130.0000.00717.81
8.1.120.0040.00417.32
8.1.110.0040.00417.30
8.1.100.0020.00517.35
8.1.90.0040.00417.41
8.1.80.0030.00317.34
8.1.70.0040.00417.29
8.1.60.0040.00417.48
8.1.50.0040.00417.41
8.1.40.0000.00717.55
8.1.30.0040.00417.54
8.1.20.0000.00817.65
8.1.10.0040.00417.46
8.1.00.0040.00417.48
8.0.300.0040.00420.09
8.0.290.0040.00416.63
8.0.280.0040.00418.39
8.0.270.0070.00017.25
8.0.260.0000.00617.25
8.0.250.0000.00716.98
8.0.240.0000.00716.95
8.0.230.0000.00616.93
8.0.220.0060.00016.70
8.0.210.0000.00816.75
8.0.200.0060.00016.77
8.0.190.0040.00416.76
8.0.180.0030.00316.82
8.0.170.0000.00716.73
8.0.160.0050.00316.70
8.0.150.0030.00616.78
8.0.140.0070.00016.79
8.0.130.0030.00313.24
8.0.120.0030.00516.78
8.0.110.0040.00416.65
8.0.100.0040.00416.69
8.0.90.0000.00816.78
8.0.80.0090.01216.83
8.0.70.0030.00616.87
8.0.60.0000.00716.89
8.0.50.0040.00416.67
8.0.30.0110.00817.07
8.0.20.0120.00817.40
8.0.10.0000.00816.95
8.0.00.0120.00916.96
7.4.330.0020.00215.09
7.4.320.0000.00616.43
7.4.300.0000.00616.48
7.4.290.0030.00316.48
7.4.280.0000.00716.34
7.4.270.0040.00416.48
7.4.260.0040.00416.48
7.4.250.0040.00416.52
7.4.240.0030.00316.43
7.4.230.0000.00716.48
7.4.220.0060.01416.54
7.4.210.0030.01016.40
7.4.200.0000.00716.29
7.4.160.0120.00316.59
7.4.150.0060.01317.40
7.4.140.0090.00917.86
7.4.130.0150.01816.46
7.4.120.0150.00216.64
7.4.110.0140.00416.70
7.4.100.0080.01116.48
7.4.90.0130.00316.59
7.4.80.0130.01019.39
7.4.70.0040.01416.62
7.4.60.0030.01316.32
7.4.50.0040.00416.34
7.4.40.0060.00916.45
7.4.30.0090.00616.39
7.4.00.0000.01515.04
7.3.330.0040.00313.30
7.3.320.0000.00613.34
7.3.310.0000.00616.16
7.3.300.0030.00316.36
7.3.290.0100.00416.34
7.3.280.0080.00816.31
7.3.270.0090.01217.40
7.3.260.0060.01216.56
7.3.250.0120.00716.42
7.3.240.0090.01016.51
7.3.230.0090.00916.39
7.3.210.0140.00316.47
7.3.200.0120.00919.39
7.3.190.0140.00316.48
7.3.180.0030.01316.36
7.3.170.0100.00716.32
7.3.160.0030.01316.60
7.2.330.0120.00616.44
7.2.320.0160.00416.45
7.2.310.0130.00316.86
7.2.300.0060.01016.76
7.2.290.0060.00916.54
7.2.60.0060.00916.90
7.2.00.0030.00919.52
7.1.200.0080.00615.82
7.1.100.0000.01218.23
7.1.70.0030.00617.09
7.1.60.0070.01819.40
7.1.50.0090.01216.94
7.1.00.0170.06022.41
7.0.200.0000.00716.76
7.0.140.0170.06022.11
7.0.60.0100.04719.92
7.0.50.0100.03317.88
7.0.40.0130.05320.18
7.0.30.0430.06720.21
7.0.20.0330.07720.25
7.0.10.0070.07720.19
7.0.00.0070.07320.20
5.6.280.0030.07321.11
5.6.210.0070.05720.48
5.6.200.0130.07018.16
5.6.190.0200.06320.61
5.6.180.0230.07320.50
5.6.170.0230.03320.71
5.6.160.0130.07320.46
5.6.150.0170.07018.12
5.6.140.0100.07718.18
5.6.130.0130.04318.34
5.6.120.0030.04320.91
5.6.110.0030.08721.01
5.6.100.0000.04320.96
5.6.90.0070.09021.00
5.6.80.0100.03320.36
5.5.350.0130.07320.41
5.5.340.0070.03717.98
5.5.330.0070.08320.30
5.5.320.0330.07320.51
5.5.310.0270.06020.34
5.5.300.0200.06717.96
5.5.290.0130.07318.09
5.5.280.0030.06020.88
5.5.270.0100.06720.85
5.5.260.0070.08720.87
5.5.250.0130.03020.62
5.5.240.0130.03320.26
5.4.450.0500.04019.17
5.4.440.0530.04719.28
5.4.430.0370.05019.40
5.4.420.0230.03719.53
5.4.410.0370.04019.18
5.4.400.0100.03319.07
5.4.390.0330.04019.32
5.4.380.0230.05018.75
5.4.370.0230.04318.68
5.4.360.0170.04718.68
5.4.350.0170.05318.77
5.4.340.0070.06018.73
5.4.320.0050.03812.51
5.4.310.0070.04512.51
5.4.300.0080.04212.51
5.4.290.0050.04612.50
5.4.280.0060.03512.40
5.4.270.0070.03512.40
5.4.260.0110.03312.40
5.4.250.0060.03712.40
5.4.240.0050.03712.40
5.4.230.0110.04512.39
5.4.220.0050.05312.39
5.4.210.0050.04912.39
5.4.200.0130.04812.39
5.4.190.0060.04712.39
5.4.180.0040.03912.39
5.4.170.0040.03812.40
5.4.160.0060.03612.39
5.4.150.0060.03612.39
5.4.140.0080.03512.08
5.4.130.0070.03512.07
5.4.120.0050.04212.02
5.4.110.0040.03912.02
5.4.100.0050.03612.02
5.4.90.0020.04412.02
5.4.80.0060.03812.02
5.4.70.0070.03412.01
5.4.60.0030.03812.02
5.4.50.0050.03612.02
5.4.40.0060.03612.01
5.4.30.0030.04012.00
5.4.20.0040.03812.00
5.4.10.0070.03712.00
5.4.00.0080.03311.48
5.3.290.0050.04112.80
5.3.280.0050.03912.70
5.3.270.0060.04412.72
5.3.260.0090.04712.72
5.3.250.0060.03912.72
5.3.240.0050.03812.72
5.3.230.0050.03812.71
5.3.220.0080.03412.68
5.3.210.0100.03812.68
5.3.200.0080.03612.68
5.3.190.0090.03512.68
5.3.180.0060.03612.68
5.3.170.0090.03312.67
5.3.160.0060.03712.67
5.3.150.0040.05412.68
5.3.140.0110.04712.66
5.3.130.0100.05012.66
5.3.120.0110.03712.66
5.3.110.0050.03912.65
5.3.100.0040.03812.12
5.3.90.0040.04112.10
5.3.80.0070.04612.09
5.3.70.0060.03712.10
5.3.60.0080.03412.08
5.3.50.0060.03512.02
5.3.40.0080.03812.02
5.3.30.0060.04111.98
5.3.20.0080.03411.76
5.3.10.0060.03611.73
5.3.00.0080.03611.72
5.2.170.0040.0339.23
5.2.160.0050.0289.23
5.2.150.0050.0309.22
5.2.140.0050.0309.22
5.2.130.0020.0329.18
5.2.120.0050.0279.18
5.2.110.0050.0339.18
5.2.100.0050.0279.18
5.2.90.0030.0309.18
5.2.80.0040.0329.17
5.2.70.0030.0349.18
5.2.60.0040.0319.13
5.2.50.0070.0399.09
5.2.40.0090.0309.07
5.2.30.0040.0299.05
5.2.20.0050.0339.04
5.2.10.0040.0328.94
5.2.00.0050.0318.81
5.1.60.0060.0228.09
5.1.50.0060.0258.09
5.1.40.0050.0238.07
5.1.30.0060.0248.42
5.1.20.0040.0268.44
5.1.10.0050.0248.16
5.1.00.0070.0238.17
5.0.50.0020.0236.64
5.0.40.0040.0206.50
5.0.30.0040.0326.31
5.0.20.0040.0186.27
5.0.10.0030.0216.26
5.0.00.0050.0326.25
4.4.90.0040.0174.78
4.4.80.0040.0144.75
4.4.70.0040.0144.76
4.4.60.0020.0154.76
4.4.50.0050.0164.77
4.4.40.0040.0244.71
4.4.30.0010.0174.75
4.4.20.0020.0164.84
4.4.10.0030.0154.85
4.4.00.0010.0274.76
4.3.110.0030.0164.66
4.3.100.0010.0174.66
4.3.90.0050.0124.63
4.3.80.0060.0234.58
4.3.70.0030.0144.63
4.3.60.0050.0124.63
4.3.50.0020.0164.62
4.3.40.0020.0254.54
4.3.30.0030.0153.30
4.3.20.0010.0173.28
4.3.10.0020.0163.23
4.3.00.0070.01716.02

preferences:
41.62 ms | 401 KiB | 5 Q