3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait T { abstract public function test(int $x); } class P { public function test(string $x) {} } class C extends P { use T; }

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.0140.00318.36
8.3.50.0070.01416.65
8.3.40.0140.00318.71
8.3.30.0140.00718.68
8.3.20.0040.00420.59
8.3.10.0040.00422.10
8.3.00.0050.00221.71
8.2.180.0040.01125.92
8.2.170.0080.00618.96
8.2.160.0110.00422.96
8.2.150.0070.00024.18
8.2.140.0030.00624.66
8.2.130.0070.00026.16
8.2.120.0060.00320.72
8.2.110.0120.00421.58
8.2.100.0100.00619.33
8.2.90.0100.00619.81
8.2.80.0090.00619.17
8.2.70.0060.00919.98
8.2.60.0050.00619.23
8.2.50.0070.00619.30
8.2.40.0070.00319.22
8.2.30.0080.00619.18
8.2.20.0110.00219.22
8.2.10.0090.00519.78
8.2.00.0050.00519.93
8.1.280.0100.01025.92
8.1.270.0030.00620.30
8.1.260.0030.00528.09
8.1.250.0000.00728.09
8.1.240.0040.00722.10
8.1.230.0090.00720.65
8.1.220.0050.00619.01
8.1.210.0070.00320.27
8.1.200.0110.00818.74
8.1.190.0080.00818.66
8.1.180.0040.00619.13
8.1.170.0070.00919.44
8.1.160.0040.00519.53
8.1.150.0060.00919.73
8.1.140.0070.00920.45
8.1.130.0060.00820.18
8.1.120.0100.00618.68
8.1.110.0030.01218.89
8.1.100.0070.00818.87
8.1.90.0070.00518.85
8.1.80.0070.00818.78
8.1.70.0080.00618.92
8.1.60.0110.00419.00
8.1.50.0120.00318.88
8.1.40.0040.00818.17
8.1.30.0110.00619.03
8.1.20.0090.00619.05
8.1.10.0060.00618.84
8.1.00.0040.00418.85
8.0.300.0050.01019.22
8.0.290.0100.00418.15
8.0.280.0060.00119.04
8.0.270.0020.00618.81
8.0.260.0030.00519.04
8.0.250.0050.00918.35
8.0.240.0070.00618.30
8.0.230.0080.00618.46
8.0.220.0060.00918.26
8.0.210.0090.00518.29
8.0.200.0050.01018.34
8.0.190.0070.00418.23
8.0.180.0080.00618.33
8.0.170.0050.00718.26
8.0.160.0050.00418.28
8.0.150.0000.00818.26
8.0.140.0050.00718.31
8.0.130.0050.00216.51
8.0.120.0070.00518.21
8.0.110.0070.00418.26
8.0.100.0090.00818.22
8.0.90.0020.00618.18
8.0.80.0060.00917.60
8.0.70.0050.00418.18
8.0.60.0030.00518.26
8.0.50.0050.00318.25
8.0.30.0130.00217.85
8.0.20.0100.00517.92
8.0.10.0090.00518.42
8.0.00.0110.00717.99
7.4.330.0050.00115.74
7.4.320.0040.00417.84
7.4.300.0070.00517.83
7.4.290.0060.00217.86
7.4.280.0060.00417.78
7.4.270.0010.00717.89
7.4.260.0060.00716.12
7.4.250.0100.00417.80
7.4.240.0100.00217.36
7.4.230.0040.00817.99
7.4.220.0070.00717.84
7.4.210.0100.00817.23
7.4.200.0060.00517.88
7.4.190.0160.00319.35
7.4.180.0140.00319.22
7.4.160.0120.00517.95
7.4.150.0140.00517.72
7.4.140.0140.00617.77
7.4.130.0110.00617.37
7.4.120.0140.01017.28
7.4.110.0080.01116.65
7.4.100.0150.00816.65
7.4.90.0180.01116.60
7.4.80.0140.01317.65
7.4.70.0160.00716.64
7.4.60.0160.00716.49
7.4.50.0120.00616.57
7.4.40.0130.01016.53
7.4.30.0140.00916.55
7.4.20.0160.00616.64
7.4.10.0110.00916.58
7.4.00.0110.00716.98
7.3.330.0080.00617.63
7.3.320.0120.00915.17
7.3.310.0140.00216.67
7.3.300.0120.00016.81
7.3.290.0170.00316.65
7.3.280.0320.00317.17
7.3.270.0200.01016.83
7.3.260.0210.00516.70
7.3.250.0200.01016.79
7.3.240.0120.01016.49
7.3.230.0170.01116.54
7.3.220.0330.00316.67
7.3.210.0190.00916.57
7.3.200.0160.00917.62
7.3.190.0180.01016.50
7.3.180.0160.00816.42
7.3.170.0150.01116.49
7.3.160.0170.00916.42
7.3.150.0180.00616.56
7.3.140.0110.00716.46
7.3.130.0130.00916.41
7.3.120.0130.00816.48
7.3.110.0120.01016.50
7.3.100.0160.00516.33
7.3.90.0110.01216.55
7.3.80.0110.01016.43
7.3.70.0080.01316.41
7.3.60.0120.01016.43
7.3.50.0110.00816.42
7.3.40.0110.00716.45
7.3.30.0100.00816.45
7.3.20.0330.00817.17
7.3.10.0120.01017.59
7.3.00.0070.01217.56
7.2.340.0100.01017.67
7.2.330.0140.01316.65
7.2.320.0160.00616.62
7.2.310.0130.01316.54
7.2.300.0150.01116.54
7.2.290.0170.00716.52
7.2.280.0160.00916.48
7.2.270.0160.00816.43
7.2.260.0140.00916.40
7.2.250.0100.01216.43
7.2.240.0140.00816.53
7.2.230.0110.01216.38
7.2.220.0160.01116.49
7.2.210.0140.00916.51
7.2.200.0130.00916.61
7.2.190.0150.01016.59
7.2.180.0180.00616.61
7.2.170.0160.00916.53
7.2.160.0120.01016.57
7.2.150.0160.00817.61
7.2.140.0140.01317.76
7.2.130.0150.01117.75
7.2.120.0180.00717.79
7.2.110.0190.00817.68
7.2.100.0170.01017.71
7.2.90.0220.00917.68
7.2.80.0190.00917.75
7.2.70.0190.00817.69
7.2.60.0170.00917.71
7.2.50.0160.01017.77
7.2.40.0130.01217.75
7.2.30.0130.01017.67
7.2.20.0150.00917.73
7.2.10.0130.00717.64
7.2.00.0130.00917.76

preferences:
56.16 ms | 400 KiB | 5 Q