3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait T { public function foo($foo) { } } interface I { function foo(); } class P { use T; } class C extends P implements I { use T; } $c = new C(); $c->foo(1);

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.5.30.0120.00521.22
8.5.20.0060.00119.63
8.5.10.0130.00516.77
8.5.00.0110.01119.85
8.4.180.0100.01219.61
8.4.170.0060.00320.45
8.4.160.0110.01320.61
8.4.150.0080.00416.83
8.4.140.0140.00717.47
8.4.130.0070.00318.64
8.4.120.0130.00723.98
8.4.110.0120.00818.51
8.4.100.0040.00419.18
8.4.90.0130.00722.61
8.4.80.0040.00618.79
8.4.70.0130.00720.81
8.4.60.0150.00618.86
8.4.50.0090.00620.30
8.4.40.0070.00717.59
8.4.30.0030.01718.70
8.4.20.0070.01018.60
8.4.10.0070.00317.63
8.3.300.0100.01019.16
8.3.290.0040.00720.83
8.3.280.0120.00818.41
8.3.270.0110.00816.73
8.3.260.0070.00316.57
8.3.250.0120.00916.61
8.3.240.0100.00817.03
8.3.230.0100.00716.74
8.3.220.0060.01018.75
8.3.210.0100.00918.54
8.3.200.0040.00516.85
8.3.190.0110.00920.42
8.3.180.0090.00918.94
8.3.170.0070.00016.70
8.3.160.0100.00716.97
8.3.150.0070.01117.12
8.3.140.0130.00318.92
8.3.130.0030.01618.50
8.3.120.0080.00820.76
8.3.110.0100.00620.94
8.3.100.0030.00624.06
8.3.90.0040.00418.50
8.3.80.0030.00618.30
8.3.70.0070.01018.43
8.3.60.0110.00418.27
8.3.50.0070.00718.06
8.3.40.0090.00618.54
8.3.30.0040.01118.54
8.3.20.0040.00419.22
8.3.10.0080.00023.54
8.3.00.0040.00422.40
8.2.300.0100.01020.25
8.2.290.0100.00920.30
8.2.280.0070.00518.30
8.2.270.0100.01016.84
8.2.260.0040.00416.66
8.2.250.0090.00916.53
8.2.240.0080.00016.98
8.2.230.0040.00422.58
8.2.220.0060.00937.54
8.2.210.0040.00426.77
8.2.200.0060.00318.04
8.2.190.0070.01316.63
8.2.180.0170.00318.29
8.2.170.0150.00322.96
8.2.160.0070.00721.07
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0040.00422.21
8.2.120.0060.00326.35
8.2.110.0030.00620.56
8.2.100.0150.00017.72
8.2.90.0040.00417.75
8.2.80.0040.00417.97
8.2.70.0040.00417.99
8.2.60.0080.00017.97
8.2.50.0060.00318.10
8.2.40.0080.00021.09
8.2.30.0070.00020.61
8.2.20.0050.00217.86
8.2.10.0070.00017.96
8.2.00.0030.00319.30
8.1.340.0110.00820.11
8.1.330.0090.00922.15
8.1.320.0090.01016.19
8.1.310.0190.00015.98
8.1.300.0040.00718.24
8.1.290.0030.00618.88
8.1.280.0120.00325.92
8.1.270.0130.00323.77
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00617.23
8.1.230.0000.01118.59
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0050.00317.13
8.1.180.0040.00418.10
8.1.170.0000.00818.84
8.1.160.0070.00018.75
8.1.150.0000.00818.81
8.1.140.0060.00318.94
8.1.130.0000.00718.86
8.1.120.0000.00717.46
8.1.110.0000.00817.41
8.1.100.0050.00317.38
8.1.90.0030.00617.38
8.1.80.0050.00217.41
8.1.70.0050.00317.45
8.1.60.0040.00417.45
8.1.50.0050.00317.49
8.1.40.0040.00417.49
8.1.30.0040.00417.63
8.1.20.0070.00417.59
8.1.10.0040.00417.27
8.1.00.0000.00817.22
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0070.00018.38
8.0.270.0030.00317.09
8.0.260.0030.00318.55
8.0.250.0040.00716.94
8.0.240.0000.00716.99
8.0.230.0070.00016.81
8.0.220.0000.00716.80
8.0.210.0070.00016.80
8.0.200.0080.00016.96
8.0.190.0050.00316.96
8.0.180.0040.00416.80
8.0.170.0040.00416.86
8.0.160.0030.00516.92
8.0.150.0060.00616.80
8.0.140.0040.00416.80
8.0.130.0030.00313.24
8.0.120.0060.00316.73
8.0.110.0070.00016.88
8.0.100.0000.00716.70
8.0.90.0000.00716.67
8.0.80.0080.00816.94
8.0.70.0000.00816.87
8.0.60.0000.00816.76
8.0.50.0070.00016.88
8.0.30.0090.01117.04
8.0.20.0140.00617.40
8.0.10.0050.00217.05
8.0.00.0050.01216.63
7.4.330.0050.00015.55
7.4.320.0030.00316.50
7.4.300.0040.00416.45
7.4.290.0040.00416.54
7.4.280.0030.00716.46
7.4.270.0070.00016.54
7.4.260.0000.00816.50
7.4.250.0070.00016.45
7.4.240.0030.00316.55
7.4.230.0030.00316.45
7.4.220.0040.00416.45
7.4.210.0040.00916.49
7.4.200.0020.00516.29
7.4.160.0080.01016.47
7.4.140.0100.00817.86
7.4.130.0100.00916.71
7.4.120.0100.00816.45
7.4.110.0070.01016.48
7.4.100.0060.01116.25
7.4.90.0100.01316.40
7.4.80.0070.01419.39
7.4.70.0060.01116.27
7.4.60.0080.01216.27
7.4.50.0030.00716.43
7.4.40.0130.00416.37
7.4.10.0060.00914.81
7.4.00.0070.00915.01
7.3.330.0030.00313.14
7.3.320.0030.00313.38
7.3.310.0070.00016.16
7.3.300.0070.00016.21
7.3.290.0030.00316.18
7.3.280.0100.00816.23
7.3.260.0140.00716.28
7.3.240.0070.01216.42
7.3.230.0110.00616.58
7.3.210.0140.00316.52
7.3.200.0100.01016.49
7.3.190.0040.01116.55
7.3.180.0100.00616.25
7.3.170.0140.00316.45
7.3.160.0140.00316.51
7.3.130.0030.01414.81
7.3.120.0050.01414.74
7.3.110.0050.01014.89
7.3.100.0060.00914.66
7.3.90.0090.00314.89
7.3.80.0030.01014.85
7.3.70.0030.01014.82
7.3.60.0110.00514.82
7.3.50.0050.00814.73
7.3.40.0060.01114.52
7.3.30.0070.00814.82
7.3.20.0060.00916.66
7.3.10.0030.01016.55
7.3.00.0060.00616.49
7.2.330.0140.00816.32
7.2.320.0100.00716.44
7.2.310.0040.01416.18
7.2.300.0110.00816.18
7.2.290.0100.00716.48
7.2.260.0030.01314.88
7.2.250.0050.01114.78
7.2.240.0110.00614.92
7.2.230.0060.00914.98
7.2.220.0050.01215.00
7.2.210.0070.00714.92
7.2.200.0100.00414.83
7.2.190.0040.00814.63
7.2.180.0070.00514.70
7.2.170.0120.00514.78
7.2.160.0060.00914.97
7.2.150.0040.01216.55
7.2.140.0060.01016.85
7.2.130.0030.01016.97
7.2.120.0090.00616.70
7.2.110.0070.00716.72
7.2.100.0060.00316.89
7.2.90.0450.00815.57
7.2.80.0370.01215.91
7.2.70.0770.00715.75
7.2.60.0500.01016.05
7.2.50.0590.00815.89
7.2.40.0070.00815.85
7.2.30.0160.00815.79
7.2.20.0060.01215.82
7.2.10.0100.00715.88
7.2.00.0060.01115.86
7.1.330.0100.00515.64
7.1.320.0070.00815.64
7.1.310.0080.00515.61
7.1.300.0050.00915.57
7.1.290.0060.00815.59
7.1.280.0050.00815.52
7.1.270.0030.00915.51
7.1.260.0090.00415.77
7.1.250.0070.01015.44
7.1.240.0030.01015.68
7.1.230.0000.00915.80
7.1.220.0040.01115.52
7.1.210.0620.00914.63
7.1.200.0820.00314.60
7.1.190.0400.00414.82
7.1.180.0580.00314.63
7.1.170.0470.01414.71
7.1.160.0080.00714.59
7.1.150.0130.00614.72
7.1.140.0070.00614.62
7.1.130.0830.00714.72
7.1.120.0120.00214.74
7.1.110.0550.00914.80
7.1.100.0430.00914.74
7.1.90.0390.00714.74
7.1.80.0400.00314.59
7.1.70.0430.00514.84
7.1.60.0380.00823.74
7.1.50.0180.00723.62
7.1.40.0180.00423.64
7.1.30.0200.00923.72
7.1.20.0600.01123.50
7.1.10.0180.00814.69
7.1.00.0650.00814.82
7.0.330.0080.00815.21
7.0.320.0100.00315.22
7.0.310.0040.00414.86
7.0.300.0090.00915.14
7.0.290.0100.00315.31
7.0.280.0060.00915.03
7.0.270.0110.00415.28
7.0.260.0060.01214.94
7.0.250.0090.00314.98
7.0.240.0040.00715.33
7.0.230.0000.01015.43
7.0.220.0000.01015.30
7.0.210.0000.01315.02
7.0.200.0030.00615.45
7.0.190.0120.00015.51
7.0.180.0080.00415.32
7.0.170.0060.00315.33
7.0.160.0030.00615.36
7.0.150.0060.00915.34
7.0.140.0060.00915.23
7.0.130.0030.00615.28
7.0.120.0030.01015.22
7.0.110.0040.00415.04
7.0.100.0030.00715.09
7.0.90.0070.00715.45
7.0.80.0040.01115.36
7.0.70.0030.00514.98
7.0.60.0070.00715.16
7.0.50.0030.00715.45
7.0.40.0090.00313.52
7.0.30.0080.00413.51
7.0.20.0070.00713.46
7.0.10.0030.01013.42
7.0.00.0070.00713.16
5.6.400.0030.00514.27
5.6.390.0070.00714.19
5.6.380.0040.00414.02
5.6.370.0110.00014.33
5.6.360.0060.00613.85
5.6.350.0030.01014.32
5.6.340.0070.00314.20
5.6.330.0060.00614.48
5.6.320.0030.01013.96
5.6.310.0090.00914.21
5.6.300.0110.00414.20
5.6.290.0060.00614.38
5.6.280.0030.00914.46
5.6.270.0030.01014.29
5.6.260.0040.00714.07
5.6.250.0100.00614.16
5.6.240.0090.00614.29
5.6.230.0030.01014.25
5.6.220.0060.00614.15
5.6.210.0070.00713.98
5.6.200.0000.01414.12
5.6.190.0040.00714.48
5.6.180.0040.00814.25
5.6.170.0030.01014.09
5.6.160.0100.00713.91
5.6.150.0060.00914.29
5.6.140.0040.00814.14
5.6.130.0030.01014.11
5.6.120.0000.00913.99
5.6.110.0070.00714.13
5.6.100.0110.00414.46
5.6.90.0090.00614.24
5.6.80.0070.00414.33
5.6.70.0000.01413.94
5.6.60.0090.00913.95
5.6.50.0150.00014.40
5.6.40.0060.01314.18
5.6.30.0110.00714.07
5.6.20.0110.00714.26
5.6.10.0000.01313.98
5.6.00.0030.01013.93

preferences:
113.91 ms | 1961 KiB | 5 Q