3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Test { public function test() { echo $this->test . "\n"; echo get_class($this) . "\n"; } } class Foo { private $test = "bar"; use Test; } (new Foo())->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.60.0170.00316.25
8.3.50.0130.00821.99
8.3.40.0070.00718.71
8.3.30.0060.00819.14
8.3.20.0000.00920.25
8.3.10.0080.00023.37
8.3.00.0060.00617.50
8.2.180.0120.00618.23
8.2.170.0170.00022.96
8.2.160.0070.00720.34
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0150.00026.16
8.2.120.0050.00222.23
8.2.110.0040.00420.89
8.2.100.0080.00418.16
8.2.90.0000.00819.26
8.2.80.0080.00017.97
8.2.70.0030.00617.50
8.2.60.0060.00317.80
8.2.50.0040.00418.10
8.2.40.0080.00018.22
8.2.30.0040.00417.88
8.2.20.0040.00417.66
8.2.10.0050.00318.03
8.2.00.0050.00517.48
8.1.280.0100.00625.92
8.1.270.0050.00322.14
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00321.20
8.1.230.0040.00817.70
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.11
8.1.190.0040.00417.10
8.1.180.0000.00818.10
8.1.170.0030.00518.58
8.1.160.0000.00721.99
8.1.150.0050.00218.53
8.1.140.0000.00817.37
8.1.130.0060.00317.66
8.1.120.0000.00717.43
8.1.110.0050.00317.24
8.1.100.0070.00017.21
8.1.90.0080.00017.35
8.1.80.0000.00717.28
8.1.70.0000.00717.32
8.1.60.0060.00317.49
8.1.50.0000.00817.45
8.1.40.0000.00717.45
8.1.30.0030.00517.55
8.1.20.0000.00717.62
8.1.10.0000.00717.50
8.1.00.0070.00017.32
8.0.300.0080.00018.77
8.0.290.0050.00316.75
8.0.280.0040.00418.45
8.0.270.0000.00717.23
8.0.260.0030.00317.25
8.0.250.0030.00316.83
8.0.240.0030.00616.98
8.0.230.0040.00416.85
8.0.220.0030.00316.78
8.0.210.0030.00316.70
8.0.200.0040.00416.84
8.0.190.0030.00316.84
8.0.180.0000.00816.87
8.0.170.0040.00416.77
8.0.160.0030.00316.82
8.0.150.0060.00616.80
8.0.140.0030.00516.68
8.0.130.0030.00313.20
8.0.120.0040.00416.67
8.0.110.0030.00516.86
8.0.100.0040.00416.64
8.0.90.0040.00416.70
8.0.80.0080.01116.82
8.0.70.0050.00316.84
8.0.60.0040.00416.93
8.0.50.0040.00416.79
8.0.30.0060.01216.81
8.0.20.0040.01417.40
8.0.10.0050.00316.97
8.0.00.0110.01016.75
7.4.330.0030.00315.00
7.4.320.0000.00616.51
7.4.300.0060.00016.39
7.4.290.0090.00016.54
7.4.280.0030.00316.52
7.4.270.0040.00416.50
7.4.260.0030.00316.31
7.4.250.0000.00716.41
7.4.240.0020.00516.50
7.4.230.0030.00316.41
7.4.220.0070.01616.53
7.4.210.0070.00716.47
7.4.200.0000.00716.59
7.4.190.0000.00716.67
7.4.160.0120.00416.52
7.4.150.0110.00717.40
7.4.140.0120.00417.86
7.4.130.0110.00916.48
7.4.120.0090.00916.56
7.4.110.0090.00916.43
7.4.100.0140.00416.39
7.4.90.0100.00716.39
7.4.80.0000.01619.39
7.4.70.0150.00316.50
7.4.60.0100.00616.46
7.4.50.0050.00016.58
7.4.40.0070.00722.77
7.4.30.0090.00616.61
7.4.00.0030.01214.62
7.3.330.0000.00513.32
7.3.320.0000.00513.24
7.3.310.0040.00416.33
7.3.300.0030.00316.21
7.3.290.0100.00516.31
7.3.280.0130.00516.31
7.3.270.0110.00717.40
7.3.260.0130.00416.44
7.3.250.0120.00816.38
7.3.240.0060.01216.31
7.3.230.0110.00616.39
7.3.210.0140.00316.48
7.3.200.0090.00919.39
7.3.190.0040.01816.17
7.3.180.0070.00816.21
7.3.170.0040.01216.27
7.3.160.0150.00016.17
7.3.120.0070.00714.82
7.2.330.0120.01116.44
7.2.320.0080.00816.66
7.2.310.0130.00316.59
7.2.300.0080.00816.45
7.2.290.0110.00616.69
7.2.80.0030.01216.59
7.2.60.0000.01316.95
7.2.00.0030.01019.27
7.1.200.0060.00615.85
7.1.100.0040.00417.97
7.1.70.0000.00817.19
7.1.60.0100.01419.33
7.1.50.0190.01934.80
7.1.00.0030.07722.54
7.0.200.0000.00816.68
7.0.140.0030.07321.99
7.0.60.0230.05320.00
7.0.50.0070.04017.84
7.0.40.0030.08020.20
7.0.30.0200.05320.33
7.0.20.0200.06320.08
7.0.10.0100.05320.22
7.0.00.0030.04320.32
5.6.280.0100.06721.09
5.6.210.0070.07320.50
5.6.200.0100.07318.18
5.6.190.0100.06320.68
5.6.180.0230.05720.42
5.6.170.0330.04320.51
5.6.160.0130.05018.20
5.6.150.0030.05318.27
5.6.140.0100.04018.14
5.6.130.0030.07718.27
5.6.120.0070.04721.00
5.6.110.0000.06320.98
5.6.100.0070.05321.10
5.6.90.0070.08020.95
5.6.80.0100.07720.51
5.5.350.0270.07020.32
5.5.340.0070.07718.02
5.5.330.0030.08320.29
5.5.320.0230.04720.27
5.5.310.0270.08320.23
5.5.300.0030.05717.94
5.5.290.0000.04718.07
5.5.280.0070.04320.68
5.5.270.0030.05020.71
5.5.260.0070.03720.97
5.5.250.0030.08720.68
5.5.240.2270.03020.18
5.4.450.3700.04019.52
5.4.440.0030.08019.46
5.4.430.3800.02719.26
5.4.420.3670.04019.41
5.4.410.3670.03719.07
5.4.400.2370.03719.15
5.4.390.2500.03319.09
5.4.380.2900.04019.24
5.4.370.3700.03719.19
5.4.360.3430.03719.20
5.4.350.3630.03319.09
5.4.340.3630.03718.87
5.4.320.3200.04019.16
5.4.310.0800.03319.05
5.4.300.0000.04319.12
5.4.290.3900.04019.06
5.4.280.3830.03719.13
5.4.270.3670.04019.18
5.4.260.4200.04719.22
5.4.250.4000.03019.30
5.4.240.3630.04019.14
5.4.230.4100.04319.08
5.4.220.3900.04019.05
5.4.210.3930.04019.09
5.4.200.0030.04019.19
5.4.190.2030.04019.23
5.4.180.3630.03318.97
5.4.170.3830.04018.97
5.4.160.3700.03319.04
5.4.150.3900.04019.21
5.4.140.3970.03016.38
5.4.130.3930.02316.36
5.4.120.4530.03316.40
5.4.110.3970.04316.35
5.4.100.4070.03316.46
5.4.90.3800.02016.41
5.4.80.3800.03016.39
5.4.70.3630.03716.50
5.4.60.3770.03316.38
5.4.50.3770.04016.30
5.4.40.4000.03316.16
5.4.30.3700.03716.53
5.4.20.3730.03016.48
5.4.10.3330.03316.51
5.4.00.3770.03715.90
5.3.290.3830.03314.54
5.3.280.3670.03714.68
5.3.270.3970.03714.51
5.3.260.3930.03314.51
5.3.250.4500.03714.54
5.3.240.3700.03714.48
5.3.230.3900.04014.63
5.3.220.3930.03014.57
5.3.210.3230.04014.65
5.3.200.4200.04714.55
5.3.190.3870.02714.45
5.3.180.3700.04014.62
5.3.170.4030.03014.59
5.3.160.3600.04314.47
5.3.150.4030.03014.66
5.3.140.3700.03314.42
5.3.130.3700.04014.42
5.3.120.3630.04014.57
5.3.110.3970.03714.65
5.3.100.3630.04013.97
5.3.90.3630.03713.93
5.3.80.3970.03313.86
5.3.70.3700.03013.96
5.3.60.3770.03014.03
5.3.50.3770.03713.93
5.3.40.3700.03313.89
5.3.30.3570.04014.00
5.3.20.3700.03013.64
5.3.10.4700.03313.61
5.3.00.3630.05013.48
5.2.170.3230.03011.20
5.2.160.3000.03310.98
5.2.150.2970.03710.98
5.2.140.3130.02711.23
5.2.130.3000.03011.12
5.2.120.3030.03010.96
5.2.110.3570.02310.93
5.2.100.3500.03711.13
5.2.90.3030.03011.04
5.2.80.3030.03311.14
5.2.70.3100.03010.94
5.2.60.3070.03011.05
5.2.50.3070.02710.92
5.2.40.2470.03011.03
5.2.30.2830.02710.82
5.2.20.2430.03010.80
5.2.10.2570.03010.76
5.2.00.2500.02710.62
5.1.60.2500.01710.08
5.1.50.2770.03010.16
5.1.40.2500.02710.09
5.1.30.2600.02710.49
5.1.20.1200.02710.21
5.1.10.1970.0239.95
5.1.00.2230.02310.16
5.0.50.1470.0208.53
5.0.40.1270.0178.28
5.0.30.0470.0308.30
5.0.20.0970.0178.13
5.0.10.1370.0138.10
5.0.00.1030.0308.30
4.4.90.1200.0176.17
4.4.80.1230.0176.17
4.4.70.1330.0206.17
4.4.60.1330.0206.17
4.4.50.1370.0176.17
4.4.40.1270.0276.17
4.4.30.1530.0106.17
4.4.20.0630.0136.17
4.4.10.1270.0136.17
4.4.00.0700.0236.17
4.3.110.1030.0106.17
4.3.100.1300.0136.17
4.3.90.1070.0176.17
4.3.80.1270.0236.17
4.3.70.1230.0176.17
4.3.60.1300.0176.17
4.3.50.1230.0136.17
4.3.40.1400.0276.17
4.3.30.0330.0136.17
4.3.20.0770.0176.17
4.3.10.0600.0176.17
4.3.00.0700.0136.17

preferences:
41.93 ms | 401 KiB | 5 Q