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'; } } $x = new TestA(); echo $x->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.70.0150.00016.63
8.3.60.0070.00716.73
8.3.50.0090.01122.91
8.3.40.0040.01118.57
8.3.30.0070.01019.22
8.3.20.0040.00420.21
8.3.10.0000.00723.65
8.3.00.0040.00417.63
8.2.180.0140.00416.63
8.2.170.0100.00722.96
8.2.160.0070.00720.36
8.2.150.0050.00324.18
8.2.140.0050.00224.66
8.2.130.0000.00726.16
8.2.120.0060.00321.04
8.2.110.0060.00322.26
8.2.100.0110.00017.47
8.2.90.0090.00019.17
8.2.80.0040.00417.97
8.2.70.0050.00317.50
8.2.60.0030.00618.05
8.2.50.0000.00818.07
8.2.40.0040.00418.22
8.2.30.0020.00518.11
8.2.20.0050.00317.73
8.2.10.0050.00217.90
8.2.00.0000.00817.72
8.1.280.0070.01025.92
8.1.270.0030.00524.02
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0090.00023.84
8.1.230.0030.00917.42
8.1.220.0080.00017.74
8.1.210.0030.00518.77
8.1.200.0000.01017.36
8.1.190.0000.00717.23
8.1.180.0000.00818.10
8.1.170.0000.01118.54
8.1.160.0000.00821.93
8.1.150.0040.00418.88
8.1.140.0050.00317.38
8.1.130.0000.00717.82
8.1.120.0040.00417.37
8.1.110.0040.00417.45
8.1.100.0070.00017.30
8.1.90.0000.00717.41
8.1.80.0000.00717.41
8.1.70.0000.00717.36
8.1.60.0050.00317.63
8.1.50.0060.00317.49
8.1.40.0000.00817.39
8.1.30.0030.00517.63
8.1.20.0000.00817.56
8.1.10.0040.00417.47
8.1.00.0040.00417.50
8.0.300.0030.00618.77
8.0.290.0000.00716.63
8.0.280.0030.00318.36
8.0.270.0040.00417.36
8.0.260.0030.00317.13
8.0.250.0000.00716.86
8.0.240.0040.00416.89
8.0.230.0000.00716.87
8.0.220.0000.00816.82
8.0.210.0030.00316.76
8.0.200.0070.00016.89
8.0.190.0000.00816.85
8.0.180.0000.00816.91
8.0.170.0080.00016.90
8.0.160.0000.00816.88
8.0.150.0060.00316.75
8.0.140.0080.00316.68
8.0.130.0000.00513.22
8.0.120.0000.00716.83
8.0.110.0000.00716.84
8.0.100.0030.00416.79
8.0.90.0040.00416.81
8.0.80.0030.01316.79
8.0.70.0000.00716.83
8.0.60.0070.00016.93
8.0.50.0040.00416.68
8.0.30.0070.01416.80
8.0.20.0130.00617.40
8.0.10.0050.00316.81
8.0.00.0060.01116.73
7.4.330.0000.00515.09
7.4.320.0000.00716.45
7.4.300.0060.00016.62
7.4.290.0000.00716.49
7.4.280.0000.00716.63
7.4.270.0030.00316.60
7.4.260.0040.00416.49
7.4.250.0070.00016.45
7.4.240.0040.00416.61
7.4.230.0000.00716.55
7.4.220.0030.02316.49
7.4.210.0070.00716.54
7.4.200.0040.00416.41
7.4.160.0040.01516.44
7.4.150.0000.01617.40
7.4.140.0120.01017.86
7.4.130.0150.00416.61
7.4.120.0140.00316.41
7.4.110.0130.00816.35
7.4.100.0120.00616.33
7.4.90.0090.00916.64
7.4.80.0120.00519.39
7.4.70.0030.01416.36
7.4.60.0140.00316.43
7.4.50.0090.00016.44
7.4.40.0100.01016.32
7.4.30.0060.01016.57
7.4.00.0070.01114.86
7.3.330.0070.00013.11
7.3.320.0060.00013.14
7.3.310.0030.00316.32
7.3.300.0000.00616.19
7.3.290.0100.00316.28
7.3.280.0070.00716.29
7.3.270.0060.01217.40
7.3.260.0130.00316.48
7.3.250.0140.00316.30
7.3.240.0040.01316.30
7.3.230.0070.01116.39
7.3.210.0100.01316.47
7.3.200.0040.01619.39
7.3.190.0000.01716.54
7.3.180.0080.00816.54
7.3.170.0160.00016.44
7.3.160.0090.00616.36
7.3.120.0130.00615.04
7.3.110.0030.01014.66
7.3.100.0090.01214.70
7.3.90.0060.00914.55
7.3.80.0040.01114.86
7.3.70.0090.00614.75
7.3.60.0080.00414.68
7.3.50.0100.00314.70
7.3.40.0060.00614.66
7.3.30.0100.00314.45
7.3.20.0080.00816.43
7.3.10.0040.00816.52
7.3.00.0070.00716.27
7.2.330.0090.00816.87
7.2.320.0000.01816.70
7.2.310.0030.01316.86
7.2.300.0140.00416.69
7.2.290.0140.00316.89
7.2.250.0040.01514.93
7.2.240.0000.02015.09
7.2.230.0030.01415.10
7.2.220.0050.00514.98
7.2.210.0070.00715.22
7.2.200.0100.00614.98
7.2.190.0070.01015.00
7.2.180.0070.00714.79
7.2.170.0070.00314.75
7.2.60.0370.00015.72
7.1.330.0000.01415.82
7.1.320.0000.00915.95
7.1.310.0100.00315.89
7.1.300.0070.00715.49
7.1.290.0070.00415.79
7.1.280.0000.00915.82
7.1.270.0070.00715.76
7.1.260.0060.00615.75
7.1.200.0060.00315.53
7.1.70.0030.01217.02
7.1.60.0110.01419.40
7.1.50.0080.01116.95
7.1.00.0030.07722.37
7.0.200.0130.00014.68
7.0.140.0000.07322.08
7.0.60.0000.04719.78
7.0.50.0030.05017.88
7.0.40.0030.06719.97
7.0.30.0570.05720.24
7.0.20.0400.04320.08
7.0.10.0100.08320.12
7.0.00.0030.04720.06
5.6.280.0000.07321.13
5.6.210.0070.06720.63
5.6.200.0070.09018.28
5.6.190.0100.04320.77
5.6.180.0170.09320.64
5.6.170.0270.08020.55
5.6.160.0130.07720.61
5.6.150.0100.06318.19
5.6.140.0030.09018.18
5.6.130.0000.04318.15
5.6.120.0130.05021.09
5.6.110.0070.08321.08
5.6.100.0130.05720.98
5.6.90.0070.08321.13
5.6.80.0100.03720.29
5.5.350.0000.03320.43
5.5.340.0000.09017.95
5.5.330.0030.08720.27
5.5.320.0270.04020.36
5.5.310.0170.03720.32
5.5.300.0000.05018.03
5.5.290.0070.08018.07
5.5.280.0030.08020.88
5.5.270.0070.05720.84
5.5.260.0070.08320.80
5.5.250.0000.04320.59
5.5.240.0230.06320.18
5.4.450.0230.04719.42
5.4.440.0270.04319.52
5.4.430.0300.04019.32
5.4.420.0470.03019.41
5.4.410.0230.03719.45
5.4.400.0470.04319.02
5.4.390.0430.04019.16
5.4.380.0930.05718.74
5.4.370.0700.05318.74
5.4.360.0770.05318.74
5.4.350.0800.06018.73
5.4.340.0770.05318.50
5.4.320.0070.03512.51
5.4.310.0060.03712.51
5.4.300.0080.03812.51
5.4.290.0060.04012.51
5.4.280.0080.03212.40
5.4.270.0060.03612.40
5.4.260.0050.03812.40
5.4.250.0060.03712.40
5.4.240.0080.03812.40
5.4.230.0060.03612.39
5.4.220.0020.04612.39
5.4.210.0030.03712.39
5.4.200.0090.03912.39
5.4.190.0070.03512.39
5.4.180.0050.03512.39
5.4.170.0120.03312.40
5.4.160.0110.03412.40
5.4.150.0060.03512.39
5.4.140.0070.03512.07
5.4.130.0070.03312.07
5.4.120.0060.03412.02
5.4.110.0060.03512.02
5.4.100.0050.03612.02
5.4.90.0060.03612.02
5.4.80.0030.03912.02
5.4.70.0070.03312.02
5.4.60.0030.03712.02
5.4.50.0070.03412.02
5.4.40.0080.04312.00
5.4.30.0070.03412.00
5.4.20.0020.03812.00
5.4.10.0050.04412.00
5.4.00.0070.03311.48
5.3.290.0060.03812.80
5.3.280.0050.03712.71
5.3.270.0070.03712.72
5.3.260.0040.04012.72
5.3.250.0100.03212.71
5.3.240.0060.03712.72
5.3.230.0110.03212.71
5.3.220.0070.03612.68
5.3.210.0050.04012.68
5.3.200.0020.04212.68
5.3.190.0040.03912.68
5.3.180.0060.03612.67
5.3.170.0050.03712.67
5.3.160.0060.03712.67
5.3.150.0100.03512.67
5.3.140.0060.03712.66
5.3.130.0050.04612.66
5.3.120.0080.04212.66
5.3.110.0080.04812.66
5.3.100.0060.03612.12
5.3.90.0020.04012.10
5.3.80.0090.03312.09
5.3.70.0060.03612.09
5.3.60.0050.03712.07
5.3.50.0060.03412.02
5.3.40.0040.03712.03
5.3.30.0110.03711.98
5.3.20.0090.03811.77
5.3.10.0080.03111.73
5.3.00.0080.03711.72
5.2.170.0050.0309.22
5.2.160.0050.0279.22
5.2.150.0030.0319.22
5.2.140.0040.0319.22
5.2.130.0040.0309.18
5.2.120.0050.0279.18
5.2.110.0040.0309.19
5.2.100.0040.0319.18
5.2.90.0000.0339.18
5.2.80.0040.0309.17
5.2.70.0040.0359.17
5.2.60.0060.0289.13
5.2.50.0020.0319.09
5.2.40.0070.0269.07
5.2.30.0040.0309.05
5.2.20.0050.0289.04
5.2.10.0030.0288.95
5.2.00.0040.0298.81
5.1.60.0040.0248.09
5.1.50.0040.0258.08
5.1.40.0060.0228.07
5.1.30.0040.0268.42
5.1.20.0030.0278.44
5.1.10.0020.0288.17
5.1.00.0050.0248.16
5.0.50.0030.0216.64
5.0.40.0030.0206.50
5.0.30.0050.0326.31
5.0.20.0020.0216.27
5.0.10.0020.0216.26
5.0.00.0000.0346.25
4.4.90.0030.0154.78
4.4.80.0030.0154.76
4.4.70.0030.0164.76
4.4.60.0030.0164.76
4.4.50.0020.0174.77
4.4.40.0050.0234.70
4.4.30.0000.0194.76
4.4.20.0020.0184.85
4.4.10.0030.0154.85
4.4.00.0030.0254.76
4.3.110.0030.0204.67
4.3.100.0020.0174.66
4.3.90.0040.0134.63
4.3.80.0030.0314.58
4.3.70.0050.0194.63
4.3.60.0020.0154.63
4.3.50.0030.0164.63
4.3.40.0030.0234.54
4.3.30.0020.0173.30
4.3.20.0010.0183.28
4.3.10.0000.0173.24
4.3.00.0070.01315.98

preferences:
40.62 ms | 401 KiB | 5 Q