3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/^\h*+\K.{0,11}\S(?!\S)/m'; $str = 'this is a test sentence this is a test sentence a b c'; preg_match_all($re, $str, $matches); var_export($matches[0]);

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.140.0100.01117.59
8.4.130.0150.00617.95
8.4.120.0120.00820.62
8.4.110.0120.00822.20
8.4.100.0110.01018.21
8.4.90.0050.00418.05
8.4.80.0120.00818.13
8.4.70.0080.00117.82
8.4.60.0080.01118.45
8.4.50.0130.00717.77
8.4.40.0130.00717.81
8.4.30.0060.00920.58
8.4.20.0190.00019.81
8.4.10.0050.00319.77
8.3.260.0110.00816.37
8.3.250.0080.00218.72
8.3.240.0120.00716.66
8.3.230.0150.00516.30
8.3.220.0080.01017.14
8.3.210.0100.00616.63
8.3.200.0040.00616.38
8.3.190.0030.00717.18
8.3.180.0110.00917.10
8.3.170.0130.00617.09
8.3.160.0040.00418.38
8.3.150.0170.00316.80
8.3.140.0050.00316.82
8.3.130.0090.00018.59
8.3.120.0080.00418.96
8.3.110.0050.00520.94
8.3.100.0410.00737.54
8.3.90.0370.01037.54
8.3.80.0460.00437.54
8.3.70.0280.01037.54
8.3.60.0190.00537.54
8.3.50.0290.00737.54
8.3.40.0280.01137.54
8.3.30.0370.00337.54
8.3.20.0370.00337.54
8.3.10.0310.01037.54
8.3.00.0300.00937.54
8.2.290.0150.00520.45
8.2.280.0130.00618.19
8.2.270.0000.01016.81
8.2.260.0090.00916.65
8.2.250.0050.00318.73
8.2.240.0090.00017.42
8.2.230.0040.00422.58
8.2.220.0220.01837.54
8.2.210.0350.00437.54
8.2.200.0340.00337.54
8.2.190.0340.00337.54
8.2.180.0180.00637.54
8.2.170.0150.00637.54
8.2.160.0120.00937.54
8.2.150.0180.00637.54
8.2.140.0080.01237.54
8.2.130.0160.01337.54
8.2.120.0210.00337.54
8.2.110.0280.01237.54
8.2.100.0300.01537.54
8.2.90.0320.01237.54
8.2.80.0400.00337.54
8.2.70.0360.00737.54
8.2.60.0370.00637.54
8.2.50.0290.01537.54
8.2.40.0360.00437.54
8.2.30.0230.01737.54
8.2.20.0260.01137.54
8.2.10.0400.01537.54
8.2.00.0320.00937.54
8.1.330.0110.00818.24
8.1.320.0110.00716.44
8.1.310.0000.01816.36
8.1.300.0030.00616.20
8.1.290.0400.00337.54
8.1.280.0320.00837.54
8.1.270.0240.01037.54
8.1.260.0320.01637.54
8.1.250.0310.01237.54
8.1.240.0320.00737.54
8.1.230.0200.01637.54
8.1.220.0240.00737.54
8.1.210.0210.00737.54
8.1.200.0240.00437.54
8.1.190.0360.00337.54
8.1.180.0270.01237.54
8.1.170.0320.00837.54
8.1.160.0330.01037.54
8.1.150.0370.00337.54
8.1.140.0300.01037.54
8.1.130.0320.00737.54
8.1.120.0250.01437.54
8.1.110.0280.01037.54
8.1.100.0380.00037.54
8.1.90.0330.00737.54
8.1.80.0260.00937.54
8.1.70.0260.00637.54
8.1.60.0310.00837.54
8.1.50.0290.00337.54
8.1.40.0260.00437.54
8.1.30.0290.00637.54
8.1.20.0240.00437.54
8.1.10.0370.00937.54
8.1.00.0300.01337.54

preferences:
34.09 ms | 403 KiB | 5 Q