3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait A { public function a() { return 1; } } trait B { use A; public function b() { return 2; } } class C { use B { B::a as real_a; } public function a() { return $this->real_a() + 3; } } $c = new C; echo $c->a();

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.0070.00718.43
8.3.50.0120.00318.10
8.3.40.0150.00018.75
8.3.30.0070.00718.49
8.3.20.0040.00418.72
8.3.10.0040.00421.91
8.3.00.0080.00019.69
8.2.180.0090.00616.38
8.2.170.0110.00422.96
8.2.160.0140.00719.04
8.2.150.0040.00424.18
8.2.140.0050.00224.66
8.2.130.0040.00419.60
8.2.120.0080.00026.35
8.2.110.0150.00020.45
8.2.100.0090.00317.72
8.2.90.0080.00019.22
8.2.80.0040.00419.39
8.2.70.0100.00017.63
8.2.60.0040.00417.80
8.2.50.0000.00818.07
8.2.40.0000.00718.34
8.2.30.0040.00421.08
8.2.20.0000.00718.04
8.2.10.0040.00418.05
8.2.00.0000.00719.13
8.1.280.0140.00025.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0060.00328.09
8.1.240.0100.00020.82
8.1.230.0080.00420.90
8.1.220.0060.00318.77
8.1.210.0040.00418.92
8.1.200.0040.00417.35
8.1.190.0040.00417.30
8.1.180.0090.00018.10
8.1.170.0040.00418.64
8.1.160.0030.00418.94
8.1.150.0040.00418.52
8.1.140.0000.00817.44
8.1.130.0030.00318.98
8.1.120.0030.00317.40
8.1.110.0000.00717.44
8.1.100.0040.00417.45
8.1.90.0000.00717.46
8.1.80.0040.00417.35
8.1.70.0060.00317.35
8.1.60.0060.00317.61
8.1.50.0040.00417.52
8.1.40.0040.00417.42
8.1.30.0050.00517.62
8.1.20.0040.00417.59
8.1.10.0000.00917.48
8.1.00.0050.00317.51
8.0.300.0040.00419.88
8.0.290.0060.00317.16
8.0.280.0000.00818.51
8.0.270.0040.00416.83
8.0.260.0030.00317.14
8.0.250.0030.00317.06
8.0.240.0030.00316.97
8.0.230.0060.00316.95
8.0.220.0080.00216.91
8.0.210.0000.00716.88
8.0.200.0030.00316.92
8.0.190.0040.00416.95
8.0.180.0000.00716.96
8.0.170.0040.00416.92
8.0.160.0000.00716.85
8.0.150.0040.00416.88
8.0.140.0070.00016.86
8.0.130.0030.00313.29
8.0.120.0050.00316.89
8.0.110.0040.00416.91
8.0.100.0040.00416.74
8.0.90.0000.00816.77
8.0.80.0060.00916.84
8.0.70.0050.00316.94
8.0.60.0070.00017.00
8.0.50.0080.00016.93
8.0.30.0070.01217.25
8.0.20.0070.01217.40
8.0.10.0030.00516.92
8.0.00.0030.01616.76
7.4.330.0040.00015.55
7.4.320.0030.00316.52
7.4.300.0030.00316.58
7.4.290.0040.00416.54
7.4.280.0040.00416.49
7.4.270.0070.00016.61
7.4.260.0000.00716.49
7.4.250.0070.00016.46
7.4.240.0040.00416.50
7.4.230.0000.00716.26
7.4.220.0000.00716.41
7.4.210.0050.01016.66
7.4.200.0000.00716.48
7.4.160.0090.01016.35
7.4.140.0130.00617.86
7.4.130.0060.01216.58
7.4.120.0090.01016.63
7.4.110.0090.00916.81
7.4.100.0000.01716.29
7.4.90.0170.00016.42
7.4.80.0030.01319.39
7.4.70.0120.01216.43
7.4.60.0080.00816.32
7.4.50.0110.00416.44
7.4.40.0030.01716.41
7.4.10.0120.00615.21
7.4.00.0060.01114.93
7.3.330.0000.00613.30
7.3.320.0060.00013.26
7.3.310.0070.00016.36
7.3.300.0070.00016.19
7.3.290.0070.00016.25
7.3.280.0060.01016.27
7.3.260.0110.00916.29
7.3.250.0100.00816.18
7.3.240.0090.00816.25
7.3.230.0100.00716.25
7.3.210.0090.00916.35
7.3.200.0110.00216.54
7.3.190.0140.00316.22
7.3.180.0120.00316.30
7.3.170.0070.00916.33
7.3.160.0110.00416.31
7.3.130.0070.01114.95
7.3.120.0060.00814.77
7.3.110.0050.01314.64
7.3.100.0110.00514.70
7.3.90.0070.00714.71
7.3.80.0050.00914.76
7.3.70.0040.01214.76
7.3.60.0060.00514.79
7.3.50.0040.01014.61
7.3.40.0080.00314.60
7.3.30.0050.00814.63
7.3.20.0030.01116.52
7.3.10.0070.00716.33
7.3.00.0060.00716.55
7.2.330.0040.01416.70
7.2.320.0110.00916.76
7.2.310.0130.00716.64
7.2.300.0040.01316.44
7.2.290.0200.00416.42
7.2.260.0100.01014.87
7.2.250.0050.01215.01
7.2.240.0060.01014.90
7.2.230.0050.01015.07
7.2.220.0060.01015.00
7.2.210.0070.00914.92
7.2.200.0050.00514.80
7.2.190.0030.00915.06
7.2.180.0050.01014.90
7.2.170.0060.00414.90
7.2.160.0060.00915.16
7.2.150.0060.00917.00
7.2.140.0100.00616.91
7.2.130.0000.01516.70
7.2.120.0030.01216.73
7.2.110.0070.00716.66
7.2.100.0030.00916.86
7.2.90.0100.00317.03
7.2.80.0070.00716.95
7.2.70.0070.01117.02
7.2.60.0070.01016.87
7.2.50.0000.01316.92
7.2.40.3500.00517.67
7.2.30.1700.01317.34
7.2.20.1960.00817.25
7.2.10.1750.00917.30
7.2.00.1870.00717.39
7.1.330.0070.00715.74
7.1.320.0090.00515.68
7.1.310.0070.00915.63
7.1.300.0090.00715.61
7.1.290.0090.00515.59
7.1.280.0090.00315.69
7.1.270.0040.00615.79
7.1.260.0070.00815.54
7.1.250.0060.00315.78
7.1.240.0080.00815.82
7.1.230.0060.01015.66
7.1.220.0030.00715.36
7.1.210.0040.01115.79
7.1.200.0040.00615.69
7.1.190.0030.00615.74
7.1.180.0070.00415.72
7.1.170.0060.00315.62
7.1.160.2590.01116.34
7.1.150.2710.00616.28
7.1.140.2020.00716.10
7.1.130.1960.01016.26
7.1.120.2330.00616.19
7.1.110.1800.00516.01
7.1.100.1850.00915.84
7.1.90.2540.00815.86
7.1.80.2950.00615.85
7.1.70.2650.00615.47
7.1.60.2040.01124.40
7.1.50.3320.01124.30
7.1.40.3320.01324.23
7.1.30.3300.00724.03
7.1.20.3860.00924.17
7.1.10.3040.00915.26
7.1.00.2070.01415.06
7.0.330.0000.01415.47
7.0.320.0090.00015.32
7.0.310.0030.00715.16
7.0.300.0000.01515.14
7.0.290.0080.00015.29
7.0.280.0080.00015.33
7.0.270.0060.00615.48
7.0.260.0090.00315.52
7.0.250.0110.00315.58
7.0.240.0040.00415.48
7.0.230.0000.00815.46
7.0.220.0040.01115.41
7.0.210.0090.00615.36
7.0.200.0000.01415.35
7.0.190.0090.00015.45
7.0.180.0070.00715.16
7.0.170.0000.01015.38
7.0.160.0040.00815.55
7.0.150.0040.00415.30
7.0.140.0060.00615.38
7.0.130.0060.00815.17
7.0.120.0040.00815.49
7.0.110.0040.00715.47
7.0.100.0000.00915.36
7.0.90.0030.01015.44
7.0.80.0100.00315.40
7.0.70.0040.00815.48
7.0.60.0110.00015.39
7.0.50.0030.01015.50
7.0.40.0080.00613.45
7.0.30.0070.00713.36
7.0.20.0040.00413.46
7.0.10.0060.00613.45
7.0.00.0040.00413.23
5.6.400.0000.01514.36
5.6.390.0030.00913.98
5.6.380.0000.01414.41
5.6.370.0040.01114.27
5.6.360.0030.00914.26
5.6.350.0030.00614.57
5.6.340.0060.00914.23
5.6.330.0080.00314.21
5.6.320.0060.00614.25
5.6.310.0100.00714.68
5.6.300.0030.00714.46
5.6.290.0040.01114.04
5.6.280.0080.00014.49
5.6.270.0120.00314.10
5.6.260.0030.00614.48
5.6.250.0000.01514.36
5.6.240.0060.00614.32
5.6.230.0080.00614.41
5.6.220.0030.00614.13
5.6.210.0040.00814.22
5.6.200.0030.01014.48
5.6.190.0120.00414.40
5.6.180.0040.00814.26
5.6.170.0030.00914.41
5.6.160.0000.00814.10
5.6.150.0040.00814.17
5.6.140.0040.00814.40
5.6.130.0070.00714.27
5.6.120.0050.00514.53
5.6.110.0000.00814.25
5.6.100.0120.00314.41
5.6.90.0040.00414.53
5.6.80.0050.00514.02
5.6.70.0130.00314.07
5.6.60.0030.00614.08
5.6.50.0070.00714.45
5.6.40.0070.00314.16
5.6.30.0000.01014.11
5.6.20.0050.00314.43
5.6.10.0030.00913.96
5.6.00.0040.00814.29

preferences:
60.26 ms | 400 KiB | 5 Q