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(static::$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.70.0100.00716.75
8.3.60.0100.00718.56
8.3.50.0090.00921.19
8.3.40.0150.00018.79
8.3.30.0090.00919.13
8.3.20.0040.00420.20
8.3.10.0080.00023.66
8.3.00.0030.00519.26
8.2.180.0150.00316.50
8.2.170.0140.00722.96
8.2.160.0060.00920.45
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0090.00019.77
8.2.110.0060.00322.30
8.2.100.0090.00317.63
8.2.90.0040.00419.08
8.2.80.0030.00517.97
8.2.70.0000.00817.75
8.2.60.0030.00717.93
8.2.50.0040.00418.07
8.2.40.0030.00619.72
8.2.30.0020.00517.95
8.2.20.0080.00017.69
8.2.10.0000.00818.07
8.2.00.0050.00317.84
8.1.280.0040.01125.92
8.1.270.0030.00523.83
8.1.260.0030.00626.35
8.1.250.0050.00328.09
8.1.240.0060.00323.98
8.1.230.0080.00317.42
8.1.220.0050.00317.74
8.1.210.0030.00518.77
8.1.200.0030.00617.12
8.1.190.0000.00817.35
8.1.180.0050.00318.10
8.1.170.0040.00418.44
8.1.160.0050.00321.94
8.1.150.0000.00718.73
8.1.140.0000.00717.39
8.1.130.0000.00717.84
8.1.120.0070.00017.38
8.1.110.0040.00417.23
8.1.100.0050.00217.36
8.1.90.0030.00317.48
8.1.80.0070.00017.44
8.1.70.0030.00317.28
8.1.60.0060.00317.52
8.1.50.0040.00417.42
8.1.40.0050.00317.53
8.1.30.0000.00817.49
8.1.20.0060.00317.52
8.1.10.0030.00517.59
8.1.00.0060.00317.51
8.0.300.0070.00018.77
8.0.290.0000.00816.58
8.0.280.0030.00318.28
8.0.270.0030.00317.27
8.0.260.0060.00017.22
8.0.250.0000.00716.86
8.0.240.0030.00316.86
8.0.230.0030.00316.82
8.0.220.0040.00416.92
8.0.210.0030.00516.90
8.0.200.0030.00316.95
8.0.190.0000.00716.94
8.0.180.0080.00016.91
8.0.170.0040.00416.93
8.0.160.0050.00316.86
8.0.150.0000.00816.74
8.0.140.0000.00716.82
8.0.130.0050.00013.36
8.0.120.0040.00416.86
8.0.110.0030.00416.82
8.0.100.0050.00216.96
8.0.90.0000.00716.97
8.0.80.0080.00816.83
8.0.70.0040.00416.91
8.0.60.0040.00416.92
8.0.50.0000.00716.77
8.0.30.0170.00517.16
8.0.20.0140.01017.40
8.0.10.0000.00717.05
8.0.00.0050.01316.88
7.4.330.0000.00515.02
7.4.320.0070.00016.59
7.4.300.0060.00016.42
7.4.290.0040.00416.37
7.4.280.0040.00416.50
7.4.270.0040.00416.52
7.4.260.0000.00716.57
7.4.250.0040.00416.58
7.4.240.0040.00316.49
7.4.230.0030.00316.43
7.4.220.0150.01216.61
7.4.210.0060.01016.63
7.4.200.0070.00016.35
7.4.160.0060.00916.52
7.4.150.0090.00917.40
7.4.140.0160.00717.86
7.4.130.0030.01416.46
7.4.120.0070.01016.57
7.4.110.0040.01416.58
7.4.100.0070.01016.67
7.4.90.0100.00716.48
7.4.80.0170.00719.39
7.4.70.0100.01016.43
7.4.60.0070.01016.64
7.4.50.0040.00416.35
7.4.40.0060.00916.45
7.4.30.0130.00316.55
7.4.00.0070.01015.03
7.3.330.0000.00513.02
7.3.320.0000.00513.10
7.3.310.0030.00416.23
7.3.300.0030.00316.28
7.3.290.0080.00616.25
7.3.280.0110.00516.22
7.3.270.0070.01017.40
7.3.260.0070.01016.37
7.3.250.0060.01016.36
7.3.240.0080.00816.44
7.3.230.0060.01016.39
7.3.210.0090.00916.36
7.3.200.0090.00919.39
7.3.190.0130.00316.58
7.3.180.0090.00616.31
7.3.170.0100.00716.49
7.3.160.0130.00316.59
7.2.330.0030.01416.63
7.2.320.0130.01016.55
7.2.310.0100.00716.53
7.2.300.0140.00316.61
7.2.290.0120.00816.52
7.2.60.0130.00316.90
7.2.00.0270.00819.03
7.1.200.0070.00715.31
7.1.100.0000.01218.12
7.1.70.0080.00417.07
7.1.60.0040.00719.11
7.1.50.0040.01916.80
7.1.00.0070.07322.52
7.0.200.0030.00616.74
7.0.140.0070.07022.09
7.0.60.0100.07319.91
7.0.50.0030.05017.88
7.0.40.0200.06319.90
7.0.30.0230.04020.18
7.0.20.0470.06720.02
7.0.10.0130.05320.16
7.0.00.0000.07020.09
5.6.210.0070.04020.68
5.6.200.0000.04318.18
5.6.190.0170.07020.67
5.6.180.0270.04020.45
5.6.170.0170.04720.33
5.6.160.0100.08020.71
5.6.150.0070.04018.13
5.6.140.0070.04018.12
5.6.130.0000.04318.18
5.6.120.0030.04720.89
5.6.110.0200.07320.98
5.6.100.0170.07721.12
5.6.90.0030.04020.96
5.6.80.0100.05320.28
5.6.70.3070.03720.37
5.5.350.0170.05020.41
5.5.340.0030.05717.92
5.5.330.0070.08720.20
5.5.320.0270.03720.26
5.5.310.0330.06020.29
5.5.300.0070.03718.02
5.5.290.0070.05018.02
5.5.280.0100.06320.73
5.5.270.0130.07720.72
5.5.260.0130.08020.75
5.5.250.0130.08020.65
5.5.240.0200.03020.36
5.4.450.0830.05319.53
5.4.440.0330.06019.12
5.4.430.0100.05319.41
5.4.420.0730.00019.49
5.4.410.0670.00019.04
5.4.400.0600.00019.00
5.4.390.0630.00018.96
5.4.380.0630.00019.05
5.4.370.0630.00019.07
5.4.360.0600.00019.07
5.4.350.0630.00019.00
5.4.340.0050.04211.98
5.4.320.0040.04112.46
5.4.310.0070.03712.45
5.4.300.0080.03512.45
5.4.290.0040.04112.45
5.4.280.0060.03612.35
5.4.270.0110.04412.35
5.4.260.0100.04312.35
5.4.250.0040.04312.35
5.4.240.0070.03812.35
5.4.230.0100.03512.34
5.4.220.0070.04512.34
5.4.210.0050.04012.34
5.4.200.0170.05412.34
5.4.190.0100.05612.34
5.4.180.0110.05112.34
5.4.170.0130.03912.35
5.4.160.0040.04912.34
5.4.150.0070.04212.34
5.4.140.0110.04012.03
5.4.130.0080.03912.01
5.4.120.0120.03111.97
5.4.110.0180.07511.96
5.4.100.0080.04611.97
5.4.90.0080.05711.97
5.4.80.0080.04211.97
5.4.70.0080.03611.96
5.4.60.0070.03411.96
5.4.50.0120.04011.96
5.4.40.0110.04211.95
5.4.30.0090.03611.95
5.4.20.0040.03711.95
5.4.10.0030.03611.95
5.4.00.0070.03911.44
5.3.290.0070.03912.80
5.3.280.0140.04212.71
5.3.270.0080.04412.72
5.3.260.0060.04212.72
5.3.250.0080.03612.72
5.3.240.0080.03812.72
5.3.230.0060.03712.71
5.3.220.0030.04612.68
5.3.210.0080.03612.68
5.3.200.0060.03612.68
5.3.190.0120.03612.68
5.3.180.0070.04012.68
5.3.170.0070.04012.67
5.3.160.0020.04012.68
5.3.150.0060.03712.68
5.3.140.0090.03812.66
5.3.130.0090.03812.66
5.3.120.0060.03812.66
5.3.110.0080.04212.66
5.3.100.0070.03812.12
5.3.90.0080.03412.08
5.3.80.0030.03912.08
5.3.70.0030.03912.07
5.3.60.0050.03812.07
5.3.50.0070.03612.00
5.3.40.0050.04212.00
5.3.30.0090.03911.95
5.3.20.0070.04211.73
5.3.10.0100.03811.69
5.3.00.0070.04211.68
5.2.170.0030.0349.18
5.2.160.0090.0279.18
5.2.150.0030.0399.18
5.2.140.0040.0439.18
5.2.130.0130.0379.14
5.2.120.0100.0479.14
5.2.110.0110.0479.14
5.2.100.0040.0349.14
5.2.90.0040.0349.14
5.2.80.0080.0329.14
5.2.70.0060.0319.14
5.2.60.0050.0299.09
5.2.50.0050.0349.05
5.2.40.0080.0399.04
5.2.30.0100.0399.01
5.2.20.0050.0359.00
5.2.10.0030.0368.92
5.2.00.0060.0408.79
5.1.60.0080.0298.07
5.1.50.0070.0318.07
5.1.40.0060.0398.05
5.1.30.0130.0368.40
5.1.20.0090.0418.42
5.1.10.0050.0478.14
5.1.00.0160.0678.14
5.0.50.0050.0226.62
5.0.40.0060.0226.48
5.0.30.0060.0376.29
5.0.20.0040.0216.26
5.0.10.0070.0206.24
5.0.00.0020.0386.23
4.4.90.0030.0214.78
4.4.80.0040.0204.76
4.4.70.0020.0234.75
4.4.60.0050.0244.75
4.4.50.0020.0244.77
4.4.40.0010.0364.71
4.4.30.0010.0194.76
4.4.20.0080.0184.85
4.4.10.0040.0224.85
4.4.00.0070.0314.76
4.3.110.0070.0194.67
4.3.100.0070.0214.66
4.3.90.0050.0314.63
4.3.80.0090.0344.58
4.3.70.0040.0214.63
4.3.60.0090.0274.63
4.3.50.0040.0204.63
4.3.40.0020.0584.54
4.3.30.0060.0373.29
4.3.20.0000.0373.27
4.3.10.0060.0213.22
4.3.00.0000.0237.02

preferences:
75.82 ms | 401 KiB | 5 Q