3v4l.org

run code in 300+ PHP versions simultaneously
<?php $match = 'word1two2=three()'; 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.00722.06
8.3.40.0150.00019.02
8.3.30.0170.00319.00
8.3.20.0080.00020.33
8.3.10.0030.00623.61
8.3.00.0060.00319.21
8.2.180.0070.00716.88
8.2.170.0070.00722.96
8.2.160.0100.00320.27
8.2.150.0050.00324.18
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0030.01320.85
8.2.110.0070.00421.08
8.2.100.0120.00017.97
8.2.90.0050.00319.22
8.2.80.0000.00817.97
8.2.70.0030.00617.63
8.2.60.0070.00417.80
8.2.50.0080.00018.07
8.2.40.0040.00419.79
8.2.30.0040.00418.31
8.2.20.0040.00417.86
8.2.10.0040.00418.07
8.2.00.0000.00817.75
8.1.280.0150.00625.92
8.1.270.0060.00323.91
8.1.260.0000.00826.35
8.1.250.0050.00328.09
8.1.240.0030.00622.11
8.1.230.0080.00319.00
8.1.220.0000.00917.74
8.1.210.0030.00618.77
8.1.200.0040.00417.36
8.1.190.0030.00517.23
8.1.180.0000.01118.10
8.1.170.0040.00418.69
8.1.160.0000.00721.97
8.1.150.0100.00018.79
8.1.140.0070.00017.59
8.1.130.0000.00717.89
8.1.120.0000.00717.46
8.1.110.0040.00417.52
8.1.100.0000.00717.50
8.1.90.0040.00417.53
8.1.80.0050.00217.44
8.1.70.0030.00317.39
8.1.60.0030.00517.67
8.1.50.0040.00417.46
8.1.40.0040.00417.57
8.1.30.0000.00917.73
8.1.20.0000.00817.72
8.1.10.0020.00517.64
8.1.00.0040.00417.61
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0050.00318.32
8.0.270.0070.00017.27
8.0.260.0070.00017.28
8.0.250.0000.00716.98
8.0.240.0070.00016.92
8.0.230.0000.00617.03
8.0.220.0070.00017.00
8.0.210.0070.00016.93
8.0.200.0030.00316.94
8.0.190.0070.00016.93
8.0.180.0070.00016.96
8.0.170.0080.00017.00
8.0.160.0000.00716.91
8.0.150.0000.00716.89
8.0.140.0030.00316.93
8.0.130.0050.00013.36
8.0.120.0000.00716.86
8.0.110.0000.00716.88
8.0.100.0070.00016.99
8.0.90.0040.00416.85
8.0.80.0080.00816.96
8.0.70.0040.00417.01
8.0.60.0040.00416.84
8.0.50.0000.00716.75
8.0.30.0090.01016.97
8.0.20.0130.00617.40
8.0.10.0040.00417.05
8.0.00.0100.00916.75
7.4.330.0000.00615.09
7.4.320.0000.00716.64
7.4.300.0060.00016.66
7.4.290.0000.00716.67
7.4.280.0000.00716.54
7.4.270.0000.00716.77
7.4.260.0000.00716.63
7.4.250.0040.00416.54
7.4.240.0020.00516.79
7.4.230.0030.00516.75
7.4.220.0130.00716.68
7.4.210.0050.01216.65
7.4.200.0000.00716.58
7.4.190.0000.00716.90
7.4.160.0110.00516.74
7.4.150.0090.00917.40
7.4.140.0140.00817.86
7.4.130.0100.00816.65
7.4.120.0060.01116.74
7.4.110.0090.00916.63
7.4.100.0120.00616.68
7.4.90.0100.00716.54
7.4.80.0150.00419.39
7.4.70.0150.00916.73
7.4.60.0090.00616.65
7.4.50.0060.00316.55
7.4.40.0030.01316.30
7.4.30.0100.00716.50
7.4.00.0030.01014.95
7.3.330.0030.00313.04
7.3.320.0030.00312.99
7.3.310.0000.00816.30
7.3.300.0030.00316.33
7.3.290.0160.00316.31
7.3.280.0100.00716.28
7.3.270.0060.01217.40
7.3.260.0120.01216.32
7.3.250.0120.00616.36
7.3.240.0070.01016.26
7.3.230.0090.00616.41
7.3.210.0090.01216.35
7.3.200.0060.01119.39
7.3.190.0090.01516.63
7.3.180.0100.01016.51
7.3.170.0100.00716.35
7.3.160.0080.00816.50
7.3.120.0030.01214.83
7.2.330.0120.00616.68
7.2.320.0060.01516.80
7.2.310.0040.01316.52
7.2.300.0130.01016.66
7.2.290.0180.00016.73
7.2.60.0130.00316.92
7.2.00.0040.00819.57
7.1.200.0030.00915.83
7.1.100.0030.01018.24
7.1.70.0060.01317.08
7.1.60.0100.02019.46
7.1.50.0100.01317.13
7.1.00.0100.07022.46
7.0.200.0030.00317.00
7.0.140.0070.07022.09
7.0.60.0130.08019.96
7.0.50.0100.07717.91
7.0.40.0000.04720.07
7.0.30.0400.07020.13
7.0.20.0300.06320.34
7.0.10.0130.08020.26
7.0.00.0030.05320.08
5.6.280.0030.07321.08
5.6.210.0100.07720.62
5.6.200.0100.06718.15
5.6.190.0070.06720.47
5.6.180.0230.04320.61
5.6.170.0230.04020.62
5.6.160.0070.08320.46
5.6.150.0070.03718.15
5.6.140.0000.04318.24
5.6.130.0070.06718.23
5.6.120.0100.08020.98
5.6.110.0070.05320.89
5.6.100.0070.08321.00
5.6.90.0030.08321.13
5.6.80.0130.06720.50
5.6.70.0200.04020.52
5.5.350.0070.07320.43
5.5.340.0070.08018.00
5.5.330.0100.08020.19
5.5.320.0170.04720.41
5.5.310.0330.07020.35
5.5.300.0170.06717.95
5.5.290.0170.06017.91
5.5.280.0130.07720.98
5.5.270.0000.08720.75
5.5.260.0070.08720.79
5.5.250.0070.08020.68
5.5.240.0030.07320.11
5.4.450.0100.05037.24
5.4.440.0170.05731.64
5.4.430.0270.05327.12
5.4.420.0430.03325.55
5.4.410.0300.05023.78
5.4.400.0270.04022.00
5.4.390.0230.04721.42
5.4.380.0370.05718.68
5.4.370.0400.04018.75
5.4.360.0330.05018.78
5.4.350.0200.06018.78
5.4.340.0470.06718.73
5.4.320.0070.04912.48
5.4.310.0050.03912.48
5.4.300.0080.04412.48
5.4.290.0100.03512.48
5.4.280.0050.03812.38
5.4.270.0050.04012.38
5.4.260.0080.03512.38
5.4.250.0080.03812.38
5.4.240.0050.03812.38
5.4.230.0070.04112.37
5.4.220.0050.04012.37
5.4.210.0050.04012.37
5.4.200.0070.04812.37
5.4.190.0050.04912.36
5.4.180.0040.04412.36
5.4.170.0070.03912.38
5.4.160.0090.03712.37
5.4.150.0080.04912.37
5.4.140.0060.03812.05
5.4.130.0060.03712.04
5.4.120.0050.03612.00
5.4.110.0050.03811.99
5.4.100.0060.03611.99
5.4.90.0040.04011.99
5.4.80.0060.03811.99
5.4.70.0090.03411.99
5.4.60.0040.03911.98
5.4.50.0090.03611.99
5.4.40.0070.04011.97
5.4.30.0060.04211.98
5.4.20.0050.04211.97
5.4.10.0080.04011.97
5.4.00.0050.04511.46
5.3.290.0030.04212.80
5.3.280.0080.04512.71
5.3.270.0100.05212.72
5.3.260.0110.05512.72
5.3.250.0080.04512.72
5.3.240.0080.04412.72
5.3.230.0040.05012.71
5.3.220.0090.04312.68
5.3.210.0060.04712.68
5.3.200.0090.04212.68
5.3.190.0080.04712.68
5.3.180.0100.03812.67
5.3.170.0070.04112.67
5.3.160.0050.04312.68
5.3.150.0050.04312.68
5.3.140.0070.04712.66
5.3.130.0060.05212.66
5.3.120.0110.04112.66
5.3.110.0100.04412.66
5.3.100.0100.04112.12
5.3.90.0070.04412.10
5.3.80.0090.04512.09
5.3.70.0060.04112.09
5.3.60.0070.04212.07
5.3.50.0080.04112.02
5.3.40.0060.04012.02
5.3.30.0050.04111.98
5.3.20.0080.03711.76
5.3.10.0100.03511.73
5.3.00.0140.05811.71
5.2.170.0090.0429.21
5.2.160.0070.0439.21
5.2.150.0110.0409.21
5.2.140.0090.0419.21
5.2.130.0120.0379.18
5.2.120.0070.0419.18
5.2.110.0050.0429.18
5.2.100.0060.0389.18
5.2.90.0100.0359.19
5.2.80.0070.0409.17
5.2.70.0080.0389.17
5.2.60.0090.0379.12
5.2.50.0100.0369.09
5.2.40.0080.0369.07
5.2.30.0090.0369.06
5.2.20.0040.0389.04
5.2.10.0060.0388.94
5.2.00.0080.0368.80
5.1.60.0040.0338.07
5.1.50.0080.0318.07
5.1.40.0060.0318.05
5.1.30.0060.0328.40
5.1.20.0030.0428.43
5.1.10.0040.0298.14
5.1.00.0060.0278.15
5.0.50.0030.0236.63
5.0.40.0060.0216.48
5.0.30.0070.0336.30
5.0.20.0020.0246.28
5.0.10.0030.0236.25
5.0.00.0060.0316.24
4.4.90.0030.0184.78
4.4.80.0050.0154.75
4.4.70.0040.0234.76
4.4.60.0110.0164.75
4.4.50.0050.0194.77
4.4.40.0050.0344.70
4.4.30.0060.0174.76
4.4.20.0060.0164.84
4.4.10.0040.0244.85
4.4.00.0030.0334.76
4.3.110.0040.0224.67
4.3.100.0050.0204.67
4.3.90.0030.0224.64
4.3.80.0090.0284.59
4.3.70.0080.0164.63
4.3.60.0030.0164.63
4.3.50.0020.0174.63
4.3.40.0030.0254.54
4.3.30.0040.0183.30
4.3.20.0030.0163.27
4.3.10.0020.0173.23
4.3.00.0030.01720.57

preferences:
62.4 ms | 401 KiB | 5 Q