3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait foo { public function bar() { echo 'foo->bar'; } } trait baz { use foo { foo::bar as foo_bar; } public function bar() { $this->foo_bar(); echo 'baz->bar'; } } class bar { use baz; public function call_bar() { $this->bar(); } } $obj=new bar(); $obj->call_bar();

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.0150.00616.50
8.3.50.0150.00221.97
8.3.40.0040.01118.59
8.3.30.0120.00318.96
8.3.20.0000.00820.24
8.3.10.0080.00023.48
8.3.00.0090.00019.25
8.2.180.0140.00718.41
8.2.170.0070.01122.96
8.2.160.0100.00720.35
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00422.27
8.2.110.0040.00422.16
8.2.100.0040.00717.59
8.2.90.0050.00219.23
8.2.80.0050.00317.97
8.2.70.0040.00717.63
8.2.60.0000.00817.80
8.2.50.0030.00718.07
8.2.40.0040.00419.88
8.2.30.0060.00319.93
8.2.20.0090.00017.71
8.2.10.0000.00717.99
8.2.00.0000.00817.66
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00023.82
8.1.230.0080.00419.00
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0000.00717.13
8.1.180.0090.00019.00
8.1.170.0040.00418.52
8.1.160.0000.00722.00
8.1.150.0040.00418.68
8.1.140.0040.00417.39
8.1.130.0030.00317.44
8.1.120.0000.00717.50
8.1.110.0000.00717.36
8.1.100.0070.00017.38
8.1.90.0000.00717.36
8.1.80.0040.00417.50
8.1.70.0070.00017.46
8.1.60.0060.00317.58
8.1.50.0040.00417.53
8.1.40.0040.00417.52
8.1.30.0000.00817.62
8.1.20.0040.00417.60
8.1.10.0040.00417.52
8.1.00.0000.00717.52
8.0.300.0080.00018.78
8.0.290.0060.00317.16
8.0.280.0000.00718.39
8.0.270.0000.00717.26
8.0.260.0030.00316.71
8.0.250.0000.00716.93
8.0.240.0030.00316.96
8.0.230.0030.00316.92
8.0.220.0000.00716.80
8.0.210.0030.00316.86
8.0.200.0030.00316.84
8.0.190.0000.00816.85
8.0.180.0000.00816.80
8.0.170.0030.00516.80
8.0.160.0050.00316.79
8.0.150.0040.00416.85
8.0.140.0000.00716.87
8.0.130.0030.00313.28
8.0.120.0000.00816.76
8.0.110.0040.00416.90
8.0.100.0030.00516.89
8.0.90.0000.00716.89
8.0.80.0060.00916.86
8.0.70.0000.00716.68
8.0.60.0000.00716.95
8.0.50.0050.00216.74
8.0.30.0100.00816.93
8.0.20.0070.01317.40
8.0.10.0000.00716.98
8.0.00.0090.00916.74
7.4.330.0000.00515.00
7.4.320.0000.00616.64
7.4.300.0070.00016.48
7.4.290.0030.00316.43
7.4.280.0030.00516.61
7.4.270.0080.00016.47
7.4.260.0070.00016.56
7.4.250.0000.00716.57
7.4.240.0030.00516.52
7.4.230.0050.00216.63
7.4.220.0110.00616.58
7.4.210.0070.00816.48
7.4.200.0000.00716.63
7.4.190.0040.00416.75
7.4.160.0090.00616.26
7.4.150.0070.01117.40
7.4.140.0090.00917.86
7.4.130.0090.00716.52
7.4.120.0090.00716.48
7.4.110.0120.00816.57
7.4.100.0100.00616.49
7.4.90.0060.01016.55
7.4.80.0070.01319.39
7.4.70.0080.00816.55
7.4.60.0070.01016.48
7.4.50.0030.00616.57
7.4.40.0070.01016.46
7.4.30.0120.00616.61
7.4.10.0050.00915.07
7.4.00.0070.01014.91
7.3.330.0050.00013.13
7.3.320.0050.00013.22
7.3.310.0000.00716.29
7.3.300.0040.00416.16
7.3.290.0000.01416.34
7.3.280.0070.01216.31
7.3.270.0100.00717.40
7.3.260.0030.01316.32
7.3.250.0070.01016.32
7.3.240.0030.01316.30
7.3.230.0060.00916.39
7.3.210.0120.00616.31
7.3.200.0130.00419.39
7.3.190.0090.01216.42
7.3.180.0090.00616.22
7.3.170.0060.00916.43
7.3.160.0100.00616.33
7.3.130.0090.00714.69
7.3.120.0070.00814.82
7.3.110.0120.00614.77
7.3.100.0090.00614.74
7.3.90.0050.00914.65
7.3.80.0030.00814.78
7.3.70.0050.01014.63
7.3.60.0100.00414.79
7.3.50.0110.00314.56
7.3.40.0040.00414.71
7.3.30.0020.01014.66
7.3.20.0070.00416.76
7.3.10.0020.00816.44
7.3.00.0030.00916.75
7.2.330.0150.00616.71
7.2.320.0070.01016.34
7.2.310.0180.00316.63
7.2.300.0090.00616.65
7.2.290.0090.01216.74
7.2.260.0010.01415.08
7.2.250.0120.00715.21
7.2.240.0000.01214.98
7.2.230.0060.00814.89
7.2.220.0070.00915.08
7.2.210.0000.01015.03
7.2.200.0020.01115.04
7.2.190.0030.01314.93
7.2.180.0040.00915.10
7.2.170.0080.00614.99
7.2.160.0020.00915.00
7.2.150.0060.00916.94
7.2.140.0020.01016.83
7.2.130.0060.00616.94
7.2.120.0020.00716.86
7.2.110.0070.00516.92
7.2.100.0070.00516.82
7.2.90.0050.00816.84
7.2.80.0030.01016.70
7.2.70.0070.01116.85
7.2.60.0080.01216.80
7.2.50.0070.00516.89
7.2.40.0080.00816.95
7.2.30.0090.00617.00
7.2.20.0070.00616.71
7.2.10.0060.00816.94
7.2.00.0040.01017.66
7.1.330.0030.00815.85
7.1.320.0070.00715.51
7.1.310.0060.00715.50
7.1.300.0030.01015.60
7.1.290.0050.00515.79
7.1.280.0080.00515.45
7.1.270.0000.01015.54
7.1.260.0070.00815.62
7.1.250.0070.00515.70
7.1.240.0050.00615.72
7.1.230.0080.00515.68
7.1.220.0090.00515.66
7.1.210.0070.00415.66
7.1.200.0080.00415.82
7.1.190.0100.00315.78
7.1.180.0070.00715.79
7.1.170.0080.00615.55
7.1.160.0050.00615.57
7.1.150.0030.00815.71
7.1.140.0030.01015.68
7.1.130.0030.00715.62
7.1.120.0110.00315.75
7.1.110.0000.01315.83
7.1.100.0030.00815.89
7.1.90.0050.00915.44
7.1.80.0050.00915.71
7.1.70.0020.00716.24
7.1.60.0060.00916.97
7.1.50.0050.00716.10
7.1.40.0030.01015.80
7.1.30.0010.00715.56
7.1.20.0080.00515.48
7.1.10.0070.00715.61
7.1.00.0060.02818.04
7.0.330.0060.00515.06
7.0.320.0040.01115.23
7.0.310.0080.00515.31
7.0.300.0040.00915.38
7.0.290.0020.01115.13
7.0.280.0070.00615.29
7.0.270.0050.00615.19
7.0.260.0070.00615.31
7.0.250.0070.00515.25
7.0.240.0020.01215.33
7.0.230.0020.01215.37
7.0.220.0060.00515.11
7.0.210.0030.00915.37
7.0.200.0050.00515.71
7.0.190.0060.00415.46
7.0.180.0090.00315.23
7.0.170.0030.01015.13
7.0.160.0020.00915.41
7.0.150.0050.00815.26
7.0.140.0050.02917.50
7.0.130.0020.00915.46
7.0.120.0060.01817.58
7.0.110.0020.02017.56
7.0.100.0030.01917.63
7.0.90.0060.01417.56
7.0.80.0030.01717.53
7.0.70.0050.02017.48
7.0.60.0040.02217.64
7.0.50.0070.03017.61
7.0.40.0050.01615.65
7.0.30.0050.01415.67
7.0.20.0050.02315.59
7.0.10.0030.01815.50
7.0.00.0030.01915.59
5.6.400.0080.00814.42
5.6.390.0050.00814.08
5.6.380.0070.00814.21
5.6.370.0090.00614.54
5.6.360.0040.00814.23
5.6.350.0050.00514.34
5.6.340.0050.00514.50
5.6.330.0060.00714.23
5.6.320.0060.00614.32
5.6.310.0070.00714.44
5.6.300.0030.00814.25
5.6.290.0030.01014.26
5.6.280.0040.03116.58
5.6.270.0030.01916.46
5.6.260.0030.01916.65
5.6.250.0030.02216.39
5.6.240.0040.01816.66
5.6.230.0060.01316.43
5.6.220.0020.01716.46
5.6.210.0030.01816.43
5.6.200.0050.01816.58
5.6.190.0040.01616.54
5.6.180.0050.01616.58
5.6.170.0050.01716.49
5.6.160.0080.01916.47
5.6.150.0050.02816.55
5.6.140.0060.02916.43
5.6.130.0080.02516.59
5.6.120.0040.02916.50
5.6.110.0040.03416.35
5.6.100.0070.01916.50
5.6.90.0020.02516.60
5.6.80.0070.02516.17
5.6.70.0020.01916.40
5.6.60.0040.02716.45
5.6.50.0040.02916.27
5.6.40.0040.01716.28
5.6.30.0040.01616.36
5.6.20.0010.03416.22
5.6.10.0050.02816.30
5.6.00.0050.03016.28
5.5.380.0110.01015.33
5.5.370.0040.01715.44
5.5.360.0010.01715.36
5.5.350.0040.02315.47
5.5.340.0050.01715.49
5.5.330.0060.01715.50
5.5.320.0070.01715.24
5.5.310.0040.01615.57
5.5.300.0060.01615.55
5.5.290.0070.01615.49
5.5.280.0040.02115.61
5.5.270.0050.01815.62
5.5.260.0060.01615.58
5.5.250.0050.01715.36
5.5.240.0050.02015.10
5.5.230.0050.02015.41
5.5.220.0050.01915.32
5.5.210.0060.03115.28
5.5.200.0090.02715.27
5.5.190.0040.03015.13
5.5.180.0050.02915.24
5.5.170.0070.00714.11
5.5.160.0060.02415.13
5.5.150.0040.02315.13
5.5.140.0070.02615.31
5.5.130.0050.02415.32
5.5.120.0030.01915.14
5.5.110.0020.02115.29
5.5.100.0050.02415.02
5.5.90.0060.02915.29
5.5.80.0020.03315.11
5.5.70.0050.03015.25
5.5.60.0030.03215.07
5.5.50.0030.01715.30
5.5.40.0040.03115.17
5.5.30.0060.01915.34
5.5.20.0040.02415.11
5.5.10.0040.02615.16
5.5.00.0090.01814.88
5.4.450.0030.03214.31
5.4.440.0030.03014.21
5.4.430.0040.01914.19
5.4.420.0020.02614.26
5.4.410.0030.01414.21
5.4.400.0030.01814.09
5.4.390.0020.02914.13
5.4.380.0020.02614.15
5.4.370.0030.02314.15
5.4.360.0040.02814.10
5.4.350.0030.01714.13
5.4.340.0060.01814.21
5.4.330.0040.00711.67
5.4.320.0050.02614.20
5.4.310.0020.02714.08
5.4.300.0060.02414.08
5.4.290.0000.03114.17
5.4.280.0030.01414.09
5.4.270.0040.01614.14
5.4.260.0040.02714.09
5.4.250.0020.02714.10
5.4.240.0060.01114.08
5.4.230.0040.01414.14
5.4.220.0010.02014.17
5.4.210.0010.02814.20
5.4.200.0040.01314.08
5.4.190.0020.02814.07
5.4.180.0020.02214.13
5.4.170.0060.01914.19
5.4.160.0000.02714.09
5.4.150.0040.01814.19
5.4.140.0020.01713.25
5.4.130.0010.02213.25
5.4.120.0040.02813.23
5.4.110.0060.01113.24
5.4.100.0060.01313.24
5.4.90.0040.01513.25
5.4.80.0060.01513.23
5.4.70.0020.01613.20
5.4.60.0050.01313.26
5.4.50.0050.01113.26
5.4.40.0020.01513.29
5.4.30.0040.01413.27
5.4.20.0040.01513.22
5.4.10.0020.01813.18
5.4.00.0030.01513.06
5.3.290.0010.02312.60
5.3.280.0060.02112.60
5.3.270.0020.02212.62
5.3.260.0010.02112.63
5.3.250.0050.01912.63
5.3.240.0020.01712.61
5.3.230.0030.01512.63
5.3.220.0050.02112.59
5.3.210.0000.01812.66
5.3.200.0040.01212.66
5.3.190.0030.01612.59
5.3.180.0030.01412.60
5.3.170.0040.01512.64
5.3.160.0050.01512.60
5.3.150.0020.01512.61
5.3.140.0050.01212.66
5.3.130.0020.01912.61
5.3.120.0020.01512.65
5.3.110.0030.01812.65
5.3.100.0030.01612.41
5.3.90.0020.01612.42
5.3.80.0000.02012.38
5.3.70.0030.01512.43
5.3.60.0000.01712.43
5.3.50.0030.01512.45
5.3.40.0020.01612.40
5.3.30.0030.01412.44
5.3.20.0050.01412.27
5.3.10.0000.01512.29
5.3.00.0020.01612.29
5.2.170.0030.02711.13
5.2.160.0030.03311.21
5.2.150.0000.03011.05
5.2.140.0000.03011.07
5.2.130.0000.03011.16
5.2.120.0030.02711.17
5.2.110.0030.02311.04
5.2.100.0030.02711.04
5.2.90.0000.03010.89
5.2.80.0000.03011.11
5.2.70.0000.03011.10
5.2.60.0030.02710.95
5.2.50.0000.03010.97
5.2.40.0030.02711.00
5.2.30.0000.03310.93
5.2.20.0000.03010.90
5.2.10.0000.02711.09
5.2.00.0070.02310.85
5.1.60.0000.0239.92
5.1.50.0030.0209.82
5.1.40.0000.0239.87
5.1.30.0000.02710.26
5.1.20.0000.02710.36
5.1.10.0000.0209.97
5.1.00.0030.02010.03
5.0.50.0030.0179.79
5.0.40.0000.0209.79
5.0.30.0030.0679.79
5.0.20.0030.0139.79
5.0.10.0030.0139.79
5.0.00.0030.0239.79
4.4.90.0000.0139.79
4.4.80.0000.0139.79
4.4.70.0000.0139.79
4.4.60.0000.0139.79
4.4.50.0030.0109.79
4.4.40.0030.0209.79
4.4.30.0000.0179.79
4.4.20.0000.0139.79
4.4.10.0000.0139.79
4.4.00.0000.0209.79
4.3.110.0000.0139.79
4.3.100.0000.0139.79
4.3.90.0000.0179.79
4.3.80.0000.0209.79
4.3.70.0000.0139.79
4.3.60.0000.0339.79
4.3.50.0000.0179.79
4.3.40.0000.0239.79
4.3.30.0030.0379.79
4.3.20.0030.0339.79
4.3.10.0030.0139.79
4.3.00.0000.0239.79

preferences:
64.04 ms | 401 KiB | 5 Q