3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait T { public function test() {} } class C { use T; } function test(T $x) {} test(new 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.0070.01118.43
8.3.50.0070.01117.94
8.3.40.0090.00918.88
8.3.30.0120.00318.85
8.3.20.0070.00020.66
8.3.10.0070.00023.51
8.3.00.0000.00723.64
8.2.180.0090.00618.54
8.2.170.0030.01318.82
8.2.160.0070.00722.08
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0070.00020.43
8.2.120.0070.00026.35
8.2.110.0090.00021.98
8.2.100.0000.01119.40
8.2.90.0040.00417.84
8.2.80.0040.00420.24
8.2.70.0050.00317.93
8.2.60.0000.00818.18
8.2.50.0050.00318.10
8.2.40.0040.00419.30
8.2.30.0040.00419.24
8.2.20.0000.00718.11
8.2.10.0030.00519.23
8.2.00.0040.00419.45
8.1.280.0100.01025.92
8.1.270.0040.00418.92
8.1.260.0050.00226.35
8.1.250.0070.00028.09
8.1.240.0050.00519.12
8.1.230.0070.00420.80
8.1.220.0030.00517.74
8.1.210.0080.00018.77
8.1.200.0000.01017.22
8.1.190.0030.00517.25
8.1.180.0070.00018.10
8.1.170.0040.00418.57
8.1.160.0030.00719.00
8.1.150.0040.00418.88
8.1.140.0000.00822.05
8.1.130.0030.00320.04
8.1.120.0000.01017.39
8.1.110.0040.00417.38
8.1.100.0070.00017.27
8.1.90.0000.00917.25
8.1.80.0030.00517.39
8.1.70.0090.00017.45
8.1.60.0100.00017.37
8.1.50.0030.00517.44
8.1.40.0040.00417.45
8.1.30.0070.00017.63
8.1.20.0040.00417.56
8.1.10.0000.00817.37
8.1.00.0000.00717.40
8.0.300.0040.00420.16
8.0.290.0000.00816.75
8.0.280.0070.00018.43
8.0.270.0040.00417.25
8.0.260.0030.00318.43
8.0.250.0000.00617.02
8.0.240.0000.00617.05
8.0.230.0080.00016.92
8.0.220.0000.00716.86
8.0.210.0040.00416.91
8.0.200.0000.00616.90
8.0.190.0080.00017.00
8.0.180.0080.00016.90
8.0.170.0000.00817.05
8.0.160.0000.00816.84
8.0.150.0030.00316.80
8.0.140.0040.00416.95
8.0.130.0070.00213.33
8.0.120.0040.00416.90
8.0.110.0000.00716.94
8.0.100.0000.00716.81
8.0.90.0040.00416.91
8.0.80.0080.00816.92
8.0.70.0000.00716.83
8.0.60.0000.00717.01
8.0.50.0000.00717.01
8.0.30.0140.00517.05
8.0.20.0060.01217.40
8.0.10.0040.00416.84
8.0.00.0080.01216.76
7.4.330.0020.00216.83
7.4.320.0040.00416.48
7.4.300.0070.00016.45
7.4.290.0030.00316.43
7.4.280.0030.00616.43
7.4.270.0000.00716.48
7.4.260.0000.00716.41
7.4.250.0040.00416.39
7.4.240.0050.00316.49
7.4.230.0030.00316.63
7.4.220.0040.00416.32
7.4.210.0100.00716.40
7.4.200.0030.00316.60
7.4.160.0090.01116.46
7.4.140.0080.01017.86
7.4.130.0120.00616.43
7.4.120.0070.01116.41
7.4.110.0170.00016.46
7.4.100.0160.00716.24
7.4.90.0120.01216.30
7.4.80.0120.00619.39
7.4.70.0050.01116.35
7.4.60.0130.00316.32
7.4.50.0000.01616.52
7.4.40.0130.00316.21
7.4.00.0070.01114.85
7.3.330.0000.00613.29
7.3.320.0060.00013.30
7.3.310.0070.00016.15
7.3.300.0030.00316.29
7.3.290.0070.00016.27
7.3.280.0050.01016.22
7.3.260.0140.00716.42
7.3.240.0120.00716.47
7.3.230.0030.01416.32
7.3.210.0130.00516.34
7.3.200.0130.00816.39
7.3.190.0120.00616.43
7.3.180.0100.00716.38
7.3.170.0140.00916.41
7.3.160.0040.01316.48
7.3.10.0040.00716.71
7.3.00.0330.00615.69
7.2.330.0070.01416.55
7.2.320.0040.01416.58
7.2.310.0100.00616.30
7.2.300.0070.01016.68
7.2.290.0080.00816.61
7.2.130.0260.00715.96
7.2.120.0290.00715.83
7.2.110.0530.00815.60
7.2.100.0260.00615.53
7.2.90.0210.00415.67
7.2.80.0170.00815.72
7.2.70.0250.00815.68
7.2.60.0220.00915.90
7.2.50.0230.00615.74
7.2.40.0350.00815.71
7.2.30.0360.00615.78
7.2.20.0290.01315.76
7.2.10.0190.00915.87
7.2.00.0300.00215.67
7.1.250.0220.00314.68
7.0.330.0360.00713.64
5.6.380.0070.00714.34

preferences:
56.84 ms | 401 KiB | 5 Q