3v4l.org

run code in 300+ PHP versions simultaneously
<?php $match = 'two|words=motherfucker()'; if (preg_match('/^(\w*)(?:|(\w*))(?:=(\w\(\)))?$/', $match, $var)) { print_r($var); } else { print('Not matching :('); }

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.0100.00716.75
8.3.50.0090.00922.14
8.3.40.0090.00619.00
8.3.30.0120.00618.93
8.3.20.0090.00020.29
8.3.10.0080.00023.71
8.3.00.0070.00319.02
8.2.180.0120.00616.50
8.2.170.0140.00622.96
8.2.160.0070.00720.50
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00020.95
8.2.110.0060.00322.44
8.2.100.0030.00919.70
8.2.90.0060.00319.08
8.2.80.0040.00417.97
8.2.70.0040.00417.75
8.2.60.0060.00317.93
8.2.50.0040.00418.07
8.2.40.0000.00819.90
8.2.30.0040.00418.09
8.2.20.0050.00217.69
8.2.10.0020.00517.95
8.2.00.0090.00017.83
8.1.280.0060.00925.92
8.1.270.0060.00323.80
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0090.00022.19
8.1.230.0120.00019.04
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0090.00617.25
8.1.190.0000.00817.38
8.1.180.0000.00818.10
8.1.170.0060.00318.71
8.1.160.0000.00721.95
8.1.150.0040.00418.81
8.1.140.0030.00517.44
8.1.130.0030.00317.77
8.1.120.0000.00717.45
8.1.110.0040.00417.59
8.1.100.0040.00417.57
8.1.90.0050.00317.43
8.1.80.0070.00017.56
8.1.70.0000.00717.52
8.1.60.0050.00317.67
8.1.50.0040.00417.66
8.1.40.0000.00817.50
8.1.30.0000.00917.76
8.1.20.0000.00817.80
8.1.10.0040.00417.57
8.1.00.0040.00417.63
8.0.300.0020.00518.77
8.0.290.0000.00717.05
8.0.280.0070.00018.34
8.0.270.0000.00717.34
8.0.260.0000.00717.28
8.0.250.0030.00317.05
8.0.240.0040.00417.01
8.0.230.0070.00017.02
8.0.220.0070.00016.98
8.0.210.0050.00317.01
8.0.200.0060.00017.09
8.0.190.0000.00817.08
8.0.180.0040.00416.95
8.0.170.0040.00417.00
8.0.160.0000.00716.88
8.0.150.0040.00316.91
8.0.140.0070.00016.89
8.0.130.0030.00313.45
8.0.120.0040.00416.98
8.0.110.0000.00717.01
8.0.100.0070.00017.05
8.0.90.0050.00317.01
8.0.80.0070.01417.04
8.0.70.0080.00016.93
8.0.60.0040.00416.86
8.0.50.0040.00416.84
8.0.30.0120.00817.18
8.0.20.0090.00917.40
8.0.10.0080.00016.94
8.0.00.0030.01416.72
7.4.330.0050.00015.00
7.4.320.0030.00616.75
7.4.300.0000.00716.60
7.4.290.0000.00716.75
7.4.280.0070.00016.63
7.4.270.0040.00416.72
7.4.260.0000.00716.76
7.4.250.0000.00716.70
7.4.240.0040.00416.68
7.4.230.0090.00016.86
7.4.220.0090.00816.71
7.4.210.0060.01016.77
7.4.200.0000.00716.73
7.4.190.0040.00416.84
7.4.160.0030.01416.59
7.4.150.0060.01317.40
7.4.140.0110.00817.86
7.4.130.0090.00816.63
7.4.120.0140.00316.66
7.4.110.0060.01716.75
7.4.100.0110.00816.71
7.4.90.0160.00316.71
7.4.80.0060.01219.39
7.4.70.0060.00916.63
7.4.60.0030.01316.88
7.4.50.0000.00916.62
7.4.40.0110.01516.61
7.4.30.0060.01016.73
7.4.00.0080.01114.93
7.3.330.0030.00313.17
7.3.320.0020.00213.04
7.3.310.0040.00416.38
7.3.300.0000.00716.25
7.3.290.0030.01016.28
7.3.280.0110.00816.27
7.3.270.0040.01317.40
7.3.260.0150.00416.32
7.3.250.0140.00516.63
7.3.240.0090.00916.39
7.3.230.0130.00316.39
7.3.210.0040.01216.25
7.3.200.0120.01019.39
7.3.190.0070.01016.35
7.3.180.0090.01216.63
7.3.170.0110.00516.40
7.3.160.0030.01716.43
7.3.120.0090.00914.73
7.3.110.0100.01014.96
7.3.100.0110.00414.85
7.3.90.0030.00814.88
7.3.80.0100.00314.75
7.3.70.0070.01014.78
7.3.60.0030.01314.70
7.3.50.0090.00614.66
7.3.40.0030.00914.89
7.3.30.0060.00914.96
7.3.20.0110.00416.82
7.3.10.0070.00716.57
7.3.00.0030.01016.71
7.2.330.0070.02016.82
7.2.320.0060.01316.72
7.2.310.0130.00716.63
7.2.300.0030.01316.52
7.2.290.0180.00316.73
7.2.250.0070.01415.16
7.2.240.0040.01415.16
7.2.230.0030.00915.11
7.2.220.0130.00015.06
7.2.210.0100.00715.29
7.2.200.0000.01015.14
7.2.190.0100.00615.02
7.2.180.0030.00815.13
7.2.170.0100.00314.82
7.2.60.0130.00716.88
7.2.00.0060.01119.03
7.1.330.0060.00915.71
7.1.320.0110.00015.85
7.1.310.0100.00316.11
7.1.300.0050.00816.07
7.1.290.0030.00615.89
7.1.280.0070.00715.88
7.1.270.0040.00416.05
7.1.260.0050.00516.02
7.1.200.0070.00715.79
7.1.100.0000.01318.22
7.1.70.0000.00917.34
7.1.60.0040.01419.46
7.1.50.0040.00716.77
7.1.00.0070.07322.59
7.0.200.0040.00716.87
7.0.140.0030.07321.94
7.0.60.0070.07320.07
7.0.50.0100.05717.92
7.0.40.0070.06320.09
7.0.30.0330.03320.15
7.0.20.0430.07320.11
7.0.10.0100.03720.11
7.0.00.0070.04020.34
5.6.280.0070.07020.92
5.6.210.0100.07720.66
5.6.200.0170.06018.23
5.6.190.0100.04320.68
5.6.180.0170.04320.29
5.6.170.0230.08020.73
5.6.160.0070.03720.44
5.6.150.0070.08318.21
5.6.140.0130.03018.07
5.6.130.0070.04718.22
5.6.120.0130.04321.02
5.6.110.0100.06021.09
5.6.100.0100.08320.95
5.6.90.0030.04021.11
5.6.80.0070.07020.36
5.5.350.3570.03320.52
5.5.340.0130.07317.92
5.5.330.0170.05720.43
5.5.320.0330.05020.20
5.5.310.0200.05320.29
5.5.300.0070.08318.02
5.5.290.0030.08718.02
5.5.280.0000.04320.87
5.5.270.0030.06320.86
5.5.260.0170.07320.64
5.5.250.0070.06720.78
5.5.240.0030.03720.33
5.4.450.0630.06319.41
5.4.440.0100.05019.41
5.4.430.0230.04319.09
5.4.420.0330.04319.10
5.4.410.0430.04019.10
5.4.400.0430.03018.82
5.4.390.0270.03719.10
5.4.380.0070.06018.64
5.4.370.0130.05318.62
5.4.360.0200.04718.62
5.4.350.0230.06718.56
5.4.340.0330.03318.56
5.4.320.0040.03912.45
5.4.310.0060.04212.45
5.4.300.0130.04912.45
5.4.290.0080.05512.45
5.4.280.0110.05412.35
5.4.270.0070.05212.35
5.4.260.0070.05312.34
5.4.250.0090.05212.35
5.4.240.0120.04712.35
5.4.230.0100.05012.34
5.4.220.0120.04612.34
5.4.210.0100.04712.34
5.4.200.0110.04912.34
5.4.190.0130.04712.33
5.4.180.0100.04912.34
5.4.170.0130.04712.35
5.4.160.0080.05112.34
5.4.150.0080.05612.34
5.4.140.0090.04612.02
5.4.130.0110.03412.01
5.4.120.0060.03911.96
5.4.110.0080.03511.96
5.4.100.0090.04011.96
5.4.90.0070.05011.96
5.4.80.0100.04711.96
5.4.70.0060.04811.96
5.4.60.0060.04811.96
5.4.50.0080.04911.96
5.4.40.0080.05011.95
5.4.30.0100.04611.95
5.4.20.0080.04911.95
5.4.10.0100.04711.95
5.4.00.0100.04811.43
5.3.290.0090.03812.80
5.3.280.0120.04812.71
5.3.270.0070.04712.72
5.3.260.0050.04612.72
5.3.250.0060.04212.72
5.3.240.0100.03912.71
5.3.230.0030.04512.71
5.3.220.0070.04212.68
5.3.210.0080.04212.68
5.3.200.0070.04912.68
5.3.190.0100.04712.68
5.3.180.0110.04712.67
5.3.170.0150.05112.67
5.3.160.0120.04912.67
5.3.150.0070.04912.68
5.3.140.0130.03912.66
5.3.130.0060.04212.66
5.3.120.0080.04812.66
5.3.110.0150.05212.65
5.3.100.0110.05312.11
5.3.90.0180.05912.08
5.3.80.0110.04112.07
5.3.70.0090.04412.07
5.3.60.0050.05012.06
5.3.50.0110.05212.00
5.3.40.0130.04912.00
5.3.30.0160.07511.95
5.3.20.0100.05811.73
5.3.10.0120.07611.70
5.3.00.0080.05611.68
5.2.170.0070.0519.19
5.2.160.0100.0509.19
5.2.150.0110.0739.19
5.2.140.0100.0569.19
5.2.130.0040.0339.14
5.2.120.0080.0329.15
5.2.110.0070.0459.16
5.2.100.0070.0439.15
5.2.90.0160.0689.14
5.2.80.0090.0549.14
5.2.70.0100.0589.15
5.2.60.0110.0429.10
5.2.50.0110.0469.06
5.2.40.0120.0689.05
5.2.30.0050.0429.03
5.2.20.0050.0399.01
5.2.10.0040.0398.93
5.2.00.0090.0598.79
5.1.60.0110.0528.07
5.1.50.0030.0488.07
5.1.40.0090.0388.05
5.1.30.0080.0338.40
5.1.20.0130.0528.42
5.1.10.0080.0338.15
5.1.00.0180.0658.14
5.0.50.0030.0236.63
5.0.40.0040.0186.48
5.0.30.0030.0386.30
5.0.20.0040.0276.27
5.0.10.0050.0336.25
5.0.00.0060.0346.23
4.4.90.0030.0194.78
4.4.80.0020.0174.76
4.4.70.0050.0154.75
4.4.60.0090.0164.76
4.4.50.0050.0504.77
4.4.40.0090.0584.71
4.4.30.0050.0184.76
4.4.20.0020.0244.84
4.4.10.0050.0244.85
4.4.00.0030.0294.76
4.3.110.0040.0274.67
4.3.100.0070.0344.67
4.3.90.0080.0234.63
4.3.80.0150.1114.59
4.3.70.0040.0214.63
4.3.60.0060.0214.63
4.3.50.0060.0254.63
4.3.40.0030.0554.54
4.3.30.0050.0283.29
4.3.20.0030.0273.27
4.3.10.0050.0203.23
4.3.00.0030.01712.60

preferences:
39.53 ms | 401 KiB | 5 Q