3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! class A { private function test() { echo 'TEST'; } } class B extends A { protected $proxy; public function __construct($proxy) { } } $a = new B(new B(null)); $a->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.70.0190.00318.30
8.3.60.0090.00918.43
8.3.50.0110.00821.90
8.3.40.0030.01218.78
8.3.30.0090.00619.09
8.3.20.0050.00220.10
8.3.10.0040.00423.46
8.3.00.0080.00022.43
8.2.180.0090.00616.88
8.2.170.0110.00422.96
8.2.160.0100.00322.08
8.2.150.0090.00624.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0080.00819.34
8.2.110.0000.00921.09
8.2.100.0030.00917.78
8.2.90.0080.00019.09
8.2.80.0000.00817.97
8.2.70.0030.00517.50
8.2.60.0030.00617.80
8.2.50.0080.00018.07
8.2.40.0030.00617.93
8.2.30.0070.00317.87
8.2.20.0000.00717.66
8.2.10.0000.00819.47
8.2.00.0040.00417.74
8.1.280.0140.00025.92
8.1.270.0080.00023.80
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00621.94
8.1.230.0070.00422.73
8.1.220.0050.00317.76
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0000.00717.40
8.1.180.0030.00618.10
8.1.170.0030.00618.58
8.1.160.0020.00521.82
8.1.150.0020.00518.49
8.1.140.0050.00317.42
8.1.130.0000.00717.89
8.1.120.0030.00517.39
8.1.110.0000.00717.38
8.1.100.0030.00417.41
8.1.90.0000.00717.38
8.1.80.0040.00317.46
8.1.70.0070.00017.29
8.1.60.0060.00317.51
8.1.50.0000.00817.48
8.1.40.0060.00317.43
8.1.30.0040.00717.46
8.1.20.0060.00317.60
8.1.10.0000.00717.57
8.1.00.0040.00417.33
8.0.300.0070.00018.77
8.0.290.0000.00817.16
8.0.280.0000.00718.30
8.0.270.0070.00017.13
8.0.260.0000.00716.68
8.0.250.0000.00716.92
8.0.240.0030.00316.90
8.0.230.0030.00316.91
8.0.220.0000.00716.80
8.0.210.0030.00316.76
8.0.200.0030.00316.86
8.0.190.0040.00417.02
8.0.180.0070.00016.94
8.0.170.0040.00416.78
8.0.160.0040.00416.87
8.0.150.0000.00716.89
8.0.140.0030.00616.84
8.0.130.0030.00313.36
8.0.120.0080.00016.74
8.0.110.0040.00416.86
8.0.100.0030.00316.68
8.0.90.0040.00416.81
8.0.80.0030.01316.93
8.0.70.0040.00416.91
8.0.60.0000.00716.75
8.0.50.0070.00016.68
8.0.30.0050.01316.99
8.0.20.0110.00817.40
8.0.10.0030.00517.08
8.0.00.0090.01116.77
7.4.330.0020.00215.14
7.4.320.0030.00316.47
7.4.300.0030.00316.52
7.4.290.0030.00316.45
7.4.280.0000.00816.57
7.4.270.0090.00016.58
7.4.260.0040.00416.50
7.4.250.0040.00416.60
7.4.240.0050.00216.50
7.4.230.0030.00316.60
7.4.220.0070.01016.63
7.4.210.0040.01216.54
7.4.200.0000.00716.45
7.4.190.0030.00316.50
7.4.160.0060.00916.42
7.4.150.0070.01017.40
7.4.140.0050.01617.86
7.4.130.0090.00916.59
7.4.120.0090.01016.58
7.4.110.0060.01116.56
7.4.100.0090.01316.32
7.4.90.0180.00416.50
7.4.80.0100.01716.75
7.4.70.0100.00716.65
7.4.60.0000.01616.53
7.4.50.0060.00316.54
7.4.40.0060.00922.77
7.4.30.0150.00616.58
7.4.00.0070.01015.12
7.3.330.0000.00513.32
7.3.320.0020.00213.30
7.3.310.0000.00716.24
7.3.300.0000.00616.38
7.3.290.0070.00716.31
7.3.280.0120.00516.34
7.3.270.0080.00817.40
7.3.260.0070.01016.58
7.3.250.0130.00716.43
7.3.240.0130.00316.50
7.3.230.0030.01516.39
7.3.210.0070.01416.38
7.3.200.0100.00719.39
7.3.190.0060.01616.49
7.3.180.0070.01016.37
7.3.170.0120.00316.38
7.3.160.0160.00616.21
7.3.120.0070.00314.71
7.3.10.0100.00316.59
7.3.00.0100.00016.61
7.2.330.0070.01016.73
7.2.320.0110.00516.56
7.2.310.0130.00916.52
7.2.300.0030.01316.39
7.2.290.0080.00816.61
7.2.130.0030.01316.84
7.2.120.0040.00817.05
7.2.110.0090.00616.99
7.2.100.0100.00016.55
7.2.90.0000.01416.97
7.2.80.0040.01116.73
7.2.70.0060.00916.99
7.2.60.0040.00916.87
7.2.50.0030.01217.10
7.2.40.0070.00716.61
7.2.30.0030.01016.86
7.2.20.0070.00716.64
7.2.10.0030.01516.79
7.2.00.0040.00718.10
7.1.250.0100.00615.64
7.1.200.0000.00915.63
7.1.100.0000.01017.94
7.1.70.0030.00617.13
7.1.60.0090.01619.24
7.1.50.0100.00016.63
7.1.00.0070.07322.37
7.0.200.0000.00816.65
7.0.140.0100.06721.93
7.0.60.0070.08720.03
7.0.50.0100.08317.87
7.0.40.0100.08319.96
7.0.30.0170.04320.11
7.0.20.0330.05720.19
7.0.10.0070.07020.07
7.0.00.0000.04720.22
5.6.280.0000.07721.03
5.6.210.0130.08020.48
5.6.200.0030.04318.19
5.6.190.0070.05020.63
5.6.180.0170.04720.45
5.6.170.0430.07320.55
5.6.160.0100.04720.70
5.6.150.0030.08718.19
5.6.140.0000.04018.22
5.6.130.0100.04718.19
5.6.120.0070.08321.04
5.6.110.0070.06020.98
5.6.100.0170.07321.05
5.6.90.0170.08020.95
5.6.80.0070.07020.41
5.5.350.0230.07020.34
5.5.340.0030.05317.97
5.5.330.0070.05720.13
5.5.320.0430.04020.30
5.5.310.0200.08320.32
5.5.300.0070.08317.98
5.5.290.0100.07717.95
5.5.280.0130.07320.77
5.5.270.0070.08320.73
5.5.260.0230.05720.74
5.5.250.0030.08320.79
5.5.240.0170.07020.16
5.4.450.0670.04719.21
5.4.440.2600.03719.54
5.4.430.2500.04019.51
5.4.420.3300.04019.52
5.4.410.3300.04019.05
5.4.400.3530.04319.13
5.4.390.3370.02719.22
5.4.380.3270.04019.13
5.4.370.3330.04019.16
5.4.360.3330.04019.14
5.4.350.3430.02719.24
5.4.340.3300.04018.95
5.4.320.3370.03719.14
5.4.310.3300.03318.87
5.4.300.3530.04318.99
5.4.290.3570.04319.06
5.4.280.3470.03719.21
5.4.270.3330.04018.98
5.4.260.3970.04319.16
5.4.250.3730.04019.13
5.4.240.3370.03719.19
5.4.230.2900.03319.08
5.4.220.3470.03319.07
5.4.210.3700.03319.21
5.4.200.3370.03719.21
5.4.190.3400.03019.21
5.4.180.3830.04019.21
5.4.170.3370.03718.86
5.4.160.3330.03319.14
5.4.150.3470.04018.92
5.4.140.3430.03316.56
5.4.130.3570.03316.54
5.4.120.3330.04316.45
5.4.110.3470.03716.65
5.4.100.3330.04016.59
5.4.90.3500.02316.61
5.4.80.3400.03016.46
5.4.70.2970.03016.57
5.4.60.3330.03716.24
5.4.50.3430.02316.25
5.4.40.3430.03016.51
5.4.30.4270.03016.16
5.4.20.3300.03716.34
5.4.10.3770.04016.42
5.4.00.3430.03715.79
5.3.290.3400.03314.68
5.3.280.3830.04314.68
5.3.270.3330.03714.63
5.3.260.3070.04014.54
5.3.250.3400.02714.69
5.3.240.3470.04014.63
5.3.230.3430.03314.59
5.3.220.3330.03314.47
5.3.210.3200.04314.64
5.3.200.3330.03714.66
5.3.190.3870.04314.54
5.3.180.3570.04314.78
5.3.170.3330.03714.57
5.3.160.3470.03014.68
5.3.150.3400.03314.54
5.3.140.3430.03714.47
5.3.130.3330.04314.55
5.3.120.3370.04014.66
5.3.110.3500.04014.55
5.3.100.3500.03313.96
5.3.90.3970.04014.01
5.3.80.3500.04014.08
5.3.70.4000.03714.10
5.3.60.3770.04013.98
5.3.50.3330.03714.06
5.3.40.0930.03314.11
5.3.30.0070.04713.91
5.3.20.2630.03713.62
5.3.10.3430.03313.66
5.3.00.2700.03013.62
5.2.170.2870.02311.15
5.2.160.2730.03011.07
5.2.150.0030.05711.06
5.2.140.0070.03011.05
5.2.130.2730.02711.04
5.2.120.3000.02311.02
5.2.110.2300.03311.11
5.2.100.2570.02311.00
5.2.90.3200.03311.01
5.2.80.2570.03011.21
5.2.70.2470.03011.11
5.2.60.2600.02710.95
5.2.50.2770.02711.07
5.2.40.2000.02711.00
5.2.30.1630.03010.89
5.2.20.2030.02310.96
5.2.10.2030.03010.79
5.2.00.2200.03310.72
5.1.60.1730.03010.09
5.1.50.2300.0239.89
5.1.40.2100.02310.05
5.1.30.1770.02310.42
5.1.20.2230.01710.43
5.1.10.1970.02710.30
5.1.00.1000.02710.13
5.0.50.0030.0208.55
5.0.40.0000.0208.34
5.0.30.0000.0438.35
5.0.20.0000.0308.34
5.0.10.0000.0208.34
5.0.00.0770.0278.34
4.4.90.1000.0178.34
4.4.80.0930.0108.34
4.4.70.1330.0178.34
4.4.60.1130.0178.34
4.4.50.1230.0138.34
4.4.40.0500.0208.34
4.4.30.0630.0208.34
4.4.20.1170.0178.34
4.4.10.0030.0208.34
4.4.00.0000.0308.34
4.3.110.0030.0138.34
4.3.100.0000.0178.34
4.3.90.0000.0178.34
4.3.80.1300.0308.34
4.3.70.1130.0178.34
4.3.60.1370.0138.34
4.3.50.1100.0178.34
4.3.40.1200.0208.34
4.3.30.0630.0178.34
4.3.20.0570.0178.34
4.3.10.0570.0178.34
4.3.00.0570.0178.34

preferences:
70.02 ms | 401 KiB | 5 Q