3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/(?:\|\h*|\G(?!^))([^.\r\n]+)\.\h*/'; $str = '| This is one. This is two. John loves Mary.| This is one. This is two.'; preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0); print_r($matches);

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.5.30.0070.00917.33
8.5.20.0100.00819.48
8.5.10.0110.00919.00
8.5.00.0150.00720.30
8.4.180.0110.01221.59
8.4.170.0110.01121.97
8.4.160.0130.00823.84
8.4.150.0080.00516.93
8.4.140.0140.00817.59
8.4.130.0140.00617.86
8.4.120.0060.01020.64
8.4.110.0130.00718.59
8.4.100.0150.00617.81
8.4.90.0090.01220.37
8.4.80.0050.00318.75
8.4.70.0100.00918.99
8.4.60.0100.01119.07
8.4.50.0120.00820.23
8.4.40.0200.00019.47
8.4.30.0060.00318.79
8.4.20.0030.00720.64
8.4.10.0140.00719.46
8.3.300.0140.00718.47
8.3.290.0130.00820.66
8.3.280.0040.00216.31
8.3.270.0090.01116.80
8.3.260.0110.00816.64
8.3.250.0140.00518.93
8.3.240.0120.00716.51
8.3.230.0130.00616.75
8.3.220.0110.00318.71
8.3.210.0060.00916.46
8.3.200.0050.00416.56
8.3.190.0050.00316.95
8.3.180.0100.00816.85
8.3.170.0040.01120.60
8.3.160.0120.00617.15
8.3.150.0110.00717.13
8.3.140.0030.00716.48
8.3.130.0040.00416.64
8.3.120.0040.00418.67
8.3.110.0080.00016.61
8.3.100.0070.00424.06
8.3.90.0040.00426.77
8.3.80.0040.00419.36
8.3.70.0130.01016.63
8.3.60.0120.00316.75
8.3.50.0090.00623.48
8.3.40.0070.01019.01
8.3.30.0070.00718.89
8.3.20.0070.00020.77
8.3.10.0080.00021.77
8.3.00.0080.00023.51
8.2.300.0120.00922.06
8.2.290.0120.00617.07
8.2.280.0030.00518.47
8.2.270.0110.00719.07
8.2.260.0000.00816.54
8.2.250.0030.00716.92
8.2.240.0100.01017.14
8.2.230.0100.00720.94
8.2.220.0030.00637.54
8.2.210.0120.00826.77
8.2.200.0030.00618.88
8.2.190.0070.01018.65
8.2.180.0040.01118.26
8.2.170.0040.01122.96
8.2.160.0120.00320.22
8.2.150.0050.00324.18
8.2.140.0090.00024.66
8.2.130.0080.00026.16
8.2.120.0080.00026.16
8.2.110.0040.00721.09
8.2.100.0070.00417.91
8.2.90.0040.00419.07
8.2.80.0080.00017.97
8.2.70.0090.00017.88
8.2.60.0030.00517.75
8.2.50.0040.00417.63
8.2.40.0050.00317.63
8.2.30.0050.00319.51
8.2.20.0040.00417.95
8.2.10.0000.00819.20
8.2.00.0040.00419.09
8.1.340.0130.01221.30
8.1.330.0100.00616.23
8.1.320.0140.00618.11
8.1.310.0070.01016.52
8.1.300.0100.01018.56
8.1.290.0060.00330.84
8.1.280.0040.01125.92
8.1.270.0130.00323.90
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0090.00019.27
8.1.230.0070.00417.64
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0040.00417.13
8.1.180.0000.00818.10
8.1.170.0000.00818.98
8.1.160.0050.00218.79
8.1.150.0040.00418.92
8.1.140.0000.00720.72
8.1.130.0030.00320.18
8.1.120.0030.00317.55
8.1.110.0000.01017.50
8.1.100.0040.00417.42
8.1.90.0000.00717.54
8.1.80.0000.00717.44
8.1.70.0000.00717.54
8.1.60.0040.00417.63
8.1.50.0040.00417.55
8.1.40.0060.00317.60
8.1.30.0080.00017.63
8.1.20.0040.00717.69
8.1.10.0030.00617.72
8.1.00.0000.00817.60
8.0.300.0040.00418.84
8.0.290.0040.00416.75
8.0.280.0070.00018.38
8.0.270.0040.00418.09
8.0.260.0030.00320.04
8.0.250.0030.00317.03
8.0.240.0050.00317.05
8.0.230.0040.00416.93
8.0.220.0000.00716.96
8.0.210.0000.00716.84
8.0.200.0060.00017.05
8.0.190.0070.00016.95
8.0.180.0000.00817.04
8.0.170.0090.00016.93
8.0.160.0080.00017.03
8.0.150.0000.00816.92
8.0.140.0040.00416.93
8.0.130.0030.00313.39
8.0.120.0070.00016.94
8.0.110.0000.00716.74
8.0.100.0000.00716.91
8.0.90.0040.00416.95
8.0.80.0070.00816.91
8.0.70.0080.00016.93
8.0.60.0040.00416.80
8.0.50.0050.00216.90
8.0.30.0030.01316.88
8.0.20.0130.01017.09
8.0.10.0000.00717.15
8.0.00.0100.01016.89
7.4.330.0030.00315.55
7.4.320.0030.00316.77
7.4.300.0030.00316.65
7.4.290.0040.00416.73
7.4.280.0040.00416.64
7.4.270.0040.00416.66
7.4.260.0050.00013.32
7.4.250.0070.00016.71
7.4.240.0020.00516.74
7.4.230.0000.00716.68
7.4.220.0020.00516.64
7.4.210.0090.00616.69
7.4.200.0050.00316.58
7.4.130.0100.01316.59
7.4.120.0040.01516.52
7.4.110.0070.01516.66
7.4.100.0120.00616.69
7.4.90.0130.00316.70
7.4.80.0030.01619.39
7.4.70.0130.00516.48
7.4.60.0060.01016.53
7.4.50.0110.00716.58
7.4.40.0070.01016.59
7.4.10.0030.01716.48
7.4.00.0190.00316.71
7.3.330.0000.00716.38
7.3.320.0000.00513.27
7.3.310.0000.00716.11
7.3.300.0030.00316.32
7.3.290.0070.00016.20
7.3.280.0030.01216.30
7.3.260.0170.00016.32
7.3.230.0100.00716.65
7.3.210.0090.00716.39
7.3.200.0130.00316.29
7.3.190.0040.01916.58
7.3.180.0060.00916.62
7.3.170.0050.01316.65
7.3.160.0090.00816.63
7.3.130.0120.00916.29
7.3.120.0130.01016.41
7.3.110.0200.00316.68
7.3.100.0120.00616.45
7.3.90.0110.01116.36
7.3.80.0030.01316.26
7.3.70.0070.01016.21
7.3.60.0030.01616.30
7.3.50.0090.00916.36
7.3.40.0120.00316.35
7.3.30.0070.00716.55
7.3.20.0000.01716.23
7.3.10.0060.01216.26
7.3.00.0140.00716.46
7.2.330.0090.00916.48
7.2.320.0120.00416.42
7.2.310.0150.00416.71
7.2.300.0070.01016.68
7.2.290.0100.00616.60
7.2.260.0130.00916.52
7.2.250.0030.01416.73
7.2.240.0090.01016.68
7.2.230.0030.01416.47
7.2.220.0090.01216.51
7.2.210.0110.00516.56
7.2.200.0130.00416.61
7.2.190.0100.00716.48
7.2.180.0130.00316.64
7.2.170.0150.00316.46
7.2.160.0000.02316.50
7.2.150.0130.00316.68
7.2.140.0040.01416.66
7.2.130.0070.01116.68
7.2.120.0030.01316.65
7.2.110.0070.01016.68
7.2.100.0120.00416.64
7.2.90.0100.01316.62
7.2.80.0070.01116.56
7.2.70.0100.00716.79
7.2.60.0100.00716.70
7.2.50.0140.00916.70
7.2.40.0100.01316.52
7.2.30.0070.01716.57
7.2.20.0140.01016.72
7.2.10.0170.00616.75
7.2.00.0320.01916.65

preferences:
114.97 ms | 1548 KiB | 5 Q