3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = "03/21/19 11:20 LOC2 IN: NEW BD PN VO LVA 03/21/19 11:20 LOC2 IN: NEW BD PN VO LVA VB"; $res = []; if (preg_match_all('~(?:\G(?!\A)(?=.*LVA)|(IN:))\h+\K\S+~', $s, $matches, PREG_SET_ORDER, 0)) { $tmp = []; foreach ($matches as $r) { if (count($r) > 1) { if (count($tmp)>0) { $res[] = $tmp; $tmp = []; } } $tmp[] = $r[0]; } if (count($tmp)>0) { $res[] = $tmp; } } print_r($res);

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.70.0140.00716.88
8.3.60.0180.00016.63
8.3.50.0100.00716.38
8.3.40.0040.01518.95
8.3.30.0120.00318.79
8.3.20.0080.00020.73
8.3.10.0040.00423.56
8.3.00.0060.00322.45
8.2.190.0080.00617.00
8.2.180.0160.00616.88
8.2.170.0070.00722.96
8.2.160.0100.01022.23
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0070.00021.05
8.2.110.0070.00322.13
8.2.100.0090.00318.09
8.2.90.0040.00418.09
8.2.80.0080.00018.05
8.2.70.0080.00017.93
8.2.60.0040.00418.16
8.2.50.0060.00318.10
8.2.40.0060.00319.33
8.2.30.0060.00319.29
8.2.20.0000.00818.20
8.2.10.0040.00419.19
8.2.00.0000.00717.96
8.1.280.0070.00725.92
8.1.270.0040.00420.29
8.1.260.0030.00626.35
8.1.250.0070.00028.09
8.1.240.0060.00617.61
8.1.230.0060.00622.75
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00717.35
8.1.190.0070.00317.48
8.1.180.0030.00518.10
8.1.170.0040.00418.77
8.1.160.0000.00718.97
8.1.150.0070.00018.92
8.1.140.0040.00422.08
8.1.130.0040.00422.04
8.1.120.0080.00417.66
8.1.110.0070.00017.50
8.1.100.0000.00717.68
8.1.90.0000.00717.68
8.1.80.0000.00817.63
8.1.70.0060.00317.61
8.1.60.0050.00517.64
8.1.50.0000.00917.56
8.1.40.0080.00017.61
8.1.30.0040.00417.88
8.1.20.0080.00017.77
8.1.10.0080.00017.78
8.1.00.0000.00717.61
8.0.300.0070.00020.05
8.0.290.0070.00416.75
8.0.280.0000.00718.49
8.0.270.0070.00017.29
8.0.260.0000.00618.41
8.0.250.0070.00016.99
8.0.240.0040.00417.14
8.0.230.0070.00017.02
8.0.220.0050.00217.09
8.0.210.0000.00717.06
8.0.200.0040.00417.15
8.0.190.0030.00517.03
8.0.180.0040.00417.07
8.0.170.0000.00917.03
8.0.160.0000.00816.95
8.0.150.0000.00816.97
8.0.140.0040.00416.84
8.0.130.0060.00013.45
8.0.120.0000.00717.04
8.0.110.0070.00016.89
8.0.100.0000.00716.91
8.0.90.0000.00716.92
8.0.80.0060.00917.11
8.0.70.0040.00417.09
8.0.60.0040.00417.11
8.0.50.0000.00717.00
8.0.30.0150.00517.18
8.0.20.0140.00517.23
8.0.10.0040.00416.99
8.0.00.0100.01116.91
7.4.330.0020.00216.76
7.4.320.0030.00316.83
7.4.300.0000.00616.83
7.4.290.0100.00016.81
7.4.280.0030.00616.77
7.4.270.0000.00816.83
7.4.260.0030.00616.78
7.4.250.0030.00316.68
7.4.240.0040.00416.69
7.4.230.0070.00016.84
7.4.220.0000.00716.92
7.4.210.0070.01016.85
7.4.200.0040.00416.85
7.4.160.0070.00916.79
7.4.140.0100.00817.86
7.4.130.0040.01316.61
7.4.120.0090.00916.75
7.4.110.0070.01016.69
7.4.100.0100.00716.75
7.4.90.0110.00716.54
7.4.80.0070.01419.39
7.4.70.0150.00416.63
7.4.60.0100.00716.61
7.4.50.0060.00916.48
7.4.40.0150.00616.85
7.4.00.0080.00815.04
7.3.330.0050.00013.46
7.3.320.0050.00013.35
7.3.310.0030.00316.63
7.3.300.0070.00016.51
7.3.290.0030.00516.23
7.3.280.0060.01016.44
7.3.260.0090.01016.54
7.3.240.0100.00816.56
7.3.230.0030.01316.52
7.3.210.0080.01616.52
7.3.200.0060.00916.52
7.3.190.0060.01516.42
7.3.180.0090.00916.53
7.3.170.0060.01316.47
7.3.160.0160.00616.45
7.3.30.0070.01014.99
7.3.20.0750.01014.74
7.3.10.0470.00914.79
7.3.00.0560.00315.00
7.2.330.0060.01216.91
7.2.320.0140.00616.84
7.2.310.0040.01216.88
7.2.300.0060.01216.89
7.2.290.0080.01116.76
7.2.160.0100.01414.92
7.2.150.0660.00315.02
7.2.140.0560.01014.97
7.2.130.0530.00615.36
7.2.120.0560.01015.16
7.2.110.0500.00715.02
7.2.100.0610.00315.01
7.2.90.0590.00715.46
7.2.80.0640.00315.04
7.2.70.0680.00715.04
7.2.60.0540.00715.16
7.2.50.0490.00715.17
7.2.40.1120.00615.13
7.2.30.0320.00015.13
7.2.20.0680.00315.36
7.2.10.0510.00715.09
7.2.00.0660.00315.18
7.1.270.0800.01014.18
7.1.260.0570.00614.18
7.1.250.0560.00714.25

preferences:
88.54 ms | 401 KiB | 5 Q