3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = <<<EOF Some stuff before this notice which is not relevant. == Upgrade Notice == = 1.3.0 = When using Master Pro, 1.3.0 is the new minimal required version! When using Master Pro, 1.3.0 is the new minimal required version! When using Master Pro, 1.3.0 is the new minimal required version! 123123 = 1.1.0 = When using Master Pro, 1.1.0 is the new minimal required version! = 1.0.0 = No upgrade - just install :) [See changelog for all versions](https://plugins.svn.wordpress.org/master-pro/trunk/CHANGELOG.md). EOF; function parse_update_notice( string $content, string $new_version ) { $regexp = '~==\s*Upgrade Notice\s*==\s*.*?=+\s*(' . preg_quote( $new_version ) . ')\s*=+\s*(.*?)(?=^=+\s*\d+\.\d+\.\d+\s*=+|^\s*?$)~ms'; if ( preg_match( $regexp, $content, $matches ) ) { echo $matches[1], PHP_EOL; echo $matches[2], PHP_EOL; } } parse_update_notice($content, '1.3.0'); parse_update_notice($content, '1.1.0'); parse_update_notice($content, '1.0.0'); parse_update_notice($content, '0.1.0');

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.120.0110.01020.71
8.4.110.0120.00919.14
8.4.100.0090.01217.92
8.4.90.0120.00918.02
8.4.80.0150.00618.00
8.4.70.0060.00218.10
8.4.60.0150.00518.98
8.4.50.0040.00518.93
8.4.40.0190.00318.20
8.4.30.0090.01020.76
8.4.20.0100.01018.13
8.4.10.0080.00819.56
8.3.250.0050.00418.88
8.3.240.0090.01116.67
8.3.230.0090.00716.73
8.3.220.0120.00716.67
8.3.210.0100.00916.98
8.3.200.0030.00616.90
8.3.190.0090.00717.16
8.3.180.0020.00817.28
8.3.170.0130.00620.68
8.3.160.0110.00717.05
8.3.150.0060.01217.33
8.3.140.0000.01520.75
8.3.130.0040.00418.72
8.3.120.0040.00420.69
8.3.110.0100.01320.94
8.3.100.0100.00024.06
8.3.90.0100.01026.77
8.3.80.0100.00018.21
8.3.70.0170.00718.56
8.3.60.0150.00016.82
8.3.50.0080.00816.89
8.3.40.0100.00321.86
8.3.30.0150.00822.96
8.3.20.0150.00723.22
8.3.10.0130.00923.50
8.3.00.0110.01122.96
8.2.290.0090.01120.70
8.2.280.0040.00318.65
8.2.270.0120.00617.29
8.2.260.0030.00616.89
8.2.250.0120.00816.97
8.2.240.0050.00517.24
8.2.230.0030.00622.58
8.2.220.0060.00337.54
8.2.210.0110.00426.77
8.2.200.0090.00016.63
8.2.190.0190.00316.58
8.2.180.0070.01516.63
8.2.170.0100.01022.96
8.2.160.0100.01022.96
8.2.150.0120.00722.96
8.2.140.0120.00822.96
8.2.130.0090.00922.96
8.2.120.0150.00422.96
8.2.110.0090.01122.96
8.2.100.0070.01122.96
8.2.90.0120.00722.96
8.2.80.0130.00422.96
8.2.70.0140.00622.96
8.2.60.0100.00822.96
8.2.50.0120.00722.96
8.2.40.0080.00822.96
8.2.30.0100.01022.96
8.2.20.0130.00522.96
8.2.10.0120.00422.96
8.2.00.0150.00522.96
8.1.330.0140.00516.84
8.1.320.0060.00316.71
8.1.310.0070.01118.49
8.1.300.0080.01118.11
8.1.290.0030.00630.84
8.1.280.0120.00325.92
8.1.270.0060.00822.96
8.1.260.0150.00322.96
8.1.250.0140.00722.96
8.1.240.0120.00722.96
8.1.230.0170.00222.96
8.1.220.0090.00722.96
8.1.210.0060.01022.96
8.1.200.0050.00922.96
8.1.190.0060.01122.96
8.1.180.0070.01122.96
8.1.170.0110.00522.96
8.1.160.0100.00522.96
8.1.150.0070.00722.96
8.1.140.0080.00722.96
8.1.130.0030.01222.96
8.1.120.0140.00322.96
8.1.110.0110.00522.96
8.1.100.0080.00822.96
8.1.90.0080.00922.96
8.1.80.0060.01022.96
8.1.70.0120.00322.96
8.1.60.0060.00922.96
8.1.50.0050.01122.96
8.1.40.0130.00422.96
8.1.30.0160.00122.96
8.1.20.0040.01122.96
8.1.10.0080.00722.96
8.1.00.0050.01022.96

preferences:
45.53 ms | 403 KiB | 5 Q