3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function a($time) { return new static(); } public static function b($time) { return new self(); } } var_dump(A::a()); #var_dump(A::b());

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.0060.00816.75
8.3.50.0100.00821.91
8.3.40.0070.00718.97
8.3.30.0110.00419.06
8.3.20.0000.00720.09
8.3.10.0040.00423.51
8.3.00.0030.00717.50
8.2.180.0070.00718.16
8.2.170.0040.01122.96
8.2.160.0070.01320.51
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0070.00022.08
8.2.110.0100.00022.25
8.2.100.0090.00018.85
8.1.280.0130.00725.92
8.1.270.0080.00022.20
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00318.62
8.1.230.0030.00618.30
5.4.290.0070.07712.49
5.4.280.0130.05012.39
5.4.270.0120.05812.39
5.4.260.0120.07412.39
5.4.250.0130.08212.39
5.4.240.0090.07812.39
5.4.230.0110.08012.38
5.4.220.0140.06912.38
5.4.210.0110.08012.38
5.4.200.0110.08512.38
5.4.190.0140.07912.38
5.4.180.0080.05112.38
5.4.170.0110.05412.39
5.4.160.0140.05312.38
5.4.150.0100.05812.38
5.4.140.0180.07812.06
5.4.130.0100.08612.05
5.4.120.0110.05512.01
5.4.110.0120.08312.01
5.4.100.0160.06212.00
5.4.90.0240.08012.01
5.4.80.0170.08212.01
5.4.70.0140.06612.00
5.4.60.0090.07712.00
5.4.50.0130.07712.00
5.4.40.0090.08111.99
5.4.30.0080.04711.99
5.4.20.0160.11111.99
5.4.10.0110.07611.98
5.4.00.0140.09511.48
5.3.280.0230.11012.71
5.3.270.0150.06512.72
5.3.260.0240.10712.71
5.3.250.0150.09512.72
5.3.240.0160.06912.72
5.3.230.0050.05912.71
5.3.220.0080.04412.68
5.3.210.0140.06812.68
5.3.200.0140.06812.68
5.3.190.0210.09112.68
5.3.180.0120.06612.68
5.3.170.0080.06112.67
5.3.160.0100.05812.68
5.3.150.0210.07612.67
5.3.140.0130.06212.66
5.3.130.0200.06412.66
5.3.120.0170.07712.66
5.3.110.0140.07112.66
5.3.100.0080.06412.12
5.3.90.0100.04312.10
5.3.80.0080.04812.10
5.3.70.0170.06612.10
5.3.60.0120.05212.08
5.3.50.0110.05112.03
5.3.40.0220.06312.03
5.3.30.0130.06211.99
5.3.20.0140.06211.77
5.3.10.0110.08211.73
5.3.00.0150.09711.72
5.2.170.0070.0569.22
5.2.160.0080.0489.22
5.2.150.0060.0609.23
5.2.140.0100.0619.22
5.2.130.0100.0549.18
5.2.120.0240.0789.18
5.2.110.0100.0619.18
5.2.100.0110.0379.18
5.2.90.0100.0709.18
5.2.80.0270.1139.17
5.2.70.0120.0599.17
5.2.60.0080.0509.13
5.2.50.0110.0719.10
5.2.40.0120.0849.08
5.2.30.0160.0559.05
5.2.20.0120.0899.04
5.2.10.0080.0388.95
5.2.00.0060.0408.80
5.1.60.0040.0368.09
5.1.50.0070.0558.09
5.1.40.0070.0468.07
5.1.30.0080.0398.41
5.1.20.0120.0958.43
5.1.10.0090.0498.17
5.1.00.0120.0748.16
5.0.50.0120.0546.64
5.0.40.0040.0596.50
5.0.30.0050.0446.31
5.0.20.0070.0276.28
5.0.10.0120.0386.26
5.0.00.0070.0496.25
4.4.90.0030.0224.78
4.4.80.0030.0244.76
4.4.70.0090.0524.75
4.4.60.0100.0434.75
4.4.50.0040.0264.77
4.4.40.0060.0524.71
4.4.30.0120.0404.76
4.4.20.0080.0404.85
4.4.10.0110.0854.85
4.4.00.0030.0294.75
4.3.110.0030.0194.67
4.3.100.0030.0184.66
4.3.90.0060.0384.64
4.3.80.0080.0524.58
4.3.70.0070.0564.63
4.3.60.0040.0244.63
4.3.50.0050.0214.63
4.3.40.0050.0304.53
4.3.30.0060.0283.30
4.3.20.0060.0363.28
4.3.10.0060.0293.24
4.3.00.0070.0207.04

preferences:
39.38 ms | 401 KiB | 5 Q