3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = "value that I {want}, vs value \"I do {NOT} want\". Lets make'S {nested {this {time}}} what's And yes, it's even \"{bullet-{proof}}\" whats :) "; @preg_match_all('~("|\').*?\1(*SKIP)(*FAIL)|\{(?:[^{}]|(?R))*\}~', $input, $m); print_r($m[0]); ?>

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.01118.27
8.3.50.0200.00921.21
8.3.40.0070.00718.79
8.3.30.0150.00020.34
8.3.20.0040.00420.71
8.3.10.0080.00021.15
8.3.00.0080.00023.53
8.2.180.0130.00916.75
8.2.170.0110.00722.96
8.2.160.0120.00320.47
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00821.06
8.2.110.0070.00319.41
8.2.100.0040.00718.03
8.2.90.0040.00419.35
8.2.80.0030.00617.97
8.2.70.0080.00017.88
8.2.60.0050.00317.93
8.2.50.0060.00318.07
8.2.40.0000.00818.34
8.2.30.0000.00719.53
8.2.20.0080.00017.94
8.2.10.0000.00817.82
8.2.00.0080.00017.77
8.1.280.0090.00625.92
8.1.270.0000.00723.99
8.1.260.0070.00026.35
8.1.250.0050.00228.09
8.1.240.0060.00622.48
8.1.230.0070.00420.85
8.1.220.0060.00318.77
8.1.210.0090.00018.92
8.1.200.0060.00317.23
8.1.190.0030.00617.53
8.1.180.0090.00018.10
8.1.170.0050.00318.85
8.1.160.0020.00518.93
8.1.150.0080.00018.84
8.1.140.0000.00817.60
8.1.130.0040.00417.86
8.1.120.0070.00017.63
8.1.110.0000.00817.62
8.1.100.0040.00317.51
8.1.90.0040.00417.60
8.1.80.0000.00717.61
8.1.70.0000.00817.63
8.1.60.0030.00617.63
8.1.50.0030.00617.57
8.1.40.0030.00517.64
8.1.30.0000.00817.82
8.1.20.0030.00517.81
8.1.10.0000.00717.72
8.1.00.0040.00417.70
8.0.300.0040.00420.03
8.0.290.0050.00317.05
8.0.280.0000.00818.43
8.0.270.0000.00717.32
8.0.260.0030.00317.02
8.0.250.0070.00017.14
8.0.240.0000.00717.07
8.0.230.0040.00417.06
8.0.220.0030.00317.00
8.0.210.0000.00717.01
8.0.200.0070.00017.09
8.0.190.0050.00217.02
8.0.180.0000.00716.95
8.0.170.0000.00817.00
8.0.160.0040.00416.94
8.0.150.0070.00016.99
8.0.140.0030.00716.91
8.0.130.0000.00613.47
8.0.120.0040.00417.05
8.0.110.0030.00516.86
8.0.100.0040.00417.05
8.0.90.0050.00216.84
8.0.80.0070.00717.00
8.0.70.0040.00417.00
8.0.60.0000.00717.16
8.0.50.0040.00416.91
8.0.30.0090.01317.40
8.0.20.0120.00717.46
8.0.10.0020.00517.23
8.0.00.0060.01216.96
7.4.330.0030.00216.72
7.4.320.0000.00716.85
7.4.300.0070.00016.75
7.4.290.0000.00716.72
7.4.280.0000.00716.72
7.4.270.0000.00716.83
7.4.260.0000.00613.39
7.4.250.0040.00416.74
7.4.240.0050.00216.68
7.4.230.0040.00416.91
7.4.220.0030.02016.73
7.4.210.0080.00816.89
7.4.200.0050.00216.64
7.4.190.0040.00416.88
7.4.160.0100.00716.64
7.4.150.0040.01317.40
7.4.140.0040.01317.86
7.4.130.0070.01216.62
7.4.120.0090.01016.71
7.4.110.0070.01116.70
7.4.100.0130.00316.70
7.4.90.0080.00816.81
7.4.80.0130.00319.39
7.4.70.0140.00616.59
7.4.60.0100.00716.59
7.4.50.0000.00916.39
7.4.40.0030.01222.77
7.4.30.0070.01016.69
7.4.00.0090.00615.20
7.3.330.0000.00513.22
7.3.320.0000.00613.23
7.3.310.0050.00316.20
7.3.300.0030.00316.39
7.3.290.0070.00716.32
7.3.280.0090.01016.43
7.3.270.0090.01017.40
7.3.260.0120.01118.24
7.3.250.0130.00516.72
7.3.240.0070.01016.75
7.3.230.0070.01516.39
7.3.210.0100.00716.36
7.3.200.0090.01219.39
7.3.190.0110.01116.45
7.3.180.0120.00316.39
7.3.170.0030.01416.63
7.3.160.0030.01416.36
7.3.120.0090.00614.70
7.2.330.0030.01316.83
7.2.320.0040.01416.49
7.2.310.0180.00616.70
7.2.300.0070.01116.71
7.2.290.0060.01016.61
7.2.00.0060.00919.37
7.1.100.0210.01016.73
7.1.70.0000.00717.27
7.1.60.0040.02119.17
7.1.50.0060.01017.18
7.1.00.0070.03022.54
7.0.200.0490.00415.11
7.0.140.0000.07721.95
7.0.100.0130.05020.01
7.0.90.0470.09019.93
7.0.80.0030.07319.85
7.0.70.0300.07019.99
7.0.60.0170.06019.90
7.0.50.0130.07320.27
7.0.40.0070.04020.09
7.0.30.0100.08020.07
7.0.20.0030.05320.15
7.0.10.0070.05720.10
7.0.00.0130.07320.17
5.6.280.0000.08021.11
5.6.250.0130.07020.77
5.6.240.0030.08320.68
5.6.230.0130.07720.59
5.6.220.0030.04320.60
5.6.210.0100.08020.61
5.6.200.0100.04020.98
5.6.190.0100.04721.01
5.6.180.0170.05720.93
5.6.170.0000.08721.08
5.6.160.0070.07721.04
5.6.150.0070.08021.01
5.6.140.0100.04321.08
5.6.130.0100.08021.01
5.6.120.0030.08020.93
5.6.110.0000.08720.96
5.6.100.0030.08721.12
5.6.90.0130.07721.06
5.6.80.0100.05020.49
5.6.70.0030.04720.48
5.6.60.0130.03720.50
5.6.50.0030.08320.34
5.6.40.0100.06320.34
5.6.30.0130.07320.52
5.6.20.0100.05020.52
5.6.10.0130.05720.36
5.6.00.0030.04720.38
5.5.380.0100.07320.55
5.5.370.0170.08020.55
5.5.360.0000.06320.48
5.5.350.0100.07720.43
5.5.340.0100.07020.80
5.5.330.0030.04020.82
5.5.320.0070.06720.87
5.5.310.0100.08020.88
5.5.300.0100.07720.75
5.5.290.0030.09020.77
5.5.280.0070.08320.80
5.5.270.0170.03720.88
5.5.260.0130.07320.83
5.5.250.0100.04320.44
5.5.240.0130.04020.30
5.5.230.0170.07020.23
5.5.220.0030.05320.29
5.5.210.0170.06720.23
5.5.200.0170.06320.21
5.5.190.0100.06020.25
5.5.180.0170.04020.27
5.5.160.0030.04020.14
5.5.150.0130.07020.10
5.5.140.0170.03320.10
5.5.130.0130.07020.11
5.5.120.0030.05020.11
5.5.110.0070.04720.20
5.5.100.0070.05320.16
5.5.90.0100.05020.11
5.5.80.0000.07020.06
5.5.70.0100.08020.09
5.5.60.0070.06720.11
5.5.50.0070.06720.05
5.5.40.0130.08719.95
5.5.30.0000.06720.14
5.5.20.0070.07320.04
5.5.10.0100.07020.02
5.5.00.0070.07320.00
5.4.450.0170.05719.46
5.4.440.0100.08019.37
5.4.430.0130.06719.50
5.4.420.0130.07719.56
5.4.410.0100.05019.32
5.4.400.0070.04319.10
5.4.390.0100.07019.23
5.4.380.0000.06018.88
5.4.370.0070.07719.10
5.4.360.0000.07319.03
5.4.350.0000.08318.95
5.4.340.0070.06019.05
5.4.320.0170.06718.95
5.4.310.0100.03719.08
5.4.300.0000.08319.02
5.4.290.0130.05719.18
5.4.280.0100.04018.88
5.4.270.0030.04018.95
5.4.260.0130.06719.18
5.4.250.0100.07319.20
5.4.240.0070.07719.12
5.4.230.0030.04718.95
5.4.220.0130.06719.13
5.4.210.0170.03719.03
5.4.200.0070.05019.04
5.4.190.0030.04019.03
5.4.180.0100.07319.02
5.4.170.0030.07319.04
5.4.160.0070.06719.01
5.4.150.0130.06719.10
5.4.140.0030.07716.42
5.4.130.0100.06716.45
5.4.120.0070.04316.45
5.4.110.0030.07316.43
5.4.100.0100.04316.43
5.4.90.0130.06716.47
5.4.80.0030.06716.25
5.4.70.0030.04316.49
5.4.60.0000.04716.46
5.4.50.0100.06716.44
5.4.40.0000.07316.45
5.4.30.0130.06016.48
5.4.20.0100.06016.31
5.4.10.0000.07716.44
5.4.00.0130.07015.78
5.3.290.0030.04014.65
5.3.280.0070.07314.61
5.3.270.0030.07014.53
5.3.260.0200.04314.73
5.3.250.0070.07714.54
5.3.240.0000.07314.66
5.3.230.0100.07314.52
5.3.220.0000.08714.65
5.3.210.0100.06714.64
5.3.200.0030.07014.70
5.3.190.0130.07014.55
5.3.180.0030.04314.59
5.3.170.0070.05014.65
5.3.160.0100.06714.51
5.3.150.0070.06314.48
5.3.140.0070.04014.53
5.3.130.0170.06014.46
5.3.120.0070.04714.50
5.3.110.0030.07314.46
5.3.100.0100.07014.04
5.3.90.0130.06714.10
5.3.80.0170.06014.00
5.3.70.0070.07714.12
5.3.60.0000.08014.10
5.3.50.0100.07314.00
5.3.40.0130.06713.87
5.3.30.0070.06313.96
5.3.20.0070.07713.67
5.3.10.0030.06313.66
5.3.00.0070.05313.61
5.2.170.0070.06712.03
5.2.160.0070.06012.03
5.2.150.0070.06312.03
5.2.140.0100.04012.03
5.2.130.0030.06012.03
5.2.120.0030.05312.03
5.2.110.0070.06012.03
5.2.100.0030.05012.03
5.2.90.0070.05012.03
5.2.80.0030.06012.03
5.2.70.0100.05312.03
5.2.60.0070.06312.03
5.2.50.0100.05312.03
5.2.40.0000.04312.03
5.2.30.0170.03012.03
5.2.20.0030.06012.03
5.2.10.0000.05012.03
5.2.00.0100.04712.03
5.1.60.0030.05712.03
5.1.50.0000.05712.03
5.1.40.0030.05712.03
5.1.30.0070.05312.03
5.1.20.0030.05312.03
5.1.10.0030.04712.03
5.1.00.0030.05012.03
5.0.50.0000.04712.03
5.0.40.0000.03712.03
5.0.30.0070.05312.03
5.0.20.0070.03312.03
5.0.10.0030.02312.03
5.0.00.0000.06012.03
4.4.90.0070.03012.03
4.4.80.0030.03712.03
4.4.70.0000.03712.03
4.4.60.0000.03312.03
4.4.50.0100.01012.03
4.4.40.0000.03312.03
4.4.30.0030.03312.03
4.4.20.0030.03712.03
4.4.10.0000.02312.03
4.4.00.0030.04312.03
4.3.110.0000.03712.03
4.3.100.0030.01312.03
4.3.90.0070.03012.03
4.3.80.0030.05012.03
4.3.70.0000.02012.03
4.3.60.0070.02312.03
4.3.50.0070.02012.03
4.3.40.0000.04012.03
4.3.30.0070.02012.03
4.3.20.0000.02312.03
4.3.10.0000.01712.03
4.3.00.0000.02012.03

preferences:
37.5 ms | 401 KiB | 5 Q