3v4l.org

run code in 300+ PHP versions simultaneously
<?php // copied from MR $cache_tag_is_valid_count = 0; $cache_tag_invalidation_count = 0; $cache_tag_checksum_count = 0; // simulate actual data to stop 3v4l from complaining $performance_test_data['cache_tag_operations']= []; // NEW: enum CacheTagMetrics { case getCurrentChecksum; case isValid; case invalidateTags; } // CHANGED: foreach ($performance_test_data['cache_tag_operations'] as $operation) { match($operation) { CacheTagMetrics::getCurrentChecksum => $cache_tag_checksum_count++, CacheTagMetrics::isValid => $cache_tag_is_valid_count++, CacheTagMetrics::invalidateTags => $cache_tag_invalidation_count++, }; }

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.130.0130.00316.63
8.3.120.0060.00318.84
8.3.110.0090.00022.58
8.3.100.0080.00022.58
8.3.90.0120.00922.58
8.3.50.0030.00622.58
8.3.30.0140.00822.96
8.3.20.0110.00923.14
8.3.10.0130.00723.19
8.3.00.0080.01222.96
8.2.250.0040.01518.49
8.2.240.0060.00317.32
8.2.230.0040.00422.58
8.2.220.0030.00522.58
8.2.210.0030.00522.58
8.2.160.0140.00622.96
8.2.150.0100.00822.96
8.2.140.0110.00722.96
8.2.130.0090.01122.96
8.2.120.0100.00822.96
8.2.110.0110.00622.96
8.2.100.0070.01022.96
8.2.90.0100.01022.96
8.2.80.0100.00522.96
8.2.70.0070.01222.96
8.2.60.0070.01022.96
8.2.50.0120.00622.96
8.2.40.0070.01222.96
8.2.30.0080.00822.96
8.2.20.0080.00822.96
8.2.10.0110.00922.96
8.2.00.0110.00822.96
8.1.300.0130.00618.45
8.1.270.0110.00523.30
8.1.260.0100.00723.23
8.1.250.0090.00823.25
8.1.240.0080.00822.96
8.1.230.0100.00622.96
8.1.220.0150.00322.96
8.1.210.0120.00722.96
8.1.200.0080.00722.96
8.1.190.0100.00822.96
8.1.180.0120.00522.96
8.1.170.0110.00522.96
8.1.160.0100.00722.96
8.1.150.0130.00622.96
8.1.140.0070.00822.96
8.1.130.0110.00422.96
8.1.120.0070.00822.96
8.1.110.0110.00422.96
8.1.100.0110.00622.96
8.1.90.0090.00622.96
8.1.80.0070.00822.96
8.1.70.0110.00522.96
8.1.60.0100.00622.96
8.1.50.0100.00722.96
8.1.40.0080.00822.96
8.1.30.0050.01222.96
8.1.20.0100.00622.96
8.1.10.0060.01022.96
8.1.00.0120.00622.96

preferences:
39.75 ms | 403 KiB | 5 Q