3v4l.org

run code in 300+ PHP versions simultaneously
<?php $txt = "My text \"can contain\" both single 'and double\"' quotes. The quotes \"can also be 'nested\" as you can see."; if (preg_match_all('~(?|"([^"]*)"|\'([^\']*)\')~', $txt, $matches)) { print_r($matches[1]); }

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.4.130.0060.00318.45
8.4.120.0100.01024.35
8.4.110.0130.00820.52
8.4.100.0140.00817.65
8.4.90.0080.00320.65
8.4.80.0120.00818.96
8.4.70.0080.00818.86
8.4.60.0110.00720.80
8.4.50.0070.00218.70
8.4.40.0090.00019.58
8.4.30.0100.01020.59
8.4.20.0100.01020.65
8.4.10.0040.00419.75
8.3.260.0080.01016.89
8.3.250.0090.00818.92
8.3.240.0040.00517.04
8.3.230.0080.01016.71
8.3.220.0040.00420.46
8.3.210.0080.00818.49
8.3.200.0040.00416.71
8.3.190.0080.01016.60
8.3.180.0050.00418.70
8.3.170.0100.00018.88
8.3.160.0080.00020.61
8.3.150.0150.00318.52
8.3.140.0080.00018.86
8.3.130.0090.00016.80
8.3.120.0060.00920.71
8.3.110.0050.00518.41
8.3.100.0090.00024.06
8.3.90.0050.00326.77
8.3.80.0060.00316.63
8.3.70.0100.01016.58
8.3.60.0070.01418.55
8.3.50.0120.00118.52
8.3.40.0140.00018.79
8.3.30.0120.00618.89
8.3.20.0040.00422.53
8.3.10.0070.00021.90
8.3.00.0080.00524.46
8.2.290.0070.00417.57
8.2.280.0120.00720.68
8.2.270.0060.00918.86
8.2.260.0110.00816.67
8.2.250.0070.00717.35
8.2.240.0120.00317.11
8.2.230.0000.00820.94
8.2.220.0060.00337.54
8.2.210.0110.00726.77
8.2.200.0030.00618.79
8.2.190.0090.00618.79
8.2.180.0000.01625.92
8.2.170.0120.00419.04
8.2.160.0150.00322.96
8.2.150.0000.00825.66
8.2.140.0060.00324.66
8.2.130.0040.01027.12
8.2.120.0080.00624.43
8.2.110.0070.01224.53
8.2.100.0060.00923.00
8.2.90.0070.00723.03
8.2.80.0100.00623.14
8.2.70.0080.00622.92
8.2.60.0090.00323.84
8.2.50.0070.00822.92
8.2.40.0110.00523.94
8.2.30.0030.01023.69
8.2.20.0060.00623.04
8.2.10.0060.00523.52
8.2.00.0080.00423.66
8.1.330.0080.01022.11
8.1.320.0110.00916.18
8.1.310.0140.00718.51
8.1.300.0060.00318.21
8.1.290.0070.00330.84
8.1.280.0110.01125.92
8.1.270.0090.00020.68
8.1.260.0070.00627.22
8.1.250.0040.00528.09
8.1.240.0040.00424.42
8.1.230.0030.00825.07
8.1.220.0070.00122.91
8.1.210.0030.00623.43
8.1.200.0030.00622.72
8.1.190.0060.00322.72
8.1.180.0050.00323.09
8.1.170.0060.00322.85
8.1.160.0040.00424.18
8.1.150.0020.00623.46
8.1.140.0020.00723.45
8.1.130.0040.00322.81
8.1.120.0040.00422.77
8.1.110.0070.00122.80
8.1.100.0060.00122.82
8.1.90.0050.00422.80
8.1.80.0040.00422.81
8.1.70.0060.00322.75
8.1.60.0020.00622.90
8.1.50.0050.00322.85
8.1.40.0070.00122.85
8.1.30.0090.00421.14
8.1.20.0080.00521.18
8.1.10.0100.00321.11
8.1.00.0080.00521.07
8.0.300.0080.00423.95
8.0.290.0070.00622.42
8.0.280.0080.00323.17
8.0.270.0060.00222.56
8.0.260.0040.00622.43
8.0.250.0030.00522.52
8.0.240.0070.00422.56
8.0.230.0060.00322.53
8.0.220.0030.00522.52
8.0.210.0040.00422.51
8.0.200.0080.00022.55
8.0.190.0040.00422.52
8.0.180.0030.00522.53
8.0.170.0030.00622.56
8.0.160.0070.00420.67
8.0.150.0090.00220.61
8.0.140.0110.00320.62
8.0.130.0070.00419.39
8.0.120.0080.00420.65
8.0.110.0060.00520.64
8.0.100.0080.00420.60
8.0.90.0090.00420.61
8.0.80.0070.00720.66
8.0.70.0050.00720.58
8.0.60.0100.00220.59
8.0.50.0120.00120.62
8.0.30.0100.00420.65
8.0.20.0110.00519.82
8.0.10.0090.00220.65
8.0.00.0050.01120.69
7.4.330.0060.00021.82
7.4.320.0100.00222.41
7.4.300.0100.00222.34
7.4.290.0090.00322.36
7.4.280.0120.00220.50
7.4.270.0090.00520.43
7.4.260.0090.00419.43
7.4.250.0130.00120.42
7.4.240.0120.00319.56
7.4.230.0130.00220.50
7.4.220.0080.00419.45
7.4.210.0120.00618.99
7.4.200.0130.00520.51
7.4.190.0150.01022.36
7.4.180.0210.00522.44
7.4.160.0160.01122.39
7.4.150.0170.00822.37
7.4.140.0180.00822.31
7.4.130.0210.00720.49
7.4.120.0180.00620.48
7.4.110.0170.00720.43
7.4.100.0150.00820.40
7.4.90.0200.00520.50
7.4.80.0200.01321.30
7.4.70.0220.00220.50
7.4.60.0180.00820.52
7.4.50.0180.00720.35
7.4.40.0140.00920.43
7.4.30.0190.00422.28
7.4.20.0160.00622.30
7.4.10.0120.00422.29
7.4.00.0110.00719.95
7.3.330.0100.00620.34
7.3.320.0130.00319.16
7.3.310.0130.00420.26
7.3.300.0110.00520.21
7.3.290.0100.00620.27
7.3.280.0140.00522.25
7.3.270.0200.00022.14
7.3.260.0120.00718.69
7.3.250.0170.00322.26
7.3.240.0130.00718.46
7.3.230.0160.00720.30
7.3.220.0160.00422.13
7.3.210.0140.00720.27
7.3.200.0170.00620.26
7.3.190.0130.00920.17
7.3.180.0150.00520.29
7.3.170.0120.00720.30
7.3.160.0130.00520.22
7.3.150.0150.00522.21
7.3.140.0140.00722.11
7.3.130.0150.00522.08
7.3.120.0170.00322.23
7.3.110.0150.00419.73
7.3.100.0120.00619.73
7.3.90.0090.00919.91
7.3.80.0150.00419.75
7.3.70.0110.00819.64
7.3.60.0140.00419.76
7.3.50.0150.00519.83
7.3.40.0130.00519.68
7.3.30.0110.00719.77
7.3.20.0120.00619.87
7.3.10.0110.00819.81
7.3.00.0140.00619.78
7.2.340.0120.00522.26
7.2.330.0130.00420.49
7.2.320.0130.00620.37
7.2.310.0140.00420.40
7.2.300.0150.00320.36
7.2.290.0150.00420.41
7.2.280.0150.00222.21
7.2.270.0130.00422.37
7.2.260.0110.00722.20
7.2.250.0110.00622.19
7.2.240.0100.00819.84
7.2.230.0130.00419.84
7.2.220.0130.00519.91
7.2.210.0130.00619.90
7.2.200.0100.01019.89
7.2.190.0100.00619.93
7.2.180.0130.00519.91
7.2.170.0110.00919.94
7.2.160.0120.00519.86
7.2.150.0190.00419.97
7.2.140.0160.00319.99
7.2.130.0110.00820.07
7.2.120.0080.01019.92
7.2.110.0090.00919.92
7.2.100.0120.00519.95
7.2.90.0130.00519.88
7.2.80.0150.00320.00
7.2.70.0100.00919.92
7.2.60.0110.00819.99
7.2.50.0130.00619.84
7.2.40.0140.00420.00
7.2.30.0160.00220.00
7.2.20.0130.00719.88
7.2.10.0150.00519.96
7.2.00.0110.01019.94
7.1.330.0120.00519.29
7.1.320.0100.00719.27
7.1.310.0080.00819.34
7.1.300.0110.00519.24
7.1.290.0110.00419.31
7.1.280.0110.00719.26
7.1.270.0250.00519.26
7.1.260.0130.00519.28
7.1.250.0140.00719.30
7.1.240.0140.00321.74
7.1.230.0140.00421.85
7.1.220.0120.00521.81
7.1.210.0110.00521.87
7.1.200.0130.00321.89
7.1.190.0130.00321.85
7.1.180.0130.00321.86
7.1.170.0150.00221.86
7.1.160.0140.00821.86
7.1.150.0170.00221.85
7.1.140.0130.00621.84
7.1.130.0130.00821.78
7.1.120.0150.00621.84
7.1.110.0150.00421.91
7.1.100.0150.00221.82
7.1.90.0110.00621.91
7.1.80.0130.00321.93
7.1.70.0120.00521.70
7.1.60.0130.00421.93
7.1.50.0260.00521.85
7.1.40.0150.00121.88
7.1.30.0130.00421.87
7.1.20.0180.00121.93
7.1.10.0130.00321.86
7.1.00.0090.00621.86

preferences:
85.63 ms | 403 KiB | 5 Q