3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Test { protected $bridge; public function implement($name) { $this->bridge = $name; } } class A { use Test; public function __construct() { $this->implement('something'); } public function foo() { echo $this->bridge; } } class B extends A {}; var_dump(class_uses(new B()));

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.0110.00316.75
8.3.60.0100.01018.43
8.3.50.0090.01021.92
8.3.40.0140.00718.84
8.3.30.0140.00019.06
8.3.20.0050.00320.21
8.3.10.0070.00023.53
8.3.00.0000.00718.88
8.2.190.0070.01416.63
8.2.180.0140.00718.41
8.2.170.0080.00822.96
8.2.160.0130.00322.04
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00421.05
8.2.110.0030.00622.14
8.2.100.0110.00017.72
8.2.90.0030.00519.08
8.2.80.0000.00817.97
8.2.70.0050.00317.50
8.2.60.0050.00317.79
8.2.50.0090.00018.07
8.2.40.0070.00018.22
8.2.30.0040.00418.12
8.2.20.0040.00417.78
8.2.10.0030.00518.05
8.2.00.0040.00417.59
8.1.280.0100.01025.92
8.1.270.0060.00318.84
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0050.00523.70
8.1.230.0070.00419.16
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0000.00817.35
8.1.190.0000.00817.23
8.1.180.0060.00318.10
8.1.170.0080.00018.37
8.1.160.0040.00422.06
8.1.150.0040.00418.89
8.1.140.0000.00719.09
8.1.130.0040.00419.17
8.1.120.0070.00017.30
8.1.110.0080.00017.26
8.1.100.0000.00717.44
8.1.90.0000.00717.46
8.1.80.0040.00417.48
8.1.70.0050.00217.48
8.1.60.0040.00417.62
8.1.50.0030.00517.49
8.1.40.0040.00417.51
8.1.30.0050.00317.61
8.1.20.0040.00417.54
8.1.10.0000.00817.48
8.1.00.0040.00417.43
8.0.300.0050.00318.77
8.0.290.0040.00416.75
8.0.280.0030.00318.32
8.0.270.0000.00717.21
8.0.260.0030.00318.44
8.0.250.0000.00716.95
8.0.240.0000.00816.93
8.0.230.0000.00816.88
8.0.220.0040.00416.91
8.0.210.0040.00416.85
8.0.200.0030.00316.90
8.0.190.0040.00416.84
8.0.180.0000.00716.84
8.0.170.0080.00016.74
8.0.160.0030.00316.69
8.0.150.0080.00016.83
8.0.140.0000.00716.79
8.0.130.0000.00913.25
8.0.120.0080.00016.75
8.0.110.0040.00416.80
8.0.100.0070.00016.78
8.0.90.0040.00416.68
8.0.80.0080.01216.89
8.0.70.0040.00416.95
8.0.60.0040.00416.79
8.0.50.0040.00416.73
8.0.30.0090.01317.14
8.0.20.0090.01217.40
8.0.10.0000.00717.08
8.0.00.0110.00816.70
7.4.330.0050.00015.13
7.4.320.0030.00316.58
7.4.300.0000.00716.46
7.4.290.0070.00016.54
7.4.280.0000.00816.50
7.4.270.0030.00316.43
7.4.260.0000.00716.33
7.4.250.0030.00516.41
7.4.240.0040.00316.53
7.4.230.0030.00316.52
7.4.220.0070.01316.43
7.4.210.0140.00016.43
7.4.200.0080.00016.58
7.4.160.0110.00516.57
7.4.150.0090.00917.40
7.4.140.0040.01317.86
7.4.130.0110.00816.36
7.4.120.0070.01416.48
7.4.110.0070.01116.38
7.4.100.0130.00616.29
7.4.90.0080.00916.42
7.4.80.0160.00719.39
7.4.70.0090.01216.47
7.4.60.0030.01316.47
7.4.50.0040.00016.34
7.4.40.0120.00916.38
7.4.30.0170.00616.52
7.4.00.0070.00915.01
7.3.330.0050.00013.32
7.3.320.0060.00013.10
7.3.310.0000.00716.20
7.3.300.0000.00716.30
7.3.290.0080.00916.25
7.3.280.0070.00916.32
7.3.270.0150.00317.40
7.3.260.0100.00716.27
7.3.250.0110.00716.45
7.3.240.0150.00616.27
7.3.230.0070.01016.39
7.3.210.0100.00716.32
7.3.200.0080.00819.39
7.3.190.0130.00316.38
7.3.180.0180.00016.57
7.3.170.0040.01616.62
7.3.160.0030.01216.40
7.3.120.0110.00714.73
7.3.110.0030.01314.65
7.3.100.0070.01015.01
7.3.90.0030.00614.63
7.3.80.0030.01014.75
7.3.70.0080.00414.48
7.3.60.0100.00714.90
7.3.50.0030.00914.75
7.3.40.0080.00414.84
7.3.30.0070.00714.80
7.3.20.0060.00916.64
7.3.10.0040.01116.59
7.3.00.0070.00716.34
7.2.330.0110.00716.67
7.2.320.0140.00316.64
7.2.310.0040.01416.54
7.2.300.0100.00716.55
7.2.290.0090.01216.70
7.2.250.0000.01815.13
7.2.240.0070.01014.46
7.2.230.0120.00314.69
7.2.220.0050.00514.82
7.2.210.0100.00315.08
7.2.200.0000.01814.89
7.2.190.0000.00914.87
7.2.180.0120.00314.81
7.2.170.0030.01214.76
7.2.130.0040.01316.31
7.2.120.0130.00316.68
7.2.110.0070.00716.67
7.2.100.0070.01116.77
7.2.90.0030.01016.57
7.2.80.0090.00616.70
7.2.70.0100.00716.67
7.2.60.0070.01016.63
7.2.50.0070.00416.62
7.2.40.0040.00816.85
7.2.30.0040.00816.77
7.2.20.0070.00716.59
7.2.10.0100.00616.66
7.2.00.0070.00418.15
7.1.330.0090.00615.54
7.1.320.0060.00315.91
7.1.310.0070.00715.70
7.1.300.0130.00015.42
7.1.290.0070.00715.71
7.1.280.0090.00615.43
7.1.270.0030.00915.86
7.1.260.0090.00015.77
7.1.250.0090.00615.80
7.1.240.0000.01515.57
7.1.230.0130.00315.58
7.1.220.0090.00315.44
7.1.210.0110.00315.34
7.1.200.0090.00415.63
7.1.190.0130.00615.41
7.1.180.0040.01115.48
7.1.170.0160.00015.63
7.1.160.0040.00715.63
7.1.150.0090.00615.65
7.1.140.0030.01015.78
7.1.130.0070.00715.26
7.1.120.0100.00715.60
7.1.110.0140.00015.65
7.1.100.0100.00716.98
7.1.90.0060.01015.53
7.1.80.0060.00915.66
7.1.70.0080.00616.35
7.1.60.0050.01517.58
7.1.50.0170.00825.12
7.1.40.0090.00615.43
7.1.30.0080.00415.76
7.1.20.0060.00615.49
7.1.10.0070.00715.65
7.1.00.0090.03818.89
7.0.330.0070.00415.20
7.0.320.0030.01015.33
7.0.310.0070.01015.16
7.0.300.0070.00715.24
7.0.290.0030.01015.07
7.0.280.0150.00315.48
7.0.270.0040.00915.47
7.0.260.0060.00615.21
7.0.250.0080.00315.06
7.0.240.0150.00015.41
7.0.230.0120.00415.29
7.0.220.0110.00315.31
7.0.210.0170.00015.10
7.0.200.0050.00815.91
7.0.190.0060.00615.23
7.0.180.0080.00415.35
7.0.170.0090.00615.29
7.0.160.0080.00415.18
7.0.150.0070.00415.30
7.0.140.0070.02818.56
7.0.130.0090.00415.27
7.0.120.0170.00015.09
7.0.110.0100.00515.16
7.0.100.0090.00415.34
7.0.90.0080.01115.35
7.0.80.0090.00615.11
7.0.70.0100.00315.13
7.0.60.0080.04117.66
7.0.50.0070.04216.64
7.0.40.0030.03816.75
7.0.30.0150.04516.60
7.0.20.0150.02016.77
7.0.10.0030.03416.66
7.0.00.0050.03016.76
5.6.380.0070.00714.07
5.6.370.0030.00714.31
5.6.360.0080.00814.36
5.6.350.0030.00914.47
5.6.340.0080.00014.38
5.6.330.0060.00514.26
5.6.320.0000.01614.14
5.6.310.0040.00814.05
5.6.300.0060.00613.96
5.6.290.0050.00714.51
5.6.280.0040.04117.86
5.6.270.0050.00814.25
5.6.260.0070.00713.82
5.6.250.0000.00914.05
5.6.240.0030.01014.15
5.6.230.0060.00613.89
5.6.220.0060.00514.02
5.6.210.0050.03617.24
5.6.200.0020.05016.03
5.6.190.0030.03917.24
5.6.180.0130.02517.18
5.6.170.0150.03217.31
5.6.160.0070.02317.29
5.6.150.0050.02316.11
5.6.140.0040.04416.20
5.6.130.0020.02916.14
5.6.120.0090.02217.59
5.6.110.0060.04117.71
5.6.100.0080.04117.50
5.6.90.0090.02717.60
5.6.80.0110.03917.29
5.6.70.0050.00514.11
5.6.60.0080.00314.42
5.6.50.0080.00414.11
5.6.40.0060.00614.26
5.6.30.0030.01013.98
5.6.20.0000.00914.04
5.6.10.0070.00314.20
5.6.00.0090.00614.05
5.5.380.0000.00810.97
5.5.370.0070.00011.28
5.5.360.0000.00610.93
5.5.350.2020.02215.67
5.5.340.0030.02814.52
5.5.330.0030.04115.44
5.5.320.0130.04115.51
5.5.310.0050.02915.59
5.5.300.0030.02414.52
5.5.290.0120.03814.58
5.5.280.0080.02215.98
5.5.270.0040.02416.09
5.5.260.0100.04015.89
5.5.250.0090.04015.84
5.5.240.0000.04215.50
5.5.230.0040.00411.13
5.5.220.0070.00011.20
5.5.210.0030.00510.98
5.5.200.0110.00011.13
5.5.190.0030.00711.05
5.5.180.0060.00011.04
5.5.170.0060.00011.23
5.5.160.0060.00311.03
5.5.150.0000.00911.07
5.5.140.0050.00511.11
5.5.130.0030.00510.98
5.5.120.0030.00510.96
5.5.110.0040.00410.91
5.5.100.0050.00311.00
5.5.90.0080.00010.79
5.5.80.0030.00610.94
5.5.70.0030.00611.11
5.5.60.0030.00610.86
5.5.50.0080.00010.77
5.5.40.0030.00710.64
5.5.30.0000.00910.96
5.5.20.0080.00410.79
5.5.10.0100.00010.63
5.5.00.0050.00510.75
5.4.450.0450.03315.20
5.4.440.0450.02315.24
5.4.430.0330.02815.08
5.4.420.0320.03015.12
5.4.410.0430.02614.96
5.4.400.0450.02415.08
5.4.390.0120.03014.85
5.4.380.0140.03214.66
5.4.370.0230.02514.70
5.4.360.0180.02414.95
5.4.350.0180.02814.85
5.4.340.0100.03214.68
5.4.330.0100.00010.68
5.4.320.0120.03014.60
5.4.310.0150.03114.57
5.4.300.0130.02914.72
5.4.290.0080.04114.73
5.4.280.0210.02514.68
5.4.270.0110.03914.70
5.4.260.0180.02314.79
5.4.250.0170.02814.87
5.4.240.0150.02814.59
5.4.230.0170.03314.96
5.4.220.0150.03014.87
5.4.210.0120.03114.79
5.4.200.0070.03213.69
5.4.190.0200.02814.78
5.4.180.0180.02814.72
5.4.170.0130.04114.54
5.4.160.0140.02814.63
5.4.150.0130.02914.63
5.4.140.0160.03313.40
5.4.130.0130.02913.41
5.4.120.0140.03713.63
5.4.110.0100.03313.54
5.4.100.0170.03813.67
5.4.90.0150.04113.53
5.4.80.0150.03513.47
5.4.70.0180.02613.62
5.4.60.0110.02813.59
5.4.50.0130.02813.67
5.4.40.0070.03713.46
5.4.30.0140.02713.62
5.4.20.0120.02913.55
5.4.10.0160.02613.70
5.4.00.0180.02613.30
5.3.290.0170.03212.59
5.3.280.0180.02912.54
5.3.270.0220.03312.53
5.3.260.0110.04312.52
5.3.250.0130.03312.61
5.3.240.0110.03812.55
5.3.230.0170.03912.55
5.3.220.0180.02712.58
5.3.210.0170.02712.50
5.3.200.0220.03212.49
5.3.190.0130.04312.59
5.3.180.0170.02812.53
5.3.170.0160.02412.59
5.3.160.0110.03412.49
5.3.150.0140.03112.49
5.3.140.0150.03312.48
5.3.130.0150.02712.53
5.3.120.0080.03212.51
5.3.110.0060.03312.53
5.3.100.0150.02212.25
5.3.90.0070.03012.27
5.3.80.0080.03312.22
5.3.70.0130.03112.26
5.3.60.0070.03312.22
5.3.50.0050.03612.24
5.3.40.0180.02712.19
5.3.30.0150.02312.26
5.3.20.0160.02612.06
5.3.10.0140.02912.06
5.3.00.0180.03012.07
5.2.170.0110.02210.80
5.2.160.0120.02210.84
5.2.150.0090.02710.83
5.2.140.0060.03210.84
5.2.130.0060.02810.88
5.2.120.0130.02510.82
5.2.110.0080.03210.81
5.2.100.0080.02310.88
5.2.90.0130.02010.79
5.2.80.0130.02110.83
5.2.70.0060.02910.79
5.2.60.0130.02110.85
5.2.50.0080.02410.74
5.2.40.0120.02010.71
5.2.30.0070.02710.74
5.2.20.0130.01710.76
5.2.10.0090.02110.76
5.2.00.0050.02710.60
5.1.60.0080.02310.28
5.1.50.0100.02510.32
5.1.40.0070.02810.26
5.1.30.0100.01910.49
5.1.20.0090.02010.46
5.1.10.0080.02110.36
5.1.00.0050.02510.32
5.0.50.0070.0159.59
5.0.40.0030.0189.47
5.0.30.0070.0229.38
5.0.20.0050.0159.37
5.0.10.0060.0159.40
5.0.00.0030.0279.42
4.4.90.0030.0128.66
4.4.80.0030.0138.66
4.4.70.0020.0188.66
4.4.60.0030.0148.66
4.4.50.0050.0138.66
4.4.40.0030.0238.66
4.4.30.0070.0158.66
4.4.20.0000.0188.66
4.4.10.0040.0128.66
4.4.00.0070.0178.66
4.3.110.0050.0128.66
4.3.100.0030.0138.66
4.3.90.0000.0188.66
4.3.80.0000.0228.66
4.3.70.0050.0138.66
4.3.60.0050.0128.66
4.3.50.0020.0158.66
4.3.40.0050.0198.66
4.3.30.0000.0158.66
4.3.20.0050.0108.66
4.3.10.0000.0178.66
4.3.00.0030.0149.25

preferences:
38.14 ms | 401 KiB | 5 Q