3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait T { public function f() { echo 'trait'; } } class C { public function f() { echo 'class'; } } class CE extends C { use T; } $c = new CE; $c->f();

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.0110.00418.56
8.3.50.0180.00321.08
8.3.40.0040.01118.84
8.3.30.0060.00918.67
8.3.20.0080.00018.52
8.3.10.0060.00320.49
8.3.00.0030.00519.13
8.2.180.0150.00718.29
8.2.170.0070.00722.96
8.2.160.0100.00322.16
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00419.76
8.2.110.0070.00321.11
8.2.100.0140.00317.48
8.2.90.0000.00818.98
8.2.80.0030.00517.97
8.2.70.0030.00517.63
8.2.60.0000.00917.80
8.2.50.0050.00518.10
8.2.40.0100.00022.32
8.2.30.0000.00718.14
8.2.20.0040.00417.60
8.2.10.0000.00817.61
8.2.00.0040.00417.79
8.1.280.0090.00625.92
8.1.270.0050.00323.99
8.1.260.0100.00726.35
8.1.250.0140.00328.09
8.1.240.0050.00520.96
8.1.230.0070.00417.77
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0000.00917.35
8.1.190.0050.00317.25
8.1.180.0000.00818.10
8.1.170.0080.00018.51
8.1.160.0050.00322.14
8.1.150.0030.00518.70
8.1.140.0040.00417.51
8.1.130.0030.00317.87
8.1.120.0040.00417.46
8.1.110.0040.00417.50
8.1.100.0000.00717.44
8.1.90.0030.00317.43
8.1.80.0040.00417.36
8.1.70.0080.00017.43
8.1.60.0000.00817.59
8.1.50.0000.01017.53
8.1.40.0060.00317.45
8.1.30.0000.00817.64
8.1.20.0050.00517.62
8.1.10.0040.00417.51
8.1.00.0000.00817.45
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0000.00718.37
8.0.270.0000.00717.30
8.0.260.0000.00716.82
8.0.250.0020.00516.99
8.0.240.0040.00417.00
8.0.230.0050.00317.02
8.0.220.0000.00716.91
8.0.210.0030.00316.80
8.0.200.0030.00316.86
8.0.190.0000.00716.97
8.0.180.0000.00716.94
8.0.170.0030.00616.85
8.0.160.0040.00416.87
8.0.150.0000.00716.84
8.0.140.0190.00016.75
8.0.130.0000.00613.39
8.0.120.0000.00816.77
8.0.110.0000.00817.00
8.0.100.0030.00516.82
8.0.90.0000.00716.72
8.0.80.0030.01216.88
8.0.70.0040.00416.93
8.0.60.0050.00216.72
8.0.50.0050.00216.92
8.0.30.0130.00617.04
8.0.20.0060.01317.40
8.0.10.0070.00016.97
8.0.00.0100.01016.97
7.4.330.0050.00013.43
7.4.320.0000.00716.59
7.4.300.0000.00716.49
7.4.290.0070.00016.61
7.4.280.0040.00416.50
7.4.270.0030.00316.55
7.4.260.0000.00613.31
7.4.250.0040.00416.52
7.4.240.0080.00016.49
7.4.230.0000.00716.55
7.4.220.0170.01016.57
7.4.210.0060.00716.54
7.4.200.0040.00416.50
7.4.190.0070.00016.74
7.4.160.0030.01316.66
7.4.150.0150.00617.40
7.4.140.0090.00817.18
7.4.130.0080.01116.53
7.4.120.0120.00716.48
7.4.110.0070.01016.40
7.4.100.0100.00716.46
7.4.90.0100.00716.38
7.4.80.0080.00816.37
7.4.70.0060.01316.36
7.4.60.0130.00316.51
7.4.50.0060.00316.42
7.4.40.0060.00622.27
7.4.30.0060.01016.52
7.4.00.0000.01714.66
7.3.330.0050.00013.34
7.3.320.0000.00613.19
7.3.310.0000.00716.38
7.3.300.0000.00616.30
7.3.290.0120.00316.26
7.3.280.0080.00816.30
7.3.270.0160.00017.40
7.3.260.0120.01018.24
7.3.250.0100.00916.38
7.3.240.0180.00416.35
7.3.230.0060.01616.39
7.3.210.0110.00716.21
7.3.200.0130.00619.39
7.3.190.0080.01316.21
7.3.180.0080.00816.31
7.3.170.0060.01616.42
7.3.160.0030.01316.18
7.3.120.0090.00914.38
7.3.10.0060.00916.72
7.3.00.0030.01716.15
7.2.330.0120.00616.72
7.2.320.0070.01016.53
7.2.310.0090.01416.35
7.2.300.0100.00716.45
7.2.290.0060.01116.23
7.2.130.0110.01516.37
7.2.120.0150.01116.44
7.2.110.0180.00916.37
7.2.100.0120.01216.36
7.2.90.0140.01416.65
7.2.80.0140.01416.16
7.2.70.0140.01416.46
7.2.60.0110.00616.30
7.2.50.0270.00416.46
7.2.40.0190.00616.54
7.2.30.0220.00916.88
7.2.20.0090.01816.34
7.2.10.0100.01016.28
7.2.00.0060.01217.92
7.1.250.0200.00715.34
7.1.100.0060.01017.88
7.1.70.0000.00817.23
7.1.60.0150.00719.40
7.1.50.0100.01016.65
7.1.00.0030.07722.33
7.0.200.0000.00716.41
7.0.140.0070.07022.08
7.0.60.0100.03319.91
7.0.50.0100.06317.78
7.0.40.0200.07317.86
7.0.30.0100.08317.69
7.0.20.0070.08017.75
7.0.10.0130.07017.68
7.0.00.0000.04717.80
5.6.280.0130.06320.89
5.6.210.0070.08020.69
5.6.200.0130.08318.18
5.6.190.0100.05018.29
5.6.180.0170.07018.29
5.6.170.0030.08718.16
5.6.160.0030.07018.18
5.6.150.0170.05718.18
5.6.140.0030.04318.16
5.6.130.0070.06318.18
5.6.120.0070.08718.18
5.6.110.0000.05718.18
5.6.100.0100.03718.28
5.6.90.0070.04318.10
5.6.80.0000.05317.57
5.6.70.0070.03717.50
5.6.60.0130.07317.65
5.6.50.0100.06717.56
5.6.40.0200.05717.54
5.6.30.0070.07717.61
5.6.20.0030.08017.54
5.6.10.0030.08017.46
5.6.00.0070.05317.55
5.5.350.0030.08320.35
5.5.340.0070.04018.03
5.5.330.0030.08018.04
5.5.320.0000.08318.02
5.5.310.0200.06318.04
5.5.300.0100.07317.95
5.5.290.0100.08017.98
5.5.280.0070.04318.02
5.5.270.0070.09018.07
5.5.260.0030.08717.94
5.5.250.0100.03717.80
5.5.240.0070.03717.33
5.5.230.0030.08017.41
5.5.220.0030.07717.36
5.5.210.0100.06017.30
5.5.200.0100.03717.34
5.5.190.0000.06717.33
5.5.180.0000.07317.48
5.5.160.0100.07717.34
5.5.150.0070.07717.44
5.5.140.0100.05317.37
5.5.130.0100.07717.36
5.5.120.0100.07017.37
5.5.110.0100.05717.35
5.5.100.0100.04017.23
5.5.90.0070.07317.31
5.5.80.0100.07317.23
5.5.70.0100.04317.20
5.5.60.0070.06717.16
5.5.50.0100.07317.24
5.5.40.0070.04717.33
5.5.30.0030.04717.23
5.5.20.0070.06017.19
5.5.10.0100.07317.32
5.5.00.0030.06717.37
5.4.450.0030.08719.34
5.4.440.0130.05019.31
5.4.430.0130.06719.35
5.4.420.0100.06719.28
5.4.410.0030.04019.29
5.4.400.0100.07019.10
5.4.390.0070.03718.95
5.4.380.0070.04719.11
5.4.370.0100.07019.15
5.4.360.0130.04718.99
5.4.350.0100.07318.95
5.4.340.0030.06019.05
5.4.320.0100.06719.27
5.4.310.0130.07319.12
5.4.300.0030.06019.10
5.4.290.0130.07319.01
5.4.280.0070.07719.03
5.4.270.0070.06719.12
5.4.260.0130.03319.11
5.4.250.0030.04019.02
5.4.240.0100.05019.05
5.4.230.0130.07019.05
5.4.220.0030.08019.05
5.4.210.0030.08019.04
5.4.200.0070.04719.04
5.4.190.0130.04319.12
5.4.180.0000.04719.00
5.4.170.0100.07319.11
5.4.160.0070.03718.99
5.4.150.0070.07319.10
5.4.140.0070.07716.36
5.4.130.0030.05716.40
5.4.120.0100.07016.37
5.4.110.0070.05716.36
5.4.100.0070.07016.40
5.4.90.0130.06316.40
5.4.80.0030.04716.44
5.4.70.0030.04016.51
5.4.60.0030.03716.38
5.4.50.0000.07716.45
5.4.40.0030.08316.41
5.4.30.0030.06016.37
5.4.20.0070.07316.42
5.4.10.0130.06716.39
5.4.00.0070.07016.02
5.3.290.0070.07314.63
5.3.280.0130.06714.52
5.3.270.0070.07714.43
5.3.260.0100.07014.52
5.3.250.0100.03314.46
5.3.240.0070.05014.69
5.3.230.0100.07314.51
5.3.220.0070.07014.53
5.3.210.0070.05314.42
5.3.200.0030.05014.53
5.3.190.0030.05314.51
5.3.180.0030.06314.50
5.3.170.0100.07014.55
5.3.160.0200.06014.54
5.3.150.0130.07314.34
5.3.140.0030.08714.52
5.3.130.0100.06014.38
5.3.120.0070.07714.38
5.3.110.0100.07314.51
5.3.100.0000.08014.02
5.3.90.0030.07313.88
5.3.80.0100.07013.95
5.3.70.0030.07713.99
5.3.60.0070.06713.97
5.3.50.0170.05713.71
5.3.40.0030.07713.90
5.3.30.0000.04713.86
5.3.20.0070.05713.64
5.3.10.0070.07013.57
5.3.00.0030.03713.61
5.2.170.0030.05711.14
5.2.160.0070.05711.12
5.2.150.0030.04711.14
5.2.140.0100.06011.04
5.2.130.0100.05711.07
5.2.120.0030.06011.00
5.2.110.0100.03311.07
5.2.100.0000.03011.00
5.2.90.0030.02710.94
5.2.80.0030.02711.08
5.2.70.0030.03011.07
5.2.60.0000.03011.00
5.2.50.0030.02710.76
5.2.40.0100.02010.98
5.2.30.0030.02710.96
5.2.20.0070.02710.89
5.2.10.0000.03010.83
5.2.00.0000.03010.75
5.1.60.0030.0209.97
5.1.50.0030.0239.96
5.1.40.0030.0209.89
5.1.30.0000.02710.17
5.1.20.0070.02310.35
5.1.10.0030.02310.05
5.1.00.0030.02310.09
5.0.50.0030.0178.51
5.0.40.0000.0238.34
5.0.30.0000.0308.27
5.0.20.0030.0178.23
5.0.10.0030.0178.15
5.0.00.0000.0308.20
4.4.90.0030.0137.68
4.4.80.0000.0177.68
4.4.70.0030.0207.68
4.4.60.0000.0237.68
4.4.50.0000.0137.68
4.4.40.0000.0237.68
4.4.30.0030.0137.68
4.4.20.0000.0137.68
4.4.10.0030.0137.68
4.4.00.0000.0277.68
4.3.110.0000.0137.68
4.3.100.0030.0107.68
4.3.90.0000.0177.68
4.3.80.0000.0237.68
4.3.70.0000.0137.68
4.3.60.0000.0137.68
4.3.50.0000.0137.68
4.3.40.0030.0207.68
4.3.30.0000.0137.68
4.3.20.0000.0177.68
4.3.10.0000.0137.68
4.3.00.0070.0137.68

preferences:
43 ms | 401 KiB | 5 Q