3v4l.org

run code in 300+ PHP versions simultaneously
<?php $match = 'words=motherfucker()'; if (preg_match('/^([^|=]*)(?:|(.*))(?:=(.*\(\)))?$/', $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.0110.00418.30
8.3.50.0110.00622.01
8.3.40.0090.00618.84
8.3.30.0090.01319.02
8.3.20.0040.00420.20
8.3.10.0080.00023.65
8.3.00.0100.00020.77
8.2.180.0120.00916.63
8.2.170.0120.00322.96
8.2.160.0160.00020.57
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0050.00320.78
8.2.110.0100.00022.38
8.2.100.0060.00617.66
8.2.90.0030.00619.17
8.2.80.0000.00817.97
8.2.70.0030.00617.75
8.2.60.0090.00017.80
8.2.50.0060.00318.07
8.2.40.0040.00420.01
8.2.30.0000.00718.07
8.2.20.0040.00417.77
8.2.10.0000.00718.02
8.2.00.0030.00617.77
8.1.280.0060.00925.92
8.1.270.0040.00423.61
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0030.00622.14
8.1.230.0090.00319.09
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0060.00317.36
8.1.190.0040.00417.22
8.1.180.0000.00818.10
8.1.170.0030.00718.72
8.1.160.0000.00821.98
8.1.150.0050.00218.71
8.1.140.0070.00017.41
8.1.130.0040.00417.80
8.1.120.0030.00317.55
8.1.110.0040.00417.49
8.1.100.0000.00817.44
8.1.90.0080.00017.55
8.1.80.0000.00717.44
8.1.70.0040.00417.54
8.1.60.0060.00317.68
8.1.50.0000.00817.52
8.1.40.0050.00317.62
8.1.30.0000.00917.71
8.1.20.0030.00617.63
8.1.10.0000.00717.64
8.1.00.0000.00717.52
8.0.300.0030.00618.77
8.0.290.0070.00016.93
8.0.280.0000.00718.41
8.0.270.0030.00317.16
8.0.260.0000.00717.28
8.0.250.0070.00016.91
8.0.240.0080.00017.01
8.0.230.0030.00316.96
8.0.220.0030.00316.86
8.0.210.0000.00716.95
8.0.200.0000.00617.02
8.0.190.0000.00816.91
8.0.180.0040.00416.99
8.0.170.0040.00417.00
8.0.160.0040.00417.00
8.0.150.0000.00816.93
8.0.140.0040.00416.85
8.0.130.0040.00413.38
8.0.120.0050.00316.91
8.0.110.0030.00517.00
8.0.100.0040.00416.84
8.0.90.0040.00417.00
8.0.80.0030.01216.92
8.0.70.0000.00716.81
8.0.60.0000.00816.99
8.0.50.0000.00716.86
8.0.30.0060.01317.16
8.0.20.0120.01217.41
8.0.10.0060.00317.12
8.0.00.0110.00716.99
7.4.330.0000.00515.00
7.4.320.0000.00716.64
7.4.300.0050.00316.75
7.4.290.0000.00716.57
7.4.280.0050.00316.73
7.4.270.0040.00416.64
7.4.260.0070.00016.72
7.4.250.0000.00816.51
7.4.240.0020.00516.66
7.4.230.0050.00316.86
7.4.220.0060.02016.83
7.4.210.0050.01116.70
7.4.200.0030.00516.73
7.4.190.0000.00716.66
7.4.160.0080.00816.59
7.4.150.0240.00017.40
7.4.140.0080.00917.86
7.4.130.0110.00516.56
7.4.120.0150.00516.65
7.4.110.0030.01516.77
7.4.100.0120.00916.75
7.4.90.0120.00616.73
7.4.80.0090.01519.39
7.4.70.0080.00816.79
7.4.60.0090.00616.46
7.4.50.0020.00216.39
7.4.40.0100.00716.45
7.4.30.0070.01016.67
7.4.00.0070.01015.04
7.3.330.0000.00513.04
7.3.320.0050.00013.02
7.3.310.0000.00716.28
7.3.300.0000.00716.23
7.3.290.0070.00716.29
7.3.280.0100.00716.23
7.3.270.0090.00917.40
7.3.260.0110.00616.34
7.3.250.0090.00916.55
7.3.240.0060.01216.47
7.3.230.0130.00716.57
7.3.210.0150.00816.52
7.3.200.0070.01419.39
7.3.190.0120.00816.33
7.3.180.0120.00816.43
7.3.170.0030.01316.40
7.3.160.0070.01416.52
7.3.120.0060.00914.62
7.3.110.0100.00714.83
7.3.100.0030.01614.78
7.3.90.0000.01514.54
7.3.80.0040.01115.02
7.3.70.0030.00914.64
7.3.60.0000.00814.93
7.3.50.0080.00414.60
7.3.40.0080.00614.92
7.3.30.0040.00814.75
7.3.20.0030.01016.66
7.3.10.0050.00516.64
7.3.00.0030.00616.39
7.2.330.0190.00016.62
7.2.320.0030.01416.53
7.2.310.0090.00916.51
7.2.300.0030.01616.42
7.2.290.0090.01216.57
7.2.250.0040.01414.94
7.2.240.0030.01314.97
7.2.230.0070.01015.27
7.2.220.0060.00315.14
7.2.210.0000.00914.75
7.2.200.0030.00815.26
7.2.190.0030.01015.06
7.2.180.0030.00615.07
7.2.170.0030.01014.78
7.2.00.0090.00919.09
7.1.330.0040.00915.92
7.1.320.0070.00716.02
7.1.310.0090.00316.02
7.1.300.0000.01215.85
7.1.290.0030.00915.93
7.1.280.0000.00915.95
7.1.270.0030.00915.92
7.1.260.0030.01016.04
7.1.100.0000.00918.15
7.1.70.0000.01017.28
7.1.60.0000.01319.46
7.1.50.0110.01117.03
7.1.00.0070.07322.60
7.0.200.0060.00316.66
7.0.140.0000.07722.00
7.0.60.0070.08320.01
7.0.50.0130.03717.90
7.0.40.0070.08320.28
7.0.30.0370.07020.10
7.0.20.0400.07320.24
7.0.10.0070.08020.18
7.0.00.0030.04020.23
5.6.280.0000.07321.14
5.6.210.0100.07720.56
5.6.200.0030.04318.19
5.6.190.0030.05020.57
5.6.180.0230.04020.47
5.6.170.0170.04720.48
5.6.160.0130.07720.55
5.6.150.0130.04018.13
5.6.140.0070.05318.11
5.6.130.0030.09018.21
5.6.120.0130.08021.05
5.6.110.0070.08320.98
5.6.100.0070.04020.98
5.6.90.0070.07720.97
5.6.80.0000.06020.40
5.5.350.0100.07720.31
5.5.340.0200.06718.07
5.5.330.0030.08720.25
5.5.320.0300.05320.33
5.5.310.0400.06720.34
5.5.300.0030.05017.95
5.5.290.0070.08317.95
5.5.280.0170.07720.76
5.5.270.0130.08020.86
5.5.260.0100.08320.86
5.5.250.0130.07320.58
5.5.240.0100.03720.36
5.4.450.0270.04319.57
5.4.440.0170.05019.29
5.4.430.0230.05319.32
5.4.420.1230.04319.50
5.4.410.0130.04319.09
5.4.400.0400.05019.15
5.4.390.0170.04319.04
5.4.380.0130.05718.74
5.4.370.0330.03318.48
5.4.360.0030.07318.84
5.4.350.0100.07718.51
5.4.340.0100.06018.45
5.4.320.0080.03612.48
5.4.310.0100.03912.48
5.4.300.0130.05112.48
5.4.290.0100.04612.48
5.4.280.0080.05112.38
5.4.270.0150.04312.38
5.4.260.0140.04212.38
5.4.250.0060.05312.38
5.4.240.0110.05212.38
5.4.230.0120.05412.37
5.4.220.0070.05412.37
5.4.210.0130.04812.37
5.4.200.0150.05112.37
5.4.190.0110.05212.36
5.4.180.0070.05212.36
5.4.170.0130.04512.38
5.4.160.0110.04612.37
5.4.150.0100.04612.37
5.4.140.0120.04612.05
5.4.130.0090.04412.04
5.4.120.0090.04312.00
5.4.110.0130.04611.99
5.4.100.0060.04511.99
5.4.90.0090.04611.99
5.4.80.0080.05011.99
5.4.70.0150.04311.99
5.4.60.0110.04411.98
5.4.50.0100.04811.99
5.4.40.0070.05411.98
5.4.30.0080.04511.97
5.4.20.0040.03911.98
5.4.10.0090.03511.97
5.4.00.0120.03611.47
5.3.290.0070.03812.80
5.3.280.0090.04112.71
5.3.270.0110.04812.73
5.3.260.0080.04312.72
5.3.250.0080.03712.72
5.3.240.0110.03512.72
5.3.230.0100.04212.70
5.3.220.0070.03912.68
5.3.210.0100.03712.68
5.3.200.0070.03712.68
5.3.190.0060.04012.67
5.3.180.0050.03912.67
5.3.170.0050.04712.67
5.3.160.0100.04912.68
5.3.150.0080.04912.67
5.3.140.0130.05012.66
5.3.130.0140.04712.66
5.3.120.0060.05212.66
5.3.110.0080.05412.66
5.3.100.0060.03712.12
5.3.90.0040.04012.10
5.3.80.0050.03912.09
5.3.70.0060.03712.09
5.3.60.0060.05012.07
5.3.50.0110.04212.02
5.3.40.0090.03312.02
5.3.30.0050.03711.98
5.3.20.0090.03411.76
5.3.10.0080.03511.73
5.3.00.0040.03911.71
5.2.170.0080.0289.22
5.2.160.0040.0359.22
5.2.150.0040.0369.21
5.2.140.0060.0319.21
5.2.130.0090.0389.17
5.2.120.0050.0309.17
5.2.110.0060.0329.18
5.2.100.0080.0289.18
5.2.90.0100.0329.18
5.2.80.0100.0339.17
5.2.70.0050.0309.17
5.2.60.0050.0399.12
5.2.50.0060.0439.09
5.2.40.0080.0379.08
5.2.30.0040.0459.06
5.2.20.0050.0419.04
5.2.10.0060.0418.94
5.2.00.0080.0428.80
5.1.60.0050.0368.07
5.1.50.0060.0348.07
5.1.40.0050.0378.05
5.1.30.0070.0378.40
5.1.20.0050.0398.43
5.1.10.0080.0348.14
5.1.00.0070.0378.14
5.0.50.0040.0306.63
5.0.40.0070.0266.48
5.0.30.0060.0426.30
5.0.20.0070.0266.27
5.0.10.0060.0286.24
5.0.00.0050.0416.23
4.4.90.0030.0234.78
4.4.80.0060.0194.75
4.4.70.0040.0214.75
4.4.60.0030.0224.75
4.4.50.0040.0224.77
4.4.40.0030.0354.71
4.4.30.0050.0204.76
4.4.20.0030.0234.85
4.4.10.0030.0234.85
4.4.00.0020.0344.76
4.3.110.0030.0234.67
4.3.100.0060.0204.67
4.3.90.0030.0224.63
4.3.80.0030.0334.58
4.3.70.0050.0204.63
4.3.60.0030.0224.62
4.3.50.0000.0264.63
4.3.40.0040.0334.54
4.3.30.0020.0193.29
4.3.20.0020.0213.27
4.3.10.0040.0203.23
4.3.00.0100.01012.60

preferences:
66 ms | 401 KiB | 5 Q