3v4l.org

run code in 300+ PHP versions simultaneously
<?php global $wp_version; $wp_version = '6.9-beta2-61080-src'; function is_wp_version_compatible( $required ) { global $wp_version; // Strip off any -alpha, -RC, -beta, -src suffixes. list( $version ) = explode( '-', $wp_version ); if ( is_string( $required ) ) { $trimmed = trim( $required ); if ( substr_count( $trimmed, '.' ) > 1 && str_ends_with( $trimmed, '.0' ) ) { $required = substr( $trimmed, 0, -2 ); } } return empty( $required ) || version_compare( $version, $required, '>=' ); } $tests = [ '6.9', '6.9.2', '6.8.3, '6.8.4-beta', '5.4' ]; print_r( array_combine( $tests ), array_map( 'is_wp_version_compatible', $tests ) );

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.140.0370.00917.44
8.4.130.0330.01017.54
8.4.120.0370.00817.73
8.4.110.0380.00917.86
8.4.100.0360.01017.83
8.4.90.0430.00317.73
8.4.80.0360.01017.70
8.4.70.0370.00917.51
8.4.60.0390.00717.46
8.4.50.0360.01417.98
8.4.40.0430.00917.71
8.4.30.0390.01217.43
8.4.20.0510.00917.25
8.4.10.0460.00817.46
8.3.270.0480.00516.56
8.3.260.0400.00616.48
8.3.250.0450.01316.35
8.3.240.0390.00716.62
8.3.230.0370.00716.85
8.3.220.0370.01016.57
8.3.210.0370.01216.74
8.3.200.0360.00816.85
8.3.190.0360.01016.68
8.3.180.0400.00516.48
8.3.170.0390.00916.48
8.3.160.0410.00616.68
8.3.150.0370.00916.29
8.3.140.0370.01016.59
8.3.130.0330.01016.84
8.3.120.0340.00816.45
8.3.110.0320.01016.38
8.3.100.0400.00816.60
8.3.90.0430.00916.67
8.3.80.0400.00916.57
8.3.70.0440.00416.60
8.3.60.0370.01016.79
8.3.50.0440.01016.45
8.3.40.0390.00917.48
8.3.30.0380.00617.56
8.3.20.0330.00917.52
8.3.10.0320.00617.20
8.3.00.0360.00517.54
8.2.290.0350.01016.59
8.2.280.0290.01016.45
8.2.270.0330.00716.27
8.2.260.0320.00716.70
8.2.250.0320.00816.22
8.2.240.0310.00916.60
8.2.230.0350.00516.68
8.2.220.0320.00816.18
8.2.210.0330.00916.00
8.2.200.0360.00916.32
8.2.190.0340.00716.75
8.2.180.0370.00716.38
8.2.170.0340.00717.52
8.2.160.0360.00617.50
8.2.150.0380.00317.36
8.2.140.0340.00817.46
8.2.130.0320.01117.56
8.2.120.0310.01217.49
8.2.110.0290.01317.20
8.2.100.0320.00917.52
8.2.90.0330.00817.45
8.2.80.0350.00817.38
8.2.70.0300.01317.29
8.2.60.0350.00817.38
8.2.50.0390.00817.57
8.2.40.0370.00517.36
8.2.30.0300.00817.51
8.2.20.0290.01017.50
8.2.10.0330.00817.27
8.2.00.0370.00517.32

preferences:
152.06 ms | 1398 KiB | 7 Q