3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = '[2017-03-14 11:48:22] Steve T: Hi! [2017-03-14 11:49:01] Oscar: Hi! :D How are u doin? [2017-03-14 11:50:24] Steve T: Im doing great :P'; $returnValue = preg_match_all( '/^\\[(\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2})\\] ([\\w\\s]+): (.+)$/m', $subject, $matches, PREG_SET_ORDER // this groups the result nicely ); 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.4.120.0130.00720.27
8.4.110.0090.00619.11
8.4.100.0100.01217.95
8.4.90.0110.01017.70
8.4.80.0050.00417.88
8.4.70.0120.01117.83
8.4.60.0110.01018.68
8.4.50.0120.00817.87
8.4.40.0070.00319.57
8.4.30.0160.00317.80
8.4.20.0100.01019.67
8.4.10.0100.00618.67
8.3.250.0090.00918.59
8.3.240.0130.00616.86
8.3.230.0050.00416.56
8.3.220.0120.00816.84
8.3.210.0120.00616.86
8.3.200.0040.00516.50
8.3.190.0040.00318.85
8.3.180.0140.00416.76
8.3.170.0060.01217.25
8.3.160.0090.00920.04
8.3.150.0090.00620.63
8.3.140.0140.00416.80
8.3.130.0030.00618.36
8.3.120.0040.00418.57
8.3.110.0070.01020.94
8.3.100.0000.00824.06
8.3.90.0080.00026.77
8.3.80.0030.00618.56
8.3.70.0060.00918.64
8.3.60.0080.00816.75
8.3.50.0090.00518.41
8.3.40.0040.01118.84
8.3.30.0150.00018.81
8.3.20.0110.00321.92
8.3.10.0040.00421.91
8.3.00.0040.00419.44
8.2.290.0140.00518.61
8.2.280.0110.00718.44
8.2.270.0090.00917.25
8.2.260.0030.00718.85
8.2.250.0000.00816.60
8.2.240.0060.00319.21
8.2.230.0000.01022.58
8.2.220.0070.00337.54
8.2.210.0050.00326.77
8.2.200.0000.00917.00
8.2.190.0100.00616.63
8.2.180.0030.01416.75
8.2.170.0140.00722.96
8.2.160.0040.01122.21
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0080.00019.77
8.2.110.0100.00721.00
8.2.100.0040.00717.91
8.2.90.0080.00018.03
8.2.80.0040.00418.09
8.2.70.0060.00318.04
8.2.60.0040.00417.80
8.2.50.0040.00418.10
8.2.40.0040.00420.61
8.2.30.0040.00419.33
8.2.20.0000.00818.03
8.2.10.0050.00318.15
8.2.00.0040.00418.14
8.1.330.0140.00516.45
8.1.320.0110.00916.18
8.1.310.0110.00416.69
8.1.300.0060.01218.38
8.1.290.0030.00630.84
8.1.280.0060.00925.92
8.1.270.0090.00022.14
8.1.260.0080.00026.35
8.1.250.0060.00328.09
8.1.240.0060.00319.27
8.1.230.0090.00322.69
8.1.220.0040.00417.74
8.1.210.0040.00418.91
8.1.200.0090.00017.35
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0030.00618.55
8.1.160.0000.00718.80
8.1.150.0000.00718.96
8.1.140.0040.00417.55
8.1.130.0030.00319.00
8.1.120.0040.00417.48
8.1.110.0030.00317.44
8.1.100.0000.00717.51
8.1.90.0080.00017.55
8.1.80.0040.00417.45
8.1.70.0000.01017.60
8.1.60.0030.00617.70
8.1.50.0090.00317.59
8.1.40.0000.00917.51
8.1.30.0030.00517.73
8.1.20.0000.00817.70
8.1.10.0090.00017.64
8.1.00.0040.00417.63
8.0.300.0040.00419.91
8.0.290.0070.00016.75
8.0.280.0000.00718.33
8.0.270.0040.00417.22
8.0.260.0030.00317.23
8.0.250.0040.00417.06
8.0.240.0070.00016.92
8.0.230.0070.00016.93
8.0.220.0000.00716.86
8.0.210.0030.00316.99
8.0.200.0050.00216.94
8.0.190.0040.00417.06
8.0.180.0050.00217.07
8.0.170.0030.00716.88
8.0.160.0070.00016.89
8.0.150.0040.00316.98
8.0.140.0040.00416.91
8.0.130.0050.00013.43
8.0.120.0030.00516.86
8.0.110.0050.00216.83
8.0.100.0040.00416.89
8.0.90.0000.00716.84
8.0.80.0080.00816.96
8.0.70.0000.00716.82
8.0.60.0030.00616.86
8.0.50.0000.00716.86
8.0.30.0090.01017.24
8.0.20.0180.00917.40
8.0.10.0040.00417.07
8.0.00.0060.01116.86
7.4.330.0000.00515.55
7.4.320.0030.00316.59
7.4.300.0000.00816.56
7.4.290.0000.00816.65
7.4.280.0070.00016.75
7.4.270.0000.00816.67
7.4.260.0050.00316.62
7.4.250.0070.00016.62
7.4.240.0030.00516.66
7.4.230.0040.00416.87
7.4.220.0030.00516.66
7.4.210.0100.00516.68
7.4.200.0030.00316.74
7.4.160.0040.01116.52
7.4.140.0150.00517.86
7.4.130.0140.00316.68
7.4.120.0150.00616.64
7.4.110.0140.00516.57
7.4.100.0060.01116.48
7.4.90.0110.00616.57
7.4.80.0160.00719.39
7.4.70.0150.00316.53
7.4.60.0060.01216.66
7.4.50.0030.00916.56
7.4.40.0030.01916.73
7.4.00.0000.01315.15
7.3.330.0030.00313.18
7.3.320.0000.00513.02
7.3.310.0000.00716.16
7.3.300.0030.00516.35
7.3.290.0030.00316.30
7.3.280.0100.00516.27
7.3.260.0130.00716.32
7.3.240.0120.00716.54
7.3.230.0090.00916.41
7.3.210.0060.00916.36
7.3.200.0080.00816.32
7.3.190.0120.00916.29
7.3.180.0100.00716.23
7.3.170.0120.01316.36
7.3.160.0070.01116.39
7.2.330.0070.01116.47
7.2.320.0160.00416.66
7.2.310.0030.01316.49
7.2.300.0150.00616.82
7.2.290.0090.00916.63
7.2.80.0030.00616.71
7.2.60.0000.01617.11
7.2.50.0120.00616.86
7.2.40.0080.01319.69
7.2.30.0080.01119.91
7.2.20.0090.01419.83
7.2.10.0070.01420.12
7.2.00.0100.00920.09
7.1.200.0030.01315.81
7.1.160.0100.01518.68
7.1.150.0080.01518.48
7.1.140.0100.01118.96
7.1.130.0060.01119.10
7.1.120.0080.00818.65
7.1.110.0060.01018.42
7.1.100.0100.00717.99
7.1.90.0120.01018.29
7.1.80.0090.00918.23
7.1.70.0080.00917.37
7.1.60.0260.01934.93
7.1.50.0270.02034.93
7.1.40.0370.01134.55
7.1.30.0310.02034.58
7.1.20.0200.01834.94
7.1.10.0070.01216.91
7.1.00.0070.01616.76

preferences:
119.95 ms | 403 KiB | 5 Q