3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = [ 'http://example.com/topic/Funny/G1pdeJm', 'http://example.com/topic/Funny/viral', 'http://example.com/topic/Funny/time', 'http://example.com/topic/Funny/top', 'http://example.com/topic/Funny/top/week', 'http://example.com/topic/Funny/top/month', 'http://example.com/topic/Funny/top/year', 'http://example.com/topic/Funny/top/all', 'http://example.com/topic/NotFunny/IL2dsRq', ]; $result = []; foreach ($tests as $str) { if (preg_match('~^http://[^/]+/topic/Funny/(?!viral|time|top(?:/week|/month|/year|/all)?)~', $str)) { $result[] = $str; } } var_export($result);

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.0060.00318.86
8.3.120.0080.00818.77
8.3.110.0090.00020.94
8.3.100.0080.00024.06
8.3.90.0070.00726.77
8.3.80.0060.00317.97
8.3.70.0060.00916.88
8.3.60.0140.00718.55
8.3.50.0110.00716.73
8.3.40.0120.00420.52
8.3.30.0120.00620.13
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0080.01220.66
8.2.250.0140.00016.73
8.2.240.0060.00318.63
8.2.230.0030.00622.58
8.2.220.0060.00337.54
8.2.210.0030.00526.77
8.2.200.0060.00318.66
8.2.190.0040.01116.87
8.2.180.0040.01116.88
8.2.170.0110.01118.95
8.2.160.0000.01422.96
8.2.150.0050.00325.66
8.2.140.0000.00824.66
8.2.130.0060.01221.13
8.2.120.0130.00719.13
8.2.110.0130.00618.85
8.2.100.0170.00319.22
8.2.90.0170.00318.96
8.2.80.0150.00018.91
8.2.70.0030.01319.03
8.2.60.0090.00619.02
8.2.50.0060.01019.06
8.2.40.0090.00618.90
8.2.30.0080.00818.81
8.2.20.0100.00618.96
8.2.10.0080.00818.79
8.2.00.0100.00618.87
8.1.300.0000.00817.81
8.1.290.0060.00330.84
8.1.280.0120.00325.92
8.1.270.0180.00022.17
8.1.260.0110.00422.15
8.1.250.0090.00622.08
8.1.240.0040.01118.75
8.1.230.0120.00318.73
8.1.220.0120.00318.60
8.1.210.0040.01118.64
8.1.200.0150.00018.73
8.1.190.0040.01218.74
8.1.180.0120.00318.38
8.1.170.0040.01118.61
8.1.160.0000.00818.58
8.1.150.0030.00618.56
8.1.140.0090.00618.61
8.1.130.0040.00418.81
8.1.120.0040.01118.63
8.1.110.0060.00318.68
8.1.100.0000.00818.75
8.1.90.0000.00818.71
8.1.80.0060.00318.75
8.1.70.0090.00018.57
8.1.60.0030.00618.88
8.1.50.0030.00618.65
8.1.40.0120.00618.70
8.1.30.0090.00918.86
8.1.20.0040.00818.89
8.1.10.0060.00318.69
8.1.00.0150.00318.58

preferences:
30.32 ms | 406 KiB | 6 Q