3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace { new X\A; } namespace X { class B {} class A extends 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.1.90.0030.00617.28
8.1.80.0080.00017.27
8.1.70.0000.00817.20
8.1.60.0080.00017.36
8.1.50.0000.00717.40
8.1.40.0000.00817.33
8.1.30.0060.00317.54
8.1.20.0000.00717.45
8.1.10.0000.00817.48
8.1.00.0000.00717.46
8.0.220.0040.00416.78
8.0.210.0070.00016.64
8.0.200.0000.00616.78
8.0.190.0060.00316.84
8.0.180.0000.00816.64
8.0.170.0030.00616.79
8.0.160.0030.00316.71
8.0.150.0000.00716.68
8.0.140.0000.00716.75
8.0.130.0030.00313.26
8.0.120.0030.00716.75
8.0.110.0050.00316.78
8.0.100.0000.00716.75
8.0.90.0000.00816.54
8.0.80.0100.00516.73
8.0.70.0030.00516.82
8.0.60.0000.00716.70
8.0.50.0070.00016.72
8.0.30.0110.00716.95
8.0.20.0090.01017.40
8.0.10.0050.00316.94
8.0.00.0090.00916.44
7.4.300.0030.00316.46
7.4.290.0000.00716.30
7.4.280.0030.00416.45
7.4.270.0000.00716.46
7.4.260.0040.00416.30
7.4.250.0000.00716.39
7.4.240.0000.00916.36
7.4.230.0000.00916.46
7.4.220.0000.00916.38
7.4.210.0120.00716.44
7.4.200.0070.00016.37
7.4.160.0080.00716.32
7.4.140.0140.00717.86
7.4.130.0180.00716.44
7.4.120.0110.00716.32
7.4.110.0040.01516.14
7.4.100.0120.00816.34
7.4.90.0120.00616.21
7.4.80.0160.00619.39
7.4.70.0080.00816.35
7.4.60.0160.00016.38
7.4.50.0070.00716.03
7.4.40.0030.01716.37
7.4.00.0070.01014.46
7.3.330.0000.00513.16
7.3.320.0000.00613.14
7.3.310.0000.00616.06
7.3.300.0070.00016.02
7.3.290.0000.00716.11
7.3.280.0060.01316.19
7.3.260.0080.01116.31
7.3.240.0130.00516.13
7.3.230.0030.01316.25
7.3.210.0120.00616.16
7.3.200.0120.00316.39
7.3.190.0000.01516.12
7.3.180.0000.01616.46
7.3.170.0110.00616.43
7.3.160.0060.00916.21
7.2.330.0120.01216.15
7.2.320.0030.01416.46
7.2.310.0030.01316.24
7.2.300.0070.01016.41
7.2.290.0090.00616.45
7.2.90.1070.01713.87
7.2.80.1250.00614.43
7.2.70.1220.00314.50
7.2.60.1180.00014.48
7.2.50.1220.01014.81
7.2.40.1260.00314.56
7.2.30.1130.00414.69
7.2.20.1740.01014.92
7.2.10.2130.01314.65
7.2.00.1800.01014.35
7.1.210.1620.01313.55
7.1.200.1220.00013.91
7.1.190.1070.00613.48
7.1.180.1340.00313.62
7.1.170.1330.01013.73
7.1.160.1200.01013.45
7.1.150.1220.00013.46
7.1.140.1110.01213.71
7.1.130.1560.00313.30
7.1.120.1960.00313.67
7.1.110.1690.00313.78
7.1.100.1220.00713.18
7.1.90.2040.00713.44
7.1.80.2060.01013.46
7.1.70.2040.00013.45
7.1.60.2220.01031.27
7.1.50.3680.00631.45
7.1.40.3130.01031.38
7.1.30.2970.01331.45
7.1.20.2960.02031.34
7.1.10.2530.00713.44
7.1.00.1880.00613.53

preferences:
11.1 ms | 406 KiB | 5 Q