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.3.40.0080.00618.58
8.3.30.0070.00718.51
8.3.20.0040.00419.14
8.3.10.0060.00323.53
8.3.00.0040.01122.52
8.2.170.0090.00622.96
8.2.160.0070.00720.91
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00419.54
8.2.110.0000.00822.07
8.2.100.0080.00317.78
8.2.90.0000.00917.50
8.2.80.0060.00318.66
8.2.70.0030.00617.38
8.2.60.0040.00417.68
8.2.50.0060.00318.07
8.2.40.0040.00419.64
8.2.30.0040.00417.62
8.2.20.0040.00417.90
8.2.10.0070.00018.00
8.2.00.0000.00719.29
8.1.270.0000.00823.79
8.1.260.0000.00726.35
8.1.250.0050.00328.09
8.1.240.0090.00323.78
8.1.230.0040.00720.91
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0000.00817.23
8.1.190.0040.00417.10
8.1.180.0080.00018.10
8.1.170.0000.00818.89
8.1.160.0080.00018.93
8.1.150.0020.00518.79
8.1.140.0040.00419.03
8.1.130.0100.00018.98
8.1.120.0040.00417.33
8.1.110.0000.00817.34
8.1.100.0000.00717.32
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.300.0070.00018.92
8.0.290.0050.00216.63
8.0.280.0070.00018.55
8.0.270.0030.00317.88
8.0.260.0040.00418.32
8.0.250.0030.00316.78
8.0.240.0000.00816.94
8.0.230.0040.00416.69
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.330.0050.00015.55
7.4.320.0000.00616.31
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:
91.65 ms | 400 KiB | 5 Q