3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait FooTrait { abstract public function getHandle(); public function foo() { return $this->getHandle();; } } trait BarTrait { use FooTrait; public function bar() { return "bar"; } } var_dump((new class { use BarTrait; public function getHandle() { return "Derp"; } })->foo());

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.0060.01518.14
8.3.50.0170.00521.01
8.3.40.0150.00018.55
8.3.30.0090.00619.00
8.3.20.0110.00420.33
8.3.10.0040.00423.48
8.3.00.0060.00323.70
8.2.180.0100.01016.50
8.2.170.0070.01022.96
8.2.160.0090.00922.08
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0060.00317.50
8.2.110.0060.00319.27
8.2.100.0000.01117.50
8.2.90.0040.00419.00
8.2.80.0040.00417.97
8.2.70.0030.00717.38
8.2.60.0000.00817.91
8.2.50.0060.00318.07
8.2.40.0060.00321.11
8.2.30.0070.00019.69
8.2.20.0000.00817.72
8.2.10.0000.00717.91
8.2.00.0030.00617.92
8.1.280.0110.00425.92
8.1.270.0040.00420.20
8.1.260.0050.00226.35
8.1.250.0080.00628.09
8.1.240.0040.00720.84
8.1.230.0110.00017.64
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0050.00517.13
8.1.190.0000.00717.23
8.1.180.0040.00418.10
8.1.170.0070.00018.65
8.1.160.0000.00823.82
8.1.150.0000.00718.81
8.1.140.0000.00717.37
8.1.130.0070.00017.36
8.1.120.0040.00417.30
8.1.110.0040.00417.40
8.1.100.0000.00717.39
8.1.90.0080.00017.43
8.1.80.0040.00417.35
8.1.70.0030.00317.34
8.1.60.0050.00317.40
8.1.50.0040.00417.44
8.1.40.0030.00517.43
8.1.30.0030.00617.31
8.1.20.0040.00417.62
8.1.10.0080.00017.49
8.1.00.0000.00817.26
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0030.00318.40
8.0.270.0070.00017.31
8.0.260.0000.00716.81
8.0.250.0000.00716.96
8.0.240.0030.00316.84
8.0.230.0000.00716.91
8.0.220.0030.00316.72
8.0.210.0030.00516.79
8.0.200.0030.00316.88
8.0.190.0040.00416.85
8.0.180.0000.00716.85
8.0.170.0040.00416.72
8.0.160.0030.00316.89
8.0.150.0000.00716.80
8.0.140.0030.00616.72
8.0.130.0030.00313.18
8.0.120.0000.00816.75
8.0.110.0000.00716.78
8.0.100.0070.00016.65
8.0.90.0050.00216.77
8.0.80.0150.00016.70
8.0.70.0000.00816.91
8.0.60.0080.00016.80
8.0.50.0030.00616.73
8.0.30.0140.00916.91
8.0.20.0070.01017.40
8.0.10.0040.00416.88
8.0.00.0070.00916.58
7.4.330.0030.00315.21
7.4.320.0000.00616.43
7.4.300.0060.00016.56
7.4.290.0000.00716.45
7.4.280.0050.00316.32
7.4.270.0000.00816.38
7.4.260.0030.00316.41
7.4.250.0030.00316.45
7.4.240.0050.00216.49
7.4.230.0070.00016.52
7.4.220.0060.01316.45
7.4.210.0080.01216.46
7.4.200.0000.00716.34
7.4.160.0130.00316.57
7.4.150.0060.01317.40
7.4.140.0100.01017.86
7.4.130.0110.00516.60
7.4.120.0050.01516.71
7.4.110.0060.01216.50
7.4.100.0060.01216.50
7.4.90.0150.00716.43
7.4.80.0090.01019.39
7.4.70.0090.00916.37
7.4.60.0070.01016.60
7.4.50.0030.00316.24
7.4.40.0030.01416.45
7.4.30.0180.00016.47
7.4.00.0060.01014.91
7.3.330.0000.00513.11
7.3.320.0000.00513.28
7.3.310.0040.00416.19
7.3.300.0000.00616.23
7.3.290.0080.00716.22
7.3.280.0070.00916.21
7.3.270.0120.00617.40
7.3.260.0170.00716.19
7.3.250.0120.00616.28
7.3.240.0130.00316.52
7.3.230.0070.01316.49
7.3.210.0100.00616.32
7.3.200.0060.01716.25
7.3.190.0030.01216.23
7.3.180.0100.00716.48
7.3.170.0110.01116.30
7.3.160.0120.01116.16
7.3.10.0130.00316.36
7.3.00.0030.00616.35
7.2.330.0160.00416.33
7.2.320.0060.01016.54
7.2.310.0070.01016.55
7.2.300.0030.01516.59
7.2.290.0060.00916.32
7.2.130.0070.01016.30
7.2.120.0000.01216.56
7.2.110.0030.01016.50
7.2.100.0130.00616.46
7.2.90.0030.00916.76
7.2.80.0090.00316.71
7.2.70.0060.00616.94
7.2.60.0090.00316.59
7.2.50.0050.00516.48
7.2.40.0030.00916.46
7.2.30.0040.01116.34
7.2.20.0110.00416.77
7.2.10.0100.00016.34
7.2.00.0140.00517.97
7.1.250.0060.00315.36
7.1.200.0220.00315.68
7.1.100.0060.00618.10
7.1.70.0000.00916.88
7.1.60.0070.01719.42
7.1.50.0100.01616.58
7.1.00.0000.08022.43
7.0.200.0040.01116.56
7.0.60.0030.04319.86
7.0.50.0070.08017.85
7.0.40.0070.04320.18
7.0.30.0170.04320.20
7.0.20.0130.04320.09
7.0.10.0030.09020.23
7.0.00.0170.07720.09
5.6.280.0000.03721.09
5.6.210.0070.06020.54
5.6.200.0070.04318.22
5.6.190.0000.05020.64
5.6.180.0330.07720.46
5.6.170.0270.06320.51
5.6.160.0200.07320.46
5.6.150.0130.07318.25
5.6.140.0030.08718.21
5.6.130.0030.04018.19
5.6.120.0100.04021.09
5.6.110.0100.07720.99
5.6.100.0100.08021.12
5.6.90.0070.07021.13
5.6.80.0130.05720.38
5.6.70.4070.04320.33
5.5.350.0100.08320.36
5.5.340.0030.05017.96
5.5.330.0030.05020.53
5.5.320.0300.06720.24
5.5.310.0130.04020.32
5.5.300.0130.05318.08
5.5.290.0100.04018.07
5.5.280.0030.04020.90
5.5.270.0100.08720.88
5.5.260.0030.08020.83
5.5.250.0030.09020.80
5.5.240.0230.07020.16
5.4.450.0200.05319.48
5.4.440.0070.06019.47
5.4.430.0400.06019.60
5.4.420.0530.05319.61
5.4.410.0600.05319.57
5.4.400.0070.05319.30
5.4.390.0030.06019.13
5.4.380.0270.05719.25
5.4.370.0530.05718.84
5.4.360.0730.05319.13
5.4.350.0770.04719.15
5.4.340.0600.07019.38
5.4.320.0530.05719.14
5.4.310.0500.05318.84
5.4.300.0730.06719.28
5.4.290.0500.05719.10
5.4.280.0630.04719.15
5.4.270.0700.05319.05
5.4.260.0830.04719.11
5.4.250.0700.05019.25
5.4.240.0730.05019.28
5.4.230.0600.06019.27
5.4.220.0630.05019.25
5.4.210.0630.05719.03
5.4.200.0700.05016.92
5.4.190.0630.05319.01
5.4.180.0700.04718.86
5.4.170.0730.05019.06
5.4.160.0730.05318.90
5.4.150.0570.05719.22
5.4.140.0530.05016.49
5.4.130.0330.05016.46
5.4.120.0270.03016.36
5.4.110.0100.04716.61
5.4.100.0530.05016.48
5.4.90.0700.05016.55
5.4.80.0770.04716.48
5.4.70.0930.05016.77
5.4.60.0700.04716.41
5.4.50.0700.05016.48
5.4.40.0700.05716.50
5.4.30.0570.04716.32
5.4.20.0630.06716.53
5.4.10.0500.05316.68
5.4.00.0800.05016.03
5.3.290.0600.05014.61
5.3.280.0530.05014.44
5.3.270.0600.04714.63
5.3.260.0570.05314.54
5.3.250.0600.05314.46
5.3.240.0500.05314.70
5.3.230.0570.05014.58
5.3.220.0630.04314.55
5.3.210.0800.07014.66
5.3.200.0670.05314.59
5.3.190.0630.05714.41
5.3.180.0970.06014.41
5.3.170.0600.04314.55
5.3.160.0530.05314.45
5.3.150.0570.05314.41
5.3.140.0670.04314.40
5.3.130.0570.05014.42
5.3.120.0500.05714.53
5.3.110.0530.05714.39
5.3.100.0530.05313.83
5.3.90.0430.06013.90
5.3.80.0500.05313.81
5.3.70.0570.04713.80
5.3.60.0670.05014.02
5.3.50.0630.05013.88
5.3.40.0670.04714.04
5.3.30.0500.06013.74
5.3.20.0470.05013.79
5.3.10.0300.04013.75
5.3.00.0070.05013.43
5.2.170.0130.03310.99
5.2.160.0430.03311.08
5.2.150.0530.04011.09
5.2.140.0470.04311.30
5.2.130.0630.04010.94
5.2.120.0370.04710.95
5.2.110.0530.04310.94
5.2.100.0530.04010.95
5.2.90.0630.03311.15
5.2.80.0430.04311.04
5.2.70.0570.04010.94
5.2.60.0430.04310.92
5.2.50.0430.04310.98
5.2.40.0370.03710.84
5.2.30.0430.03310.80
5.2.20.0370.04310.75
5.2.10.0400.03310.77
5.2.00.0300.04310.63
5.1.60.0300.04010.07
5.1.50.0300.04310.01
5.1.40.0430.0379.95
5.1.30.0470.03310.19
5.1.20.0470.03710.42
5.1.10.0400.03710.12
5.1.00.0400.0409.97
5.0.50.0270.0238.71
5.0.40.0300.0208.29
5.0.30.0230.0408.12
5.0.20.0200.0308.08
5.0.10.0200.0338.32
5.0.00.0230.0408.06
4.4.90.0230.0205.80
4.4.80.0230.0205.84
4.4.70.0270.0175.82
4.4.60.0200.0235.75
4.4.50.0200.0235.84
4.4.40.0200.0405.86
4.4.30.0270.0175.84
4.4.20.0200.0235.88
4.4.10.0230.0175.88
4.4.00.0200.0375.89
4.3.110.0170.0205.77
4.3.100.0030.0205.79
4.3.90.0070.0205.76
4.3.80.0070.0335.76
4.3.70.0070.0175.83
4.3.60.0070.0175.77
4.3.50.0070.0175.75
4.3.40.0000.0375.71
4.3.30.0000.0234.43
4.3.20.0000.0234.45
4.3.10.0130.0234.39
4.3.00.0070.0207.09

preferences:
62.64 ms | 401 KiB | 5 Q