3v4l.org

run code in 300+ PHP versions simultaneously
<?php $match = 'wordtwo=fuck()'; 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.0090.00616.50
8.3.50.0110.00622.04
8.3.40.0070.00719.09
8.3.30.0070.00719.09
8.3.20.0050.00320.34
8.3.10.0090.00023.48
8.3.00.0050.00319.20
8.2.180.0140.00716.88
8.2.170.0060.01222.96
8.2.160.0040.01120.38
8.2.150.0060.00324.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0000.00820.82
8.2.110.0100.01322.36
8.2.100.0080.00419.82
8.2.90.0090.00019.05
8.2.80.0080.00017.97
8.2.70.0060.00317.75
8.2.60.0030.00617.68
8.2.50.0060.00318.07
8.2.40.0030.00620.01
8.2.30.0070.00018.21
8.2.20.0050.00217.75
8.2.10.0080.00017.93
8.2.00.0040.00417.75
8.1.280.0180.00325.92
8.1.270.0100.01023.84
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0100.00623.97
8.1.230.0080.00319.23
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0040.00417.35
8.1.180.0080.00018.10
8.1.170.0000.01018.65
8.1.160.0000.00721.90
8.1.150.0070.00018.73
8.1.140.0050.00317.49
8.1.130.0000.00717.71
8.1.120.0050.00317.55
8.1.110.0040.00417.41
8.1.100.0060.00317.53
8.1.90.0070.00017.59
8.1.80.0000.00817.52
8.1.70.0000.00717.51
8.1.60.0000.00817.61
8.1.50.0080.00017.50
8.1.40.0020.00517.64
8.1.30.0020.00517.73
8.1.20.0000.01017.57
8.1.10.0000.00817.52
8.1.00.0090.00017.46
8.0.300.0040.00418.77
8.0.290.0050.00217.16
8.0.280.0000.00718.37
8.0.270.0030.00317.27
8.0.260.0070.00017.18
8.0.250.0070.00017.06
8.0.240.0000.00717.02
8.0.230.0040.00416.89
8.0.220.0030.00316.96
8.0.210.0070.00016.91
8.0.200.0000.00616.90
8.0.190.0030.00616.93
8.0.180.0000.00717.01
8.0.170.0020.00516.88
8.0.160.0040.00416.87
8.0.150.0000.00716.94
8.0.140.0000.00716.96
8.0.130.0040.00413.37
8.0.120.0050.00216.82
8.0.110.0000.00717.02
8.0.100.0040.00417.00
8.0.90.0050.00216.91
8.0.80.0070.00716.96
8.0.70.0000.00716.99
8.0.60.0030.00517.04
8.0.50.0000.00716.79
8.0.30.0060.01317.38
8.0.20.0120.00617.42
8.0.10.0070.00016.89
8.0.00.0060.01116.81
7.4.330.0000.00615.00
7.4.320.0060.00016.70
7.4.300.0030.00316.65
7.4.290.0000.00716.66
7.4.280.0040.00416.73
7.4.270.0030.00316.58
7.4.260.0040.00416.68
7.4.250.0030.00516.66
7.4.240.0040.00316.65
7.4.230.0040.00416.55
7.4.220.0070.01116.69
7.4.210.0060.00816.79
7.4.200.0040.00416.54
7.4.190.0030.00316.84
7.4.160.0070.01016.70
7.4.150.0130.00617.40
7.4.140.0070.01317.86
7.4.130.0110.00816.73
7.4.120.0080.01016.53
7.4.110.0120.00616.70
7.4.100.0070.01416.68
7.4.90.0080.01116.60
7.4.80.0110.00719.39
7.4.70.0100.00716.58
7.4.60.0060.01016.63
7.4.50.0020.00216.25
7.4.40.0110.00616.58
7.4.30.0090.00616.57
7.4.00.0070.01015.25
7.3.330.0030.00313.12
7.3.320.0030.00313.14
7.3.310.0070.00016.30
7.3.300.0000.00716.32
7.3.290.0070.00716.29
7.3.280.0050.01116.28
7.3.270.0090.00917.40
7.3.260.0090.00916.23
7.3.250.0120.00916.50
7.3.240.0100.00716.32
7.3.230.0130.00616.83
7.3.210.0130.00716.61
7.3.200.0090.00619.39
7.3.190.0040.01816.36
7.3.180.0120.00616.70
7.3.170.0130.00316.66
7.3.160.0150.00616.55
7.3.120.0050.01415.11
7.3.110.0110.00614.87
7.3.100.0070.00814.79
7.3.90.0050.01015.03
7.3.80.0110.00514.75
7.3.70.0080.00614.96
7.3.60.0030.01114.82
7.3.50.0100.00514.87
7.3.40.0030.01014.99
7.3.30.0060.00814.96
7.3.20.0110.00216.74
7.3.10.0060.00816.70
7.3.00.0060.00816.74
7.2.330.0120.00916.69
7.2.320.0090.01516.63
7.2.310.0100.00616.79
7.2.300.0160.00016.79
7.2.290.0060.01716.64
7.2.240.0030.01515.12
7.2.230.0050.00915.15
7.2.220.0090.00815.07
7.2.210.0070.00615.02
7.2.200.0020.01014.99
7.2.190.0060.00815.04
7.2.180.0060.00615.05
7.2.170.0100.00815.05
7.2.160.0030.01314.81
7.2.150.0080.00817.03
7.2.140.0060.01117.07
7.2.130.0060.00916.85
7.2.120.0060.01016.93
7.2.110.0070.00816.91
7.2.100.0020.01116.78
7.2.90.0070.00916.85
7.2.80.0050.00716.96
7.2.70.0090.00616.89
7.2.60.0060.00816.98
7.2.50.0090.00616.88
7.2.40.0050.01016.90
7.2.30.0080.00816.94
7.2.20.0060.01016.87
7.2.10.0060.01116.90
7.2.00.0070.00917.44
7.1.330.0090.00515.87
7.1.320.0030.01215.75
7.1.310.0040.00815.94
7.1.300.0060.00815.86
7.1.290.0080.00715.94
7.1.280.0030.01215.78
7.1.270.0060.00715.88
7.1.260.0060.00715.81
7.1.250.0040.00915.75
7.1.100.0030.00618.15
7.1.70.0000.00817.02
7.1.60.0120.00919.46
7.1.50.0040.01917.22
7.1.00.0070.07322.29
7.0.200.0050.00516.89
7.0.140.0030.06321.99
7.0.60.0070.04319.93
7.0.50.0030.04017.80
7.0.40.0070.05020.07
7.0.30.0270.05320.19
7.0.20.0130.05020.19
7.0.10.0170.07320.19
7.0.00.0070.08320.09
5.6.280.0070.06721.02
5.6.210.0070.06020.72
5.6.200.0100.08018.15
5.6.190.0200.07720.27
5.6.180.0370.05020.64
5.6.170.0330.07020.47
5.6.160.0070.08320.48
5.6.150.0100.08018.13
5.6.140.0070.05018.21
5.6.130.0070.08018.14
5.6.120.0100.04321.14
5.6.110.0030.08320.96
5.6.100.0100.05720.98
5.6.90.0070.07720.97
5.6.80.0070.04320.52
5.5.350.4330.03320.41
5.5.340.0130.07317.88
5.5.330.0130.07720.12
5.5.320.0300.06320.27
5.5.310.0300.07320.28
5.5.300.0170.06317.97
5.5.290.0100.07718.01
5.5.280.0370.03320.80
5.5.270.0130.06020.86
5.5.260.0030.04320.87
5.5.250.0130.09020.68
5.5.240.0070.06720.18
5.4.450.0130.04019.41
5.4.440.0270.05019.43
5.4.430.0470.05019.56
5.4.420.0570.03719.41
5.4.410.0270.04719.41
5.4.400.0370.04718.79
5.4.390.0200.04719.09
5.4.380.0370.05318.66
5.4.370.0170.05318.73
5.4.360.0130.05318.68
5.4.350.0130.05318.71
5.4.340.0230.05018.72
5.4.320.0090.04712.46
5.4.310.0100.04912.45
5.4.300.0110.05812.45
5.4.290.0070.05812.45
5.4.280.0060.03812.35
5.4.270.0080.05612.35
5.4.260.0090.04312.34
5.4.250.0120.04512.35
5.4.240.0070.04712.35
5.4.230.0090.07012.34
5.4.220.0110.08412.34
5.4.210.0100.05812.34
5.4.200.0050.05912.34
5.4.190.0140.06312.33
5.4.180.0060.06512.33
5.4.170.0050.05512.35
5.4.160.0090.05012.34
5.4.150.0120.04612.34
5.4.140.0050.04112.02
5.4.130.0040.04012.01
5.4.120.0080.04611.96
5.4.110.0090.04211.96
5.4.100.0060.03611.96
5.4.90.0040.05111.96
5.4.80.0120.05211.96
5.4.70.0080.03511.96
5.4.60.0110.03311.96
5.4.50.0060.04311.96
5.4.40.0090.04511.95
5.4.30.0050.04911.95
5.4.20.0080.04911.95
5.4.10.0110.04511.95
5.4.00.0110.04411.44
5.3.290.0070.03912.80
5.3.280.0120.04812.71
5.3.270.0200.07012.72
5.3.260.0160.07212.72
5.3.250.0120.05512.72
5.3.240.0160.06612.71
5.3.230.0100.05212.71
5.3.220.0160.09612.68
5.3.210.0180.10512.68
5.3.200.0100.05512.68
5.3.190.0080.05312.68
5.3.180.0080.06012.67
5.3.170.0090.04912.66
5.3.160.0090.05212.67
5.3.150.0200.09612.67
5.3.140.0100.05412.66
5.3.130.0230.08912.66
5.3.120.0160.06812.66
5.3.110.0080.05212.66
5.3.100.0230.08212.12
5.3.90.0070.05012.09
5.3.80.0110.04512.08
5.3.70.0110.04612.07
5.3.60.0100.04712.06
5.3.50.0080.04712.00
5.3.40.0060.05012.00
5.3.30.0080.05011.95
5.3.20.0080.04611.73
5.3.10.0080.04911.70
5.3.00.0100.04811.69
5.2.170.0090.0409.19
5.2.160.0070.0439.19
5.2.150.0070.0419.19
5.2.140.0070.0429.18
5.2.130.0060.0549.14
5.2.120.0080.0579.15
5.2.110.0100.0429.15
5.2.100.0060.0409.15
5.2.90.0060.0419.15
5.2.80.0050.0479.14
5.2.70.0070.0469.14
5.2.60.0090.0419.09
5.2.50.0040.0429.07
5.2.40.0060.0379.04
5.2.30.0060.0409.02
5.2.20.0080.0399.02
5.2.10.0090.0388.93
5.2.00.0080.0388.79
5.1.60.0060.0338.07
5.1.50.0070.0328.07
5.1.40.0040.0368.05
5.1.30.0060.0368.40
5.1.20.0060.0378.43
5.1.10.0100.0338.15
5.1.00.0040.0398.15
5.0.50.0060.0276.63
5.0.40.0060.0256.49
5.0.30.0070.0386.30
5.0.20.0050.0266.27
5.0.10.0060.0266.25
5.0.00.0050.0396.24
4.4.90.0060.0204.78
4.4.80.0060.0194.75
4.4.70.0070.0294.75
4.4.60.0040.0214.75
4.4.50.0070.0194.77
4.4.40.0050.0314.71
4.4.30.0030.0224.76
4.4.20.0060.0194.84
4.4.10.0050.0224.84
4.4.00.0050.0334.76
4.3.110.0040.0234.67
4.3.100.0040.0224.66
4.3.90.0040.0204.63
4.3.80.0070.0294.58
4.3.70.0060.0264.63
4.3.60.0050.0304.63
4.3.50.0040.0214.63
4.3.40.0050.0314.54
4.3.30.0020.0283.30
4.3.20.0010.0243.27
4.3.10.0030.0213.23
4.3.00.0000.01712.69

preferences:
45.71 ms | 401 KiB | 5 Q