3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait T { function foo() { echo "okay"; } } interface I { function foo(); } class C implements I { use T; } (new C())->foo();

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.0070.00716.38
8.3.60.0100.01018.55
8.3.50.0110.00421.99
8.3.40.0140.00318.71
8.3.30.0060.00918.58
8.3.20.0050.00221.73
8.3.10.0040.00420.27
8.3.00.0060.00323.53
8.2.190.0100.00716.58
8.2.180.0070.01316.50
8.2.170.0120.00322.96
8.2.160.0100.01020.64
8.2.150.0030.00824.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00026.16
8.2.110.0040.00420.27
8.2.100.0080.00417.63
8.2.90.0040.00419.34
8.2.80.0040.00417.97
8.2.70.0000.00818.04
8.2.60.0040.00818.03
8.2.50.0030.00518.10
8.2.40.0040.00419.11
8.2.30.0070.00019.09
8.2.20.0040.00417.87
8.2.10.0030.00519.18
8.2.00.0000.00719.09
8.1.280.0140.00725.92
8.1.270.0040.00423.81
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0030.00622.24
8.1.230.0060.00619.11
8.1.220.0000.00917.74
8.1.210.0080.00018.77
8.1.200.0000.01217.22
8.1.190.0030.00517.10
8.1.180.0000.00818.10
8.1.170.0090.00018.66
8.1.160.0000.00718.68
8.1.150.0040.00418.73
8.1.140.0070.00018.76
8.1.130.0040.00420.18
8.1.120.0000.00717.26
8.1.110.0070.00017.43
8.1.100.0050.00317.21
8.1.90.0040.00417.30
8.1.80.0000.00717.35
8.1.70.0030.00317.30
8.1.60.0060.00317.41
8.1.50.0050.00217.44
8.1.40.0030.00617.49
8.1.30.0070.00017.47
8.1.20.0050.00217.52
8.1.10.0000.00817.43
8.1.00.0040.00417.38
8.0.300.0000.00721.44
8.0.290.0040.00416.63
8.0.280.0070.00018.44
8.0.270.0040.00317.19
8.0.260.0060.00020.27
8.0.250.0040.00416.92
8.0.240.0070.00016.93
8.0.230.0000.00716.97
8.0.220.0080.00016.82
8.0.210.0040.00416.80
8.0.200.0030.00316.93
8.0.190.0040.00416.84
8.0.180.0040.00416.80
8.0.170.0090.00016.84
8.0.160.0030.00316.79
8.0.150.0000.00716.83
8.0.140.0030.00316.66
8.0.130.0000.00513.25
8.0.120.0000.00816.68
8.0.110.0080.00016.73
8.0.100.0000.00716.65
8.0.90.0090.00016.81
8.0.80.0090.00616.86
8.0.70.0000.00716.77
8.0.60.0000.00716.81
8.0.50.0000.00716.76
8.0.30.0080.01016.75
8.0.20.0160.00316.90
8.0.10.0040.00416.91
8.0.00.0100.00816.67
7.4.330.0060.00015.55
7.4.320.0000.00616.51
7.4.300.0000.00616.43
7.4.290.0040.00416.34
7.4.280.0080.00016.43
7.4.270.0000.00916.38
7.4.260.0040.00416.37
7.4.250.0040.00416.47
7.4.240.0060.00116.42
7.4.230.0000.00716.32
7.4.220.0000.00716.57
7.4.210.0110.00616.52
7.4.200.0040.00416.59
7.4.140.0140.00617.86
7.4.130.0150.00316.47
7.4.120.0140.01116.49
7.4.110.0080.00816.39
7.4.100.0110.00716.61
7.4.90.0100.00616.58
7.4.80.0070.01019.39
7.4.70.0040.01216.63
7.4.60.0100.00716.50
7.4.50.0110.00316.34
7.4.40.0060.01016.56
7.4.10.0040.01514.99
7.4.00.0050.01015.01
7.3.330.0060.00013.19
7.3.320.0000.00513.19
7.3.310.0070.00016.17
7.3.300.0040.00416.17
7.3.290.0060.00016.14
7.3.280.0100.00716.12
7.3.260.0100.01016.34
7.3.240.0110.00716.38
7.3.230.0090.01616.41
7.3.210.0120.00616.24
7.3.200.0130.00316.16
7.3.190.0070.01016.25
7.3.180.0150.00016.29
7.3.170.0070.01416.36
7.3.160.0060.01016.23
7.3.130.0060.01314.71
7.3.120.0070.01114.95
7.3.110.0130.00614.25
7.3.100.0060.00614.70
7.3.90.0000.01214.62
7.3.80.0030.01214.52
7.3.70.0030.00614.69
7.3.60.0070.00814.65
7.3.50.0090.00814.67
7.3.40.0040.00814.42
7.3.30.0030.01214.77
7.3.20.0070.00915.59
7.3.10.0050.00915.48
7.3.00.0070.00715.73
7.2.330.0030.01616.47
7.2.320.0060.01116.46
7.2.310.0070.01016.22
7.2.300.0130.01016.63
7.2.290.0130.00316.60
7.2.260.0110.00715.09
7.2.250.0040.01514.90
7.2.240.0060.00615.14
7.2.230.0070.00714.76
7.2.220.0030.01014.85
7.2.210.0030.01214.73
7.2.200.0040.01114.99
7.2.190.0050.00914.93
7.2.180.0070.00714.80
7.2.170.0070.00814.81
7.2.160.0070.00814.81
7.2.150.0150.00415.82
7.2.140.0090.00615.97
7.2.130.0220.00515.70
7.2.120.0090.00815.88
7.2.110.0070.01015.73
7.2.100.0100.00515.73
7.2.90.0160.00515.83
7.2.80.0060.01015.92
7.2.70.0530.00715.77
7.2.60.0130.00315.84
7.2.50.0070.00615.91
7.2.40.0130.00515.81
7.2.30.0130.00815.68
7.2.20.0080.01115.93
7.2.10.0100.00915.93
7.2.00.0100.00615.75
7.1.330.0070.00715.72
7.1.320.0040.00815.27
7.1.310.0030.01315.59
7.1.300.0090.00914.64
7.1.290.0110.00414.70
7.1.280.0080.00614.65
7.1.270.0070.00514.70
7.1.260.0080.00814.85
7.1.250.0100.01014.70
7.1.240.0070.00715.69
7.1.230.0140.00015.71
7.1.220.0030.01215.61
7.1.210.0060.00815.74
7.1.200.0070.00715.83
7.1.190.0070.00715.87
7.1.180.0090.00315.69
7.1.170.0030.01015.64
7.1.160.0070.00415.79
7.1.150.0030.01215.46
7.1.140.0040.01215.72
7.1.130.0110.01115.77
7.1.120.0030.01015.76
7.1.110.0030.01215.73
7.1.100.0000.01415.73
7.1.90.0110.00315.52
7.1.80.0080.00415.42
7.1.70.0040.00415.87
7.1.60.0040.00815.86
7.1.50.0060.00615.55
7.1.40.0060.00315.93
7.1.30.0080.00015.82
7.1.20.0030.00915.52
7.1.10.0040.00815.57
7.1.00.0040.00715.75

preferences:
17.43 ms | 401 KiB | 5 Q