3v4l.org

run code in 500+ PHP versions simultaneously
<?php class CacheabilityMetadata {} class_alias('CacheabilityMetadata', 'CacheableMetadata'); class SomethingElse {} function f(CacheabilityMetadata $m) {} function g(CacheableMetadata $m) {} f(new CacheabilityMetadata); f(new CacheableMetadata); g(new CacheabilityMetadata); g(new CacheableMetadata); f(new SomethingElse);

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.30.0090.00919.64
8.5.20.0130.00618.88
8.5.10.0100.00717.01
8.5.00.0110.01020.12
8.4.180.0140.00723.78
8.4.170.0110.01020.54
8.4.160.0160.00623.61
8.4.150.0070.00516.90
8.4.140.0130.00817.68
8.4.130.0130.00818.62
8.4.120.0110.00924.18
8.4.110.0060.00318.98
8.4.100.0120.00918.90
8.4.90.0130.00720.65
8.4.80.0030.00518.87
8.4.70.0090.01218.96
8.4.60.0080.01018.82
8.4.50.0120.00917.79
8.4.40.0040.00418.06
8.4.30.0100.01020.55
8.4.20.0100.01017.77
8.4.10.0150.00421.95
8.3.300.0120.00820.68
8.3.290.0110.01020.92
8.3.280.0130.00918.40
8.3.270.0080.01216.54
8.3.260.0100.01016.57
8.3.250.0100.00918.79
8.3.240.0130.00616.76
8.3.230.0100.01116.54
8.3.220.0090.00919.05
8.3.210.0040.00416.75
8.3.200.0040.00516.65
8.3.190.0050.00318.59
8.3.180.0110.00916.57
8.3.170.0090.00918.92
8.3.160.0120.00620.18
8.3.150.0150.00317.04
8.3.140.0040.00417.13
8.3.130.0080.00018.76
8.3.120.0060.00318.83
8.3.110.0040.00420.94
8.3.100.0030.00716.77
8.3.90.0060.00326.77
8.3.80.0030.00617.97
8.3.70.0090.00618.55
8.3.60.0110.01118.25
8.3.50.0060.00918.66
8.3.40.0100.00321.91
8.3.30.0090.00619.18
8.3.20.0040.00424.18
8.3.10.0050.00324.66
8.3.00.0060.00326.16
8.2.300.0110.00922.20
8.2.290.0090.00920.59
8.2.280.0040.00518.38
8.2.270.0110.00417.05
8.2.260.0140.00418.60
8.2.250.0050.00318.32
8.2.240.0150.00317.18
8.2.230.0090.00022.58
8.2.220.0050.00324.06
8.2.210.0040.00426.77
8.2.200.0090.00016.75
8.2.190.0140.00716.58
8.2.180.0040.01116.38
8.2.170.0130.00618.91
8.2.160.0160.00322.96
8.2.150.0090.00025.66
8.2.140.0080.00024.66
8.2.130.0030.00526.16
8.2.120.0040.00422.11
8.2.110.0060.00321.00
8.2.100.0090.00317.47
8.2.90.0060.00617.63
8.2.80.0250.00617.13
8.2.70.0270.00417.23
8.2.60.0300.00017.25
8.2.50.0180.01217.25
8.2.40.0180.00917.25
8.2.30.0220.00517.38
8.2.20.0190.00917.38
8.2.10.0230.00417.50
8.2.00.0300.00017.00
8.1.340.0070.01517.63
8.1.330.0080.01121.89
8.1.320.0130.00816.14
8.1.310.0100.00718.49
8.1.300.0060.00317.85
8.1.290.0090.00030.84
8.1.280.0140.00725.92
8.1.270.0050.00324.66
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0110.00022.43
8.1.230.0080.00322.11
8.1.220.0240.00417.13
8.1.210.0230.00417.00
8.1.200.0210.00617.00
8.1.190.0270.00016.85
8.1.180.0250.00317.00
8.1.170.0210.00716.80
8.1.160.0180.00916.88
8.1.150.0280.00016.88
8.1.140.0180.01117.00
8.1.130.0240.00317.13
8.1.120.0290.00017.13
8.1.110.0240.00316.86
8.1.100.0210.00617.13
8.1.90.0240.00317.13
8.1.80.0230.00417.00
8.1.70.0180.00917.13
8.1.60.0240.00417.38
8.1.50.0230.00717.11
8.1.40.0290.00317.13
8.1.30.0260.00717.21
8.1.20.0230.00617.25
8.1.10.0300.00016.98
8.1.00.0290.00017.00
8.0.300.0240.00316.80
8.0.290.0270.00016.80
8.0.280.0240.00316.80
8.0.270.0250.00316.80
8.0.260.0220.00616.80
8.0.250.0210.00616.80
8.0.240.0250.00316.80
8.0.230.0180.00916.80
8.0.220.0180.00916.80
8.0.210.0260.00016.80
8.0.200.0250.00316.88
8.0.190.0250.00316.80
8.0.180.0280.00016.80
8.0.170.0170.01016.80
8.0.160.0230.00316.80
8.0.150.0200.00716.80
8.0.140.0210.00716.80
8.0.130.0230.00616.80
8.0.120.0270.00016.80
8.0.110.0170.01016.80
8.0.100.0240.00316.80
8.0.90.0220.00316.80
8.0.80.0180.00916.80
8.0.70.0240.00316.80
8.0.60.0280.00016.80
8.0.50.0210.01216.80
8.0.30.0260.00916.80
8.0.20.0230.00616.80
8.0.10.0230.00616.80

preferences:
51.07 ms | 1143 KiB | 5 Q