3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '> [00:00:00.1] Lorem ipsum dolor sit amet, consectetur adipiscing elit. > [00:00:02.3] Sed facilisis orci at erat vulputate facilisis. > [00:00:08.2] Nam aliquam velit quis nisl posuere, ut blandit turpis > blandit. > [00:00:13.8] Nulla sit amet metus felis. Nulla aliquam > ultrices ipsum eget mattis. > [00:00:19.2] Nulla porta ligula > scelerisque lorem dapibus porttitor. > [00:00:26.6] Praesent dolor mi, > dictum et ante sed, efficitur auctor tortor. > [00:00:35.5] Praesent > euismod dui sem, > vitae pretium nisi suscipit quis. > [00:00:39.7] Nulla porta ligula scelerisque lorem dapibus porttitor.'; preg_match_all('/\[\K[^\]]+/', $string, $matches); 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.3.130.0050.00318.36
8.3.120.0060.00618.68
8.3.110.0060.00620.94
8.3.100.0040.01116.77
8.3.90.0120.00326.77
8.3.80.0110.00017.97
8.3.70.0090.00916.50
8.3.60.0140.00716.63
8.3.50.0120.00918.22
8.3.40.0160.00318.96
8.3.30.0080.00818.78
8.3.20.0030.01020.29
8.3.10.0000.00823.70
8.3.00.0090.00023.66
8.2.250.0030.00516.60
8.2.240.0080.00817.29
8.2.230.0090.00022.58
8.2.220.0030.00724.06
8.2.210.0060.00926.77
8.2.200.0060.00317.00
8.2.190.0100.00716.75
8.2.180.0110.00716.88
8.2.170.0030.01422.96
8.2.160.0100.00720.41
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0050.00321.10
8.2.110.0060.00320.52
8.2.100.0070.00418.02
8.2.90.0080.00017.91
8.2.80.0030.00517.97
8.2.70.0000.00917.93
8.2.60.0030.00618.09
8.2.50.0030.00518.10
8.2.40.0000.00820.45
8.2.30.0070.00019.21
8.2.20.0050.00518.07
8.2.10.0070.00018.04
8.2.00.0040.00417.95
8.1.300.0040.01120.31
8.1.290.0090.00030.84
8.1.280.0090.00925.92
8.1.270.0040.00423.75
8.1.260.0080.00026.35
8.1.250.0070.00328.09
8.1.240.0060.00320.56
8.1.230.0060.00620.89
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0070.00317.36
8.1.190.0040.00417.35
8.1.180.0000.00818.10
8.1.170.0030.00518.84
8.1.160.0000.00718.85
8.1.150.0070.00020.09
8.1.140.0040.00417.54
8.1.130.0040.00420.55
8.1.120.0050.00217.52
8.1.110.0000.00817.53
8.1.100.0000.00817.56
8.1.90.0020.00517.53
8.1.80.0070.00017.55
8.1.70.0070.00017.61
8.1.60.0000.00817.71
8.1.50.0000.00817.46
8.1.40.0040.00417.58
8.1.30.0020.00517.67
8.1.20.0030.00517.72
8.1.10.0050.00317.67
8.1.00.0080.00017.52
8.0.300.0040.00419.81
8.0.290.0000.01116.75
8.0.280.0050.00218.41
8.0.270.0030.00317.12
8.0.260.0030.00716.86
8.0.250.0070.00017.05
8.0.240.0000.00717.04
8.0.230.0000.00816.96
8.0.220.0040.00416.94
8.0.210.0030.00617.00
8.0.200.0000.00816.95
8.0.190.0000.00816.99
8.0.180.0000.00817.00
8.0.170.0000.00717.02
8.0.160.0000.00716.94
8.0.150.0000.00816.80
8.0.140.0040.00416.99
8.0.130.0030.00313.47
8.0.120.0000.00816.94
8.0.110.0040.00417.03
8.0.100.0040.00416.80
8.0.90.0040.00416.86
8.0.80.0080.00816.99
8.0.70.0000.00816.80
8.0.60.0050.00316.76
8.0.50.0040.00416.95
8.0.30.0140.00417.19
8.0.20.0130.00717.40
8.0.10.0070.00016.95
8.0.00.0070.01016.73
7.4.330.0000.00516.72
7.4.320.0000.00616.60
7.4.300.0000.00716.58
7.4.290.0040.00416.76
7.4.280.0070.00016.72
7.4.270.0080.00016.63
7.4.260.0000.00716.72
7.4.250.0000.00816.56
7.4.240.0000.00716.72
7.4.230.0040.00416.71
7.4.220.0090.00916.86
7.4.210.0040.01116.72
7.4.200.0070.00016.52
7.4.160.0130.00516.59
7.4.150.0110.00717.40
7.4.140.0120.01017.86
7.4.130.0060.01216.58
7.4.120.0090.01016.67
7.4.110.0070.01016.74
7.4.100.0100.01016.71
7.4.90.0060.01216.60
7.4.80.0070.01019.39
7.4.70.0090.00616.53
7.4.60.0060.01216.76
7.4.50.0070.00716.68
7.4.40.0120.00816.55
7.4.30.0090.01216.71
7.4.00.0070.01014.98
7.3.330.0030.00313.05
7.3.320.0030.00313.04
7.3.310.0000.00716.09
7.3.300.0070.00016.34
7.3.290.0030.00316.14
7.3.280.0090.00816.33
7.3.270.0000.01717.40
7.3.260.0110.00716.46
7.3.250.0120.00716.40
7.3.240.0140.00516.58
7.3.230.0070.01116.36
7.3.210.0100.00716.46
7.3.200.0100.00716.40
7.3.190.0120.00916.27
7.3.180.0070.01316.24
7.3.170.0060.00916.59
7.3.160.0080.00816.32
7.3.10.0030.01416.77
7.3.00.0030.01316.61
7.2.330.0090.00916.62
7.2.320.0060.01216.37
7.2.310.0070.01116.55
7.2.300.0090.01416.46
7.2.290.0110.00616.47
7.2.130.0030.00717.02
7.2.120.0070.01016.95
7.2.110.0130.00716.66
7.2.100.0040.01116.97
7.2.90.0100.00316.98
7.2.80.0040.00416.81
7.2.70.0060.00616.68
7.2.60.0080.00716.76
7.2.50.0030.01216.82
7.2.40.0040.00816.83
7.2.30.0090.00617.05
7.2.20.0070.00716.81
7.2.10.0060.00616.85
7.2.00.0080.00516.84
7.1.250.0040.01116.00
7.1.200.0080.00415.82
7.1.110.1840.00916.05
7.1.100.2070.01016.64
7.1.90.2660.01316.13
7.1.80.2730.01316.36
7.1.70.0150.00415.59
7.1.60.4030.01933.16
7.1.50.0340.01232.83
7.1.40.2380.01032.83
7.1.30.2250.01332.87
7.1.20.2000.01433.18
7.1.10.1010.01014.84
7.1.00.1300.01014.96
7.0.250.0120.00415.95
7.0.240.0630.00716.04
7.0.230.2910.01916.36
7.0.220.2880.01015.83
7.0.210.2890.01314.95
7.0.200.0690.00714.74
7.0.190.0490.00414.91
7.0.180.2720.00314.58
7.0.170.1950.01014.71
7.0.160.3040.01414.73
7.0.150.0560.01014.46
7.0.140.3070.01714.82
7.0.130.0160.01314.71
7.0.120.3190.00714.85
7.0.110.1940.01014.60
7.0.100.3170.01014.82
7.0.90.3200.00714.62
7.0.80.3110.01014.66
7.0.70.3080.01014.50
7.0.60.3230.00714.50
7.0.50.3270.01014.55
7.0.40.3030.01014.71
7.0.30.3310.01015.03
7.0.20.3150.00714.52
7.0.10.3360.00714.79
7.0.00.3230.00314.66

preferences:
30.17 ms | 403 KiB | 5 Q