3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function test(): string { return static::class; } } class B extends A { } var_dump(B::test());

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.00.0100.01319.84
8.4.150.0020.00114.05
8.4.140.0090.01117.56
8.4.130.0130.00717.61
8.4.120.0130.00720.51
8.4.110.0120.00822.27
8.4.100.0120.00917.52
8.4.90.0120.00820.74
8.4.80.0090.00824.18
8.4.70.0090.01019.17
8.4.60.0120.00820.38
8.4.50.0080.00720.24
8.4.40.0130.00617.36
8.4.30.0060.00320.59
8.4.20.0040.00419.87
8.4.10.0090.00019.05
8.3.280.0110.00918.19
8.3.270.0140.00816.51
8.3.260.0060.00916.65
8.3.250.0120.00718.79
8.3.240.0120.00816.24
8.3.230.0100.00816.48
8.3.220.0040.00318.82
8.3.210.0100.00918.43
8.3.200.0040.00416.41
8.3.190.0080.00818.93
8.3.180.0090.00718.75
8.3.170.0140.00317.13
8.3.160.0070.01118.26
8.3.150.0000.01916.98
8.3.140.0110.00716.55
8.3.130.0000.00816.61
8.3.120.0130.00618.96
8.3.110.0150.00020.94
8.3.100.0170.00324.06
8.3.90.0150.00426.77
8.3.80.0040.00816.50
8.3.70.0110.00416.58
8.3.60.0110.00716.75
8.3.50.0080.00523.64
8.3.40.0040.01121.79
8.3.30.0140.00018.64
8.3.20.0000.00724.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.290.0020.00717.18
8.2.280.0110.00818.47
8.2.270.0100.01016.75
8.2.260.0120.00317.26
8.2.250.0000.00818.29
8.2.240.0070.00416.96
8.2.230.0040.00822.58
8.2.220.0030.00637.54
8.2.210.0140.00326.77
8.2.200.0090.00016.38
8.2.190.0140.00716.58
8.2.180.0030.01025.92
8.2.170.0070.00718.77
8.2.160.0110.00322.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00026.35
8.2.110.0030.00619.30
8.2.100.0090.00317.43
8.2.90.0000.00817.63
8.2.80.0030.00618.71
8.2.70.0080.00017.50
8.2.60.0040.00417.50
8.2.50.0030.00618.05
8.2.40.0040.00419.82
8.2.30.0000.00717.83
8.2.20.0080.00017.81
8.2.10.0040.00319.12
8.2.00.0070.00018.98
8.1.330.0110.00718.45
8.1.320.0120.00617.96
8.1.310.0070.00716.88
8.1.300.0080.01117.79
8.1.290.0060.00318.88
8.1.280.0070.00725.92
8.1.270.0080.00023.99
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0030.00918.89
8.1.230.0060.00617.76
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.01017.11
8.1.190.0040.00417.10
8.1.180.0030.00618.10
8.1.170.0040.00418.32
8.1.160.0070.00018.85
8.1.150.0040.00418.75
8.1.140.0040.00418.79
8.1.130.0000.00720.05
8.1.120.0040.00417.24
8.1.110.0030.00617.38
8.1.100.0000.00717.35
8.1.90.0030.00517.32
8.1.80.0000.00917.34
8.1.70.0000.00817.33
8.1.60.0030.00717.46
8.1.50.0120.00017.33
8.1.40.0080.00017.39
8.1.30.0070.00017.47
8.1.20.0070.00017.59
8.1.10.0040.00417.43
8.1.00.0040.00417.43
8.0.300.0090.00018.77
8.0.290.0080.00016.63
8.0.280.0070.00018.41
8.0.270.0000.00717.86
8.0.260.0000.00718.47
8.0.250.0030.00316.76
8.0.240.0060.00016.82
8.0.230.0070.00016.89
8.0.220.0040.00416.75
8.0.210.0070.00016.79
8.0.200.0030.00516.85
8.0.190.0000.00716.74
8.0.180.0040.00416.84
8.0.170.0030.00616.85
8.0.160.0000.00716.84
8.0.150.0060.00516.74
8.0.140.0000.00716.66
8.0.130.0060.00013.23
8.0.120.0000.00716.67
8.0.110.0070.00016.71
8.0.100.0000.00816.86
8.0.90.0040.00416.84
8.0.80.0020.01316.79
8.0.70.0030.00516.85
8.0.60.0000.00716.86
8.0.50.0070.00016.78
8.0.30.0030.01316.80
8.0.20.0110.00716.99
8.0.10.0040.00416.90
8.0.00.0170.00616.68
7.4.330.0050.00015.55
7.4.320.0030.00316.47
7.4.300.0030.00316.40
7.4.290.0070.00016.46
7.4.280.0040.00416.52
7.4.270.0060.00016.43
7.4.260.0030.00313.17
7.4.250.0000.00716.46
7.4.240.0000.00716.33
7.4.230.0050.00216.51
7.4.220.0020.00516.60
7.4.210.0030.01016.47
7.4.200.0030.00316.61
7.4.130.0140.00516.51
7.4.120.0110.00916.24
7.4.110.0130.00816.27
7.4.100.0090.00816.35
7.4.90.0100.00816.44
7.4.80.0120.00616.48
7.4.70.0090.00916.42
7.4.60.0090.00916.42
7.4.50.0150.00916.34
7.4.40.0050.01516.19
7.4.30.0130.00616.40
7.4.20.0100.00816.31
7.4.10.0140.00816.32
7.4.00.0080.01216.25
7.3.330.0040.00416.24
7.3.320.0060.00013.10
7.3.310.0000.00816.05
7.3.300.0070.00016.07
7.3.290.0080.01016.26
7.3.260.0130.00516.41
7.3.250.0110.00716.30
7.3.240.0100.01116.39
7.3.230.0100.01016.36
7.3.220.0090.01016.31
7.3.210.0190.00016.19
7.3.200.0100.00716.14
7.3.190.0160.00816.46
7.3.180.0120.00916.25
7.3.170.0090.01116.40
7.3.160.0100.00916.27
7.3.150.0100.00716.23
7.3.140.0060.01216.10
7.3.130.0100.00916.34
7.3.120.0130.00316.16
7.3.110.0150.00716.14
7.3.100.0130.00816.16
7.3.90.0110.00816.15
7.3.80.0110.00916.26
7.3.70.0050.01316.27
7.3.60.0140.00816.29
7.3.50.0120.00616.32
7.3.40.0070.01116.33
7.3.30.0100.00916.21
7.3.20.0100.01116.22
7.3.10.0080.01016.15
7.3.00.0110.00816.19

preferences:
30.12 ms | 403 KiB | 5 Q