3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait t { public function f() { return __CLASS__; } } class c { use t; } function dick(t $a) { return $a->f(); } $c = new c(); echo $c->f(); echo dick($c);

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.0090.00918.31
8.3.50.0090.00921.14
8.3.40.0040.01118.79
8.3.30.0100.01018.77
8.3.20.0070.00020.16
8.3.10.0070.00023.61
8.3.00.0090.00021.76
8.2.180.0110.00716.75
8.2.170.0090.00622.96
8.2.160.0150.00022.25
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0090.00017.50
8.2.110.0040.00420.99
8.2.100.0090.00317.91
8.2.90.0000.00917.97
8.2.80.0040.00417.97
8.2.70.0030.00517.75
8.2.60.0040.00417.79
8.2.50.0000.00818.07
8.2.40.0050.00320.97
8.2.30.0030.00519.90
8.2.20.0030.00517.65
8.2.10.0000.00818.09
8.2.00.0040.00418.07
8.1.280.0150.00025.92
8.1.270.0040.00420.25
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00422.06
8.1.230.0080.00321.03
8.1.220.0000.00817.74
8.1.210.0050.00319.66
8.1.200.0000.00917.35
8.1.190.0040.00417.23
8.1.180.0030.00518.10
8.1.170.0040.00418.64
8.1.160.0040.00422.05
8.1.150.0060.00318.77
8.1.140.0030.00517.44
8.1.130.0000.00717.75
8.1.120.0000.00817.49
8.1.110.0080.00017.45
8.1.100.0040.00417.46
8.1.90.0040.00417.35
8.1.80.0000.00817.34
8.1.70.0030.00317.38
8.1.60.0030.00517.64
8.1.50.0060.00617.52
8.1.40.0100.00317.49
8.1.30.0030.00517.54
8.1.20.0040.00417.54
8.1.10.0000.00717.56
8.1.00.0000.00917.36
8.0.300.0040.00420.07
8.0.290.0000.00716.75
8.0.280.0030.00318.44
8.0.270.0000.00717.24
8.0.260.0030.00317.25
8.0.250.0000.00816.96
8.0.240.0000.00816.93
8.0.230.0000.00816.88
8.0.220.0000.00716.97
8.0.210.0070.00016.92
8.0.200.0000.00816.96
8.0.190.0030.00616.86
8.0.180.0070.00016.97
8.0.170.0110.00016.98
8.0.160.0060.00317.02
8.0.150.0070.00016.78
8.0.140.0040.00416.93
8.0.130.0030.00313.43
8.0.120.0050.00316.90
8.0.110.0040.00416.91
8.0.100.0040.00416.97
8.0.90.0040.00416.74
8.0.80.0110.00716.85
8.0.70.0000.00717.01
8.0.60.0070.00016.77
8.0.50.0070.00016.95
8.0.30.0120.00617.12
8.0.20.0040.01517.40
8.0.10.0000.00716.95
8.0.00.0110.00616.82
7.4.330.0050.00015.08
7.4.320.0000.00616.59
7.4.300.0030.00316.47
7.4.290.0000.00716.50
7.4.280.0000.00816.38
7.4.270.0030.00316.59
7.4.260.0030.00416.62
7.4.250.0070.00016.51
7.4.240.0020.00516.48
7.4.230.0040.00416.31
7.4.220.0140.00916.71
7.4.210.0040.01816.46
7.4.200.0070.00016.60
7.4.160.0100.01316.58
7.4.150.0100.01017.40
7.4.140.0160.00217.86
7.4.130.0180.00416.45
7.4.120.0140.00416.46
7.4.110.0060.01116.66
7.4.100.0090.01516.69
7.4.90.0120.00416.60
7.4.80.0030.01319.39
7.4.70.0060.01216.44
7.4.60.0130.00316.50
7.4.50.0000.00816.44
7.4.40.0070.01116.50
7.4.30.0050.01416.43
7.4.00.0080.00515.20
7.3.330.0060.00013.39
7.3.320.0020.00613.32
7.3.310.0000.00716.36
7.3.300.0030.00316.42
7.3.290.0060.01116.35
7.3.280.0090.01016.37
7.3.270.0100.00717.40
7.3.260.0030.01516.55
7.3.250.0120.00816.36
7.3.240.0100.01616.50
7.3.230.0100.01316.58
7.3.210.0110.01116.58
7.3.200.0030.01416.36
7.3.190.0080.00816.45
7.3.180.0090.00916.35
7.3.170.0150.00416.43
7.3.160.0160.00716.44
7.2.330.0100.00616.44
7.2.320.0150.00316.38
7.2.310.0100.01016.82
7.2.300.0110.01216.50
7.2.290.0100.00716.68
7.2.80.0100.00316.64
7.2.60.0120.00316.71
7.2.00.0090.00619.48
7.1.200.0060.00615.51
7.1.100.0040.00817.91
7.1.70.0030.00616.89
7.1.60.0120.00619.18
7.1.50.0060.01916.90
7.1.00.0030.07722.29
7.0.200.0190.00316.84
7.0.60.0170.07720.03
7.0.50.0170.03017.87
7.0.40.0200.06020.26
7.0.30.0470.07320.07
7.0.20.0370.04320.09
7.0.10.0030.04720.12
7.0.00.0070.09020.20
5.6.280.0000.07320.77
5.6.210.0130.08020.53
5.6.200.0100.08718.18
5.6.190.0130.06320.63
5.6.180.0330.08320.68
5.6.170.0130.04320.54
5.6.160.0130.07720.39
5.6.150.0070.07318.28
5.6.140.0100.08018.28
5.6.130.0070.04718.26
5.6.120.0130.06320.99
5.6.110.0030.08721.14
5.6.100.0170.08321.14
5.6.90.0170.07720.91
5.6.80.0070.06720.44
5.5.350.0200.08020.29
5.5.340.0070.04018.05
5.5.330.0000.08720.18
5.5.320.0370.04020.36
5.5.310.0270.05720.36
5.5.300.0100.08017.95
5.5.290.0100.04718.02
5.5.280.0100.08020.88
5.5.270.0070.08320.82
5.5.260.0070.05020.95
5.5.250.0030.07720.69
5.5.240.0070.06720.12
5.4.450.0070.04719.55
5.4.440.0030.07019.27
5.4.430.0030.05019.54
5.4.420.0100.07319.47
5.4.410.0100.05019.34
5.4.400.0030.04018.99
5.4.390.0070.07318.87
5.4.380.0070.06019.24
5.4.370.0100.07018.85
5.4.360.0000.04719.31
5.4.350.0070.07019.06
5.4.340.0100.04018.84
5.4.320.0100.04019.22
5.4.310.0070.05319.11
5.4.300.0030.07019.27
5.4.290.0070.07318.86
5.4.280.0030.04719.24
5.4.270.0030.04019.21
5.4.260.0030.07719.13
5.4.250.0030.05319.24
5.4.240.0070.07318.97
5.4.230.0030.07019.13
5.4.220.0070.07018.84
5.4.210.0000.07319.25
5.4.200.0070.08019.08
5.4.190.0100.06319.21
5.4.180.0070.06318.86
5.4.170.0070.04018.86
5.4.160.0100.07319.14
5.4.150.0030.05019.14
5.4.140.0030.07016.44
5.4.130.0130.03716.56
5.4.120.0070.04716.33
5.4.110.0030.07016.50
5.4.100.0100.06316.61
5.4.90.0070.07316.45
5.4.80.0030.04716.44
5.4.70.0000.04716.57
5.4.60.0030.05716.45
5.4.50.0030.06716.51
5.4.40.0100.03316.48
5.4.30.0000.07016.42
5.4.20.0030.07016.34
5.4.10.0070.04016.53
5.4.00.0030.04015.96
5.3.290.0070.07314.53
5.3.280.0000.07714.47
5.3.270.0030.07714.45
5.3.260.0100.04014.46
5.3.250.0030.07014.63
5.3.240.0000.06314.46
5.3.230.0030.04314.44
5.3.220.0030.04314.43
5.3.210.0070.07314.52
5.3.200.0000.06714.41
5.3.190.0070.03714.53
5.3.180.0070.03714.40
5.3.170.0030.06314.41
5.3.160.0000.08014.51
5.3.150.0070.06314.51
5.3.140.0000.08014.50
5.3.130.0030.06314.60
5.3.120.0070.07314.64
5.3.110.0030.07014.40
5.3.100.0070.07313.93
5.3.90.0000.07313.98
5.3.80.0000.07013.92
5.3.70.0070.06314.04
5.3.60.0070.06013.95
5.3.50.0030.05713.89
5.3.40.0170.05313.79
5.3.30.0000.07713.69
5.3.20.0100.06313.64
5.3.10.0070.06713.70
5.3.00.0030.07013.57
5.2.170.0030.06711.84
5.2.160.0000.03311.84
5.2.150.0000.05311.84
5.2.140.0070.04711.84
5.2.130.0030.06011.84
5.2.120.0030.06011.84
5.2.110.0030.06011.84
5.2.100.0000.04011.84
5.2.90.0070.05711.84
5.2.80.0000.04311.84
5.2.70.0000.05311.84
5.2.60.0070.03711.84
5.2.50.0000.03711.84
5.2.40.0000.06711.84
5.2.30.0030.06011.84
5.2.20.0030.04711.84
5.2.10.0100.03011.84
5.2.00.0030.04311.84
5.1.60.0030.05311.84
5.1.50.0070.02311.84
5.1.40.0000.03011.84
5.1.30.0000.03311.84
5.1.20.0000.06011.84
5.1.10.0000.03311.84
5.1.00.0000.02311.84
5.0.50.0000.02311.84
5.0.40.0000.02011.84
5.0.30.0070.06011.84
5.0.20.0030.02711.84
5.0.10.0030.04311.84
5.0.00.0030.06311.84
4.4.90.0030.02311.84
4.4.80.0070.01311.84
4.4.70.0000.03011.84
4.4.60.0000.02311.84
4.4.50.0030.03311.84
4.4.40.0000.04011.84
4.4.30.0000.01711.84
4.4.20.0030.02011.84
4.4.10.0030.01311.84
4.4.00.0000.02711.84
4.3.110.0030.03011.84
4.3.100.0000.01711.84
4.3.90.0000.03711.84
4.3.80.0000.03311.84
4.3.70.0000.03011.84
4.3.60.0000.03711.84
4.3.50.0000.04011.84
4.3.40.0070.03711.84
4.3.30.0000.03711.84
4.3.20.0000.03711.84
4.3.10.0000.03711.84
4.3.00.0000.02311.84

preferences:
51.93 ms | 401 KiB | 5 Q