3v4l.org

run code in 300+ PHP versions simultaneously
<?php $timePeriods = array( 'weekly' => 1, 'fortnightly' => 2, 'fourweekly' => 4, 'bianually' => 26, 'anually' => 52 ); $periods = array_keys($timePeriods); $recordName = 'ni_fortweekly_earning_limit'; $a = preg_match('(' . implode('|', $periods) . ')', $recordName); var_dump($a);

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.60.0140.00018.56
8.3.50.0090.01021.29
8.3.40.0150.00318.88
8.3.30.0030.01019.04
8.3.20.0040.00420.04
8.3.10.0080.00023.27
8.3.00.0080.00019.50
8.2.180.0040.01116.75
8.2.170.0110.00422.96
8.2.160.0100.00720.38
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0140.00426.16
8.2.120.0090.00020.51
8.2.110.0070.00321.06
8.2.100.0120.00018.04
8.2.90.0070.00417.98
8.2.80.0000.00817.97
8.2.70.0000.00817.75
8.2.60.0050.00318.05
8.2.50.0060.00318.07
8.2.40.0040.00420.01
8.2.30.0050.00218.00
8.2.20.0040.00417.84
8.2.10.0040.00418.10
8.2.00.0050.00317.96
8.1.280.0140.00725.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0050.00322.06
8.1.230.0030.00922.62
8.1.220.0040.00417.78
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0030.00617.35
8.1.180.0070.00018.10
8.1.170.0040.00418.78
8.1.160.0000.00722.09
8.1.150.0030.00518.91
8.1.140.0040.00417.57
8.1.130.0040.00417.86
8.1.120.0000.00817.52
8.1.110.0040.00417.59
8.1.100.0040.00417.63
8.1.90.0000.00717.65
8.1.80.0040.00417.65
8.1.70.0000.00817.60
8.1.60.0000.00917.64
8.1.50.0080.00017.51
8.1.40.0000.00817.55
8.1.30.0030.00517.69
8.1.20.0040.00417.80
8.1.10.0000.00717.55
8.1.00.0000.00817.59
8.0.300.0040.00420.05
8.0.290.0000.00716.88
8.0.280.0030.00518.40
8.0.270.0000.00817.15
8.0.260.0000.00717.29
8.0.250.0030.00417.05
8.0.240.0030.00317.17
8.0.230.0000.00717.13
8.0.220.0030.00317.04
8.0.210.0040.00416.95
8.0.200.0000.00617.02
8.0.190.0070.00016.98
8.0.180.0060.00317.10
8.0.170.0040.00417.06
8.0.160.0040.00417.11
8.0.150.0000.00817.03
8.0.140.0000.00717.00
8.0.130.0030.00313.54
8.0.120.0040.00416.96
8.0.110.0050.00217.04
8.0.100.0040.00416.99
8.0.90.0100.00017.09
8.0.80.0060.00916.98
8.0.70.0000.00717.03
8.0.60.0040.00416.83
8.0.50.0000.00716.87
8.0.30.0100.01017.14
8.0.20.0100.01217.40
8.0.10.0040.00416.98
8.0.00.0070.01016.96
7.4.330.0000.00415.02
7.4.320.0060.00016.67
7.4.300.0000.00616.75
7.4.290.0000.00716.73
7.4.280.0070.00016.74
7.4.270.0030.00316.68
7.4.260.0080.00016.51
7.4.250.0030.00516.63
7.4.240.0030.00316.68
7.4.230.0000.00716.61
7.4.220.0130.01316.62
7.4.210.0110.00416.70
7.4.200.0030.00316.76
7.4.160.0090.00616.67
7.4.150.0090.01017.40
7.4.140.0130.00717.86
7.4.130.0110.00516.63
7.4.120.0140.00716.54
7.4.110.0160.00016.48
7.4.100.0110.00616.36
7.4.90.0150.00316.70
7.4.80.0110.01419.39
7.4.70.0100.01016.75
7.4.60.0100.00716.50
7.4.50.0040.00416.76
7.4.40.0100.01016.70
7.4.30.0120.00316.52
7.4.00.0070.00815.02
7.3.330.0060.00013.18
7.3.320.0020.00213.23
7.3.310.0000.00716.49
7.3.300.0040.00416.34
7.3.290.0050.00816.34
7.3.280.0080.00916.38
7.3.270.0120.00617.40
7.3.260.0140.00316.34
7.3.250.0150.00416.70
7.3.240.0040.01416.49
7.3.230.0100.00716.54
7.3.210.0090.00616.79
7.3.200.0130.01019.39
7.3.190.0100.01316.31
7.3.180.0040.01116.74
7.3.170.0030.01316.39
7.3.160.0100.00616.56
7.3.120.0070.01114.92
7.3.110.0040.01114.85
7.3.100.0030.01314.88
7.3.90.0050.00514.58
7.3.80.0100.00314.75
7.3.70.0000.01415.00
7.3.60.0070.01114.84
7.3.50.0030.00915.02
7.3.40.0080.00415.01
7.3.30.0070.00715.00
7.3.20.0000.01916.64
7.3.10.0070.00716.57
7.3.00.0130.00416.67
7.2.330.0140.00316.66
7.2.320.0040.01416.70
7.2.310.0030.01316.76
7.2.300.0070.01016.78
7.2.290.0060.01616.84
7.2.250.0120.00615.33
7.2.240.0070.01315.04
7.2.230.0140.00415.29
7.2.220.0030.00915.16
7.2.210.0070.01115.20
7.2.200.0100.00315.20
7.2.190.0070.01014.97
7.2.180.0070.00715.16
7.2.170.0000.01514.86
7.2.130.0100.00516.71
7.2.120.0100.01017.01
7.2.110.0220.00816.80
7.2.100.0150.00416.79
7.2.90.0110.00516.97
7.2.80.0270.00816.87
7.2.70.0060.01617.05
7.2.60.0090.00916.95
7.2.50.0100.01116.88
7.2.40.0140.00417.12
7.2.30.0130.00516.88
7.2.20.0130.00716.81
7.2.10.0050.01116.98
7.2.00.0090.00917.86
7.1.330.0040.01115.91
7.1.320.0040.00716.09
7.1.310.0040.01216.05
7.1.300.0110.00615.73
7.1.290.0130.00315.67
7.1.280.0070.00716.01
7.1.270.0100.00315.91
7.1.260.0040.01115.98
7.1.250.0090.00915.81
7.1.100.0030.00918.23
7.1.70.0020.00517.43
7.1.60.0060.01519.11
7.1.50.0160.01216.90
7.1.00.0030.07722.37
7.0.200.0000.00916.73
7.0.140.0000.07321.93
7.0.60.0100.05320.03
7.0.50.0070.07017.92
7.0.40.0070.06720.42
7.0.30.0300.05320.32
7.0.20.0270.07020.02
7.0.10.0000.04720.15
7.0.00.0070.04320.14
5.6.280.0000.07320.89
5.6.210.0070.08320.66
5.6.200.0000.04718.04
5.6.190.0100.07020.41
5.6.180.0200.05720.34
5.6.170.0230.05320.54
5.6.160.0030.04320.71
5.6.150.0030.05018.17
5.6.140.0070.07018.11
5.6.130.0070.04318.21
5.6.120.0030.04021.09
5.6.110.0000.05320.88
5.6.100.0030.06720.94
5.6.90.0100.07021.07
5.6.80.0030.03720.48
5.6.70.4330.04020.55
5.5.350.0130.03720.43
5.5.340.0070.07317.95
5.5.330.0100.05720.12
5.5.320.0430.06020.29
5.5.310.0200.05320.20
5.5.300.0030.08717.98
5.5.290.0030.05017.87
5.5.280.0070.08720.77
5.5.270.0070.06320.76
5.5.260.0000.04720.88
5.5.250.0070.07020.79
5.5.240.0270.03320.07
5.4.450.0700.05019.10
5.4.440.0700.05319.50
5.4.430.0570.05319.46
5.4.420.0670.00019.35
5.4.410.0800.00019.41
5.4.400.0630.00018.96
5.4.390.0630.00019.13
5.4.380.0670.00019.14
5.4.370.0670.00018.96
5.4.360.0830.00019.08
5.4.350.0630.00019.13
5.4.340.0140.04611.97
5.4.320.0090.05212.46
5.4.310.0060.05112.45
5.4.300.0120.05512.46
5.4.290.0080.03912.45
5.4.280.0050.03612.35
5.4.270.0070.04012.35
5.4.260.0110.03512.35
5.4.250.0090.03512.35
5.4.240.0060.03612.35
5.4.230.0090.03912.34
5.4.220.0070.04012.34
5.4.210.0060.04212.34
5.4.200.0090.03912.34
5.4.190.0070.03912.34
5.4.180.0040.04312.34
5.4.170.0070.03512.35
5.4.160.0090.04212.34
5.4.150.0080.03512.34
5.4.140.0060.03912.02
5.4.130.0040.03712.01
5.4.120.0050.03711.97
5.4.110.0080.03711.97
5.4.100.0080.05611.96
5.4.90.0110.03211.97
5.4.80.0080.03611.97
5.4.70.0060.03711.96
5.4.60.0080.03311.96
5.4.50.0070.03511.96
5.4.40.0060.03911.95
5.4.30.0050.03711.95
5.4.20.0070.03611.95
5.4.10.0060.03911.95
5.4.00.0030.04211.44
5.3.290.0030.04312.80
5.3.280.0080.04412.71
5.3.270.0070.04412.72
5.3.260.0110.03412.72
5.3.250.0040.04812.72
5.3.240.0070.03912.72
5.3.230.0060.04512.71
5.3.220.0110.03812.68
5.3.210.0090.04312.68
5.3.200.0070.03712.68
5.3.190.0080.04712.68
5.3.180.0100.04612.67
5.3.170.0070.04512.67
5.3.160.0080.03812.68
5.3.150.0070.04412.68
5.3.140.0100.05212.66
5.3.130.0140.04812.65
5.3.120.0100.06112.66
5.3.110.0080.05612.65
5.3.100.0070.04612.12
5.3.90.0070.04312.09
5.3.80.0070.04812.07
5.3.70.0080.05112.07
5.3.60.0050.05212.06
5.3.50.0100.05312.00
5.3.40.0090.04412.00
5.3.30.0080.03411.95
5.3.20.0040.03711.74
5.3.10.0040.03811.70
5.3.00.0060.03911.69
5.2.170.0040.0389.19
5.2.160.0020.0349.19
5.2.150.0090.0499.19
5.2.140.0060.0389.19
5.2.130.0060.0379.14
5.2.120.0040.0379.15
5.2.110.0090.0339.15
5.2.100.0070.0319.15
5.2.90.0060.0409.15
5.2.80.0150.0589.14
5.2.70.0140.0569.14
5.2.60.0070.0339.10
5.2.50.0050.0309.07
5.2.40.0060.0359.05
5.2.30.0070.0409.02
5.2.20.0080.0329.02
5.2.10.0040.0308.92
5.2.00.0060.0288.78
5.1.60.0020.0268.05
5.1.50.0050.0248.05
5.1.40.0020.0288.04
5.1.30.0060.0278.39
5.1.20.0080.0248.41
5.1.10.0070.0288.13
5.1.00.0060.0248.14
5.0.50.0040.0256.62
5.0.40.0040.0196.47
5.0.30.0020.0326.29
5.0.20.0030.0206.26
5.0.10.0030.0216.24
5.0.00.0020.0346.23
4.4.90.0020.0174.78
4.4.80.0050.0214.76
4.4.70.0030.0174.75
4.4.60.0020.0204.75
4.4.50.0040.0164.77
4.4.40.0040.0254.71
4.4.30.0060.0184.76
4.4.20.0030.0184.85
4.4.10.0020.0214.85
4.4.00.0040.0244.76
4.3.110.0030.0174.67
4.3.100.0020.0164.67
4.3.90.0030.0144.63
4.3.80.0020.0304.58
4.3.70.0020.0204.63
4.3.60.0040.0144.63
4.3.50.0030.0194.63
4.3.40.0000.0404.54
4.3.30.0030.0193.29
4.3.20.0030.0323.26
4.3.10.0020.0213.22
4.3.00.0130.0276.77

preferences:
35.35 ms | 401 KiB | 5 Q