3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait a { public function get() { echo "a"; } } trait b { public function get() { echo "b"; } } class c { use a, b; public function get() { echo "c"; } } $c = new c; $c->get();

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.0120.00618.31
8.3.50.0110.01022.11
8.3.40.0070.00718.67
8.3.30.0030.01020.13
8.3.20.0050.00220.30
8.3.10.0080.00021.98
8.3.00.0070.00022.46
8.2.180.0070.01418.31
8.2.170.0070.00722.96
8.2.160.0040.01120.45
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0110.00726.16
8.2.120.0040.00419.54
8.2.110.0090.00022.25
8.2.100.0040.00719.23
8.2.90.0030.00619.05
8.2.80.0040.00419.17
8.2.70.0060.00317.50
8.2.60.0030.00518.04
8.2.50.0030.00618.07
8.2.40.0030.00618.22
8.2.30.0050.00317.95
8.2.20.0030.00617.72
8.2.10.0050.00217.69
8.2.00.0000.00817.59
8.1.280.0100.01025.92
8.1.270.0070.00024.66
8.1.260.0070.00026.35
8.1.250.0030.00528.09
8.1.240.0060.00323.88
8.1.230.0110.00019.08
8.1.220.0090.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0080.00017.55
8.1.180.0040.00419.99
8.1.170.0000.00818.68
8.1.160.0000.00721.99
8.1.150.0040.00418.64
8.1.140.0040.00417.39
8.1.130.0000.00717.83
8.1.120.0030.00317.50
8.1.110.0000.00817.36
8.1.100.0040.00417.52
8.1.90.0040.00417.42
8.1.80.0000.00817.44
8.1.70.0030.00517.39
8.1.60.0000.00817.54
8.1.50.0020.00517.48
8.1.40.0040.00417.48
8.1.30.0040.00417.46
8.1.20.0000.00817.64
8.1.10.0000.00717.59
8.1.00.0040.00417.53
8.0.300.0040.00418.77
8.0.290.0040.00417.04
8.0.280.0040.00318.39
8.0.270.0030.00317.17
8.0.260.0070.00016.77
8.0.250.0040.00416.95
8.0.240.0040.00416.88
8.0.230.0030.00316.94
8.0.220.0000.00716.85
8.0.210.0000.00716.80
8.0.200.0030.00317.01
8.0.190.0030.00316.98
8.0.180.0130.00016.85
8.0.170.0030.00616.92
8.0.160.0030.00316.96
8.0.150.0030.00316.86
8.0.140.0040.00416.81
8.0.130.0030.00313.36
8.0.120.0070.00016.85
8.0.110.0070.00016.81
8.0.100.0000.00716.77
8.0.90.0030.00316.72
8.0.80.0030.01216.93
8.0.70.0080.00016.81
8.0.60.0000.00816.98
8.0.50.0000.00716.75
8.0.30.0130.00517.07
8.0.20.0090.01117.40
8.0.10.0080.00017.04
8.0.00.0110.00816.84
7.4.330.0060.00015.00
7.4.320.0000.00616.45
7.4.300.0080.00016.58
7.4.290.0030.00316.50
7.4.280.0070.00016.47
7.4.270.0030.00316.52
7.4.260.0040.00416.50
7.4.250.0030.00516.43
7.4.240.0000.00716.52
7.4.230.0070.00016.58
7.4.220.0130.00716.47
7.4.210.0080.00716.56
7.4.200.0030.00316.63
7.4.190.0030.00316.55
7.4.160.0090.00916.62
7.4.150.0060.01317.40
7.4.140.0050.01317.86
7.4.130.0130.00616.54
7.4.120.0060.01016.40
7.4.110.0120.00616.54
7.4.100.0070.01316.58
7.4.90.0050.01416.54
7.4.80.0070.01019.39
7.4.70.0090.00616.45
7.4.60.0100.00616.49
7.4.50.0000.00816.39
7.4.40.0070.01022.77
7.4.30.0110.01116.48
7.4.00.0080.00814.91
7.3.330.0000.00513.25
7.3.320.0020.00213.09
7.3.310.0030.00316.13
7.3.300.0000.00716.20
7.3.290.0110.00316.21
7.3.280.0090.00816.20
7.3.270.0030.01417.40
7.3.260.0130.00616.46
7.3.250.0090.01216.49
7.3.240.0100.00716.29
7.3.230.0040.01216.39
7.3.210.0080.00816.36
7.3.200.0130.01019.39
7.3.190.0160.00816.37
7.3.180.0130.00316.27
7.3.170.0110.00916.49
7.3.160.0100.00716.37
7.3.120.0070.00814.78
7.3.110.0140.00414.75
7.3.100.0110.00414.55
7.3.90.0100.00314.70
7.3.80.0070.00714.60
7.3.70.0090.00614.82
7.3.60.0030.01414.52
7.3.50.0030.01214.81
7.3.40.0030.00614.41
7.3.30.0130.00014.56
7.3.20.0040.00416.43
7.3.10.0080.00516.46
7.3.00.0080.00316.39
7.2.330.0070.01116.81
7.2.320.0100.01116.41
7.2.310.0150.00416.69
7.2.300.0070.01016.46
7.2.290.0070.01016.34
7.2.250.0130.00714.91
7.2.240.0030.01314.53
7.2.230.0060.01014.82
7.2.220.0030.01314.79
7.2.210.0040.01114.86
7.2.200.0040.01414.95
7.2.190.0070.01114.96
7.2.180.0080.00614.72
7.2.170.0040.01114.95
7.2.130.0030.01016.92
7.2.120.0000.01216.95
7.2.110.0040.00816.67
7.2.100.0030.00917.07
7.2.90.0060.00916.97
7.2.80.0030.00716.79
7.2.70.0030.01016.91
7.2.60.0070.00716.89
7.2.50.0070.00716.91
7.2.40.0030.00716.69
7.2.30.0000.01116.94
7.2.20.0070.00316.88
7.2.10.0100.00316.72
7.2.00.0090.00518.04
7.1.330.0040.00915.53
7.1.320.0060.00615.54
7.1.310.0000.01015.59
7.1.300.0040.00415.73
7.1.290.0030.00715.32
7.1.280.0040.01115.35
7.1.270.0000.01515.74
7.1.260.0070.00715.52
7.1.250.0080.00615.56
7.1.200.0110.00015.69
7.1.100.0160.00618.14
7.1.70.0070.00016.81
7.1.60.0150.00919.43
7.1.50.0140.01016.63
7.1.00.0000.03722.54
7.0.200.0060.00316.75
7.0.140.0100.06721.95
7.0.60.0030.09019.88
7.0.50.0030.08317.73
7.0.40.0130.05720.18
7.0.30.0500.05020.26
7.0.20.0230.07720.26
7.0.10.0070.09020.20
7.0.00.0130.08020.24
5.6.280.0070.07021.15
5.6.210.0130.07720.56
5.6.200.0130.06018.21
5.6.190.0000.07020.64
5.6.180.0330.07320.43
5.6.170.0430.05320.61
5.6.160.0030.05720.46
5.6.150.0070.04718.17
5.6.140.0170.07018.11
5.6.130.0000.04318.11
5.6.120.0030.04321.09
5.6.110.0100.08020.94
5.6.100.0130.07721.11
5.6.90.0100.08721.00
5.6.80.0130.06720.40
5.6.70.4400.04020.50
5.5.350.0030.08320.32
5.5.340.0070.08017.98
5.5.330.0030.07320.37
5.5.320.0200.06720.35
5.5.310.0170.06720.24
5.5.300.0070.08717.94
5.5.290.0030.04018.08
5.5.280.0030.04020.98
5.5.270.0070.03720.86
5.5.260.0000.09720.71
5.5.250.0070.07320.66
5.5.240.0030.08320.36
5.4.450.0770.05319.61
5.4.440.0830.05719.55
5.4.430.0900.04319.57
5.4.420.0670.06719.57
5.4.410.0670.05319.21
5.4.400.0370.05018.86
5.4.390.0330.06718.51
5.4.380.0300.05718.75
5.4.370.0200.05018.52
5.4.360.0130.05018.79
5.4.350.0060.03812.02
5.4.340.0040.04212.02
5.4.320.0050.05212.50
5.4.310.0050.04512.50
5.4.300.0080.03312.50
5.4.290.0060.03612.50
5.4.280.0080.03712.39
5.4.270.0090.04112.39
5.4.260.0070.03612.39
5.4.250.0060.03712.39
5.4.240.0100.05018.99
5.4.230.0030.05319.02
5.4.220.0130.04718.76
5.4.210.0100.05318.80
5.4.200.0070.06018.94
5.4.190.0170.06718.79
5.4.180.0030.05718.98
5.4.170.0130.06718.95
5.4.160.0100.05018.80
5.4.150.0130.05318.73
5.4.140.0070.05316.36
5.4.130.0030.05316.54
5.4.120.0170.05016.56
5.4.110.0130.04316.46
5.4.100.0030.05016.38
5.4.90.0030.05016.47
5.4.80.0100.05016.52
5.4.70.0130.05016.52
5.4.60.0100.04716.55
5.4.50.0070.05016.48
5.4.40.0000.05316.44
5.4.30.0070.05716.38
5.4.20.0100.07016.62
5.4.10.0030.06716.45
5.4.00.0100.05315.79
5.3.290.0090.03712.80
5.3.280.0130.04314.60
5.3.270.0000.05714.38
5.3.260.0070.05314.60
5.3.250.0100.04714.46
5.3.240.0100.05014.60
5.3.230.0170.04014.69
5.3.220.0100.05714.57
5.3.210.0070.05014.61
5.3.200.0030.05014.59
5.3.190.0100.06714.46
5.3.180.0070.04714.58
5.3.170.0100.04714.58
5.3.160.0100.04714.48
5.3.150.0070.05314.33
5.3.140.0170.04714.33
5.3.130.0070.05314.32
5.3.120.0100.05014.55
5.3.110.0100.07014.57
5.3.100.0070.06713.89
5.3.90.0100.05314.00
5.3.80.0170.05014.02
5.3.70.0070.07014.17
5.3.60.0070.07313.88
5.3.50.0030.06713.96
5.3.40.0130.04713.83
5.3.30.0070.05013.95
5.3.20.0130.06013.58
5.3.10.0030.06713.69
5.3.00.0100.04713.48
5.2.170.0100.04011.14
5.2.160.0070.05011.14
5.2.150.0000.04711.25
5.2.140.0100.03711.07
5.2.130.0030.06311.13
5.2.120.0000.04711.11
5.2.110.0030.04711.01
5.2.100.0030.04311.19
5.2.90.0070.03711.19
5.2.80.0170.04311.01
5.2.70.0030.04310.92
5.2.60.0070.04010.97
5.2.50.0030.04711.17
5.2.40.0170.03011.01
5.2.30.0070.06010.89
5.2.20.0070.04310.72
5.2.10.0100.04710.92
5.2.00.0100.05010.62
5.1.60.0070.0439.90
5.1.50.0030.03710.18
5.1.40.0000.03710.17
5.1.30.0070.03710.48
5.1.20.0000.04010.39
5.1.10.0070.03310.10
5.1.00.0170.0239.84
5.0.50.0070.0238.64
5.0.40.0070.0278.64
5.0.30.0100.0408.45
5.0.20.0070.0378.20
5.0.10.0000.0438.07
5.0.00.0030.0478.21
4.4.90.0000.0237.32
4.4.80.0000.0307.32
4.4.70.0030.0277.32
4.4.60.0000.0307.32
4.4.50.0100.0277.32
4.4.40.0100.0307.32
4.4.30.0070.0237.32
4.4.20.0000.0277.32
4.4.10.0000.0237.32
4.4.00.0000.0407.32
4.3.110.0000.0277.32
4.3.100.0030.0237.32
4.3.90.0000.0337.32
4.3.80.0030.0437.32
4.3.70.0000.0307.32
4.3.60.0030.0237.32
4.3.50.0030.0237.32
4.3.40.0100.0307.32
4.3.30.0100.0177.32
4.3.20.0030.0277.32
4.3.10.0030.0307.32
4.3.00.0100.0236.81

preferences:
42.48 ms | 401 KiB | 5 Q