3v4l.org

run code in 300+ 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.4.20.0100.01017.77
8.4.10.0150.00421.95
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.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.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:
29.66 ms | 403 KiB | 5 Q