3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/^.{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.0120.00817.66
8.4.130.0180.00617.50
8.4.120.0140.00717.66
8.4.110.0140.00718.12
8.4.100.0150.00517.93
8.4.90.0120.00720.70
8.4.80.0050.00418.72
8.4.70.0110.01018.80
8.4.60.0140.00618.73
8.4.50.0120.00718.96
8.4.40.0160.00317.84
8.4.30.0180.00420.84
8.4.20.0100.01019.81
8.4.10.0150.00019.55
8.3.260.0100.01016.46
8.3.250.0070.00416.54
8.3.240.0150.00418.34
8.3.230.0110.01016.50
8.3.220.0060.00218.87
8.3.210.0100.00816.77
8.3.200.0030.00516.72
8.3.190.0050.00317.01
8.3.180.0100.00418.52
8.3.170.0140.00419.09
8.3.160.0030.00518.61
8.3.150.0070.01016.80
8.3.140.0080.00016.79
8.3.130.0000.00918.60
8.3.120.0090.00020.70
8.3.110.0060.00320.94
8.3.100.0350.01337.54
8.3.90.0390.01237.54
8.3.80.0400.01237.54
8.3.70.0230.00837.54
8.3.60.0250.00437.54
8.3.50.0400.00737.54
8.3.40.0310.00337.54
8.3.30.0260.00037.54
8.3.20.0140.00737.54
8.3.10.0210.00037.54
8.3.00.0180.00037.54
8.2.290.0100.01016.62
8.2.280.0060.00320.34
8.2.270.0060.00316.77
8.2.260.0040.00418.64
8.2.250.0110.00416.82
8.2.240.0050.00517.29
8.2.230.0070.00722.58
8.2.220.0160.00337.54
8.2.210.0210.00037.54
8.2.200.0170.00337.54
8.2.190.0130.00737.54
8.2.180.0150.00937.54
8.2.170.0300.00737.54
8.2.160.0200.01037.54
8.2.150.0310.01337.54
8.2.140.0290.00637.54
8.2.130.0400.00337.54
8.2.120.0340.00737.54
8.2.110.0390.00037.54
8.2.100.0400.00337.54
8.2.90.0380.00337.54
8.2.80.0380.00837.54
8.2.70.0450.00737.54
8.2.60.0370.00037.54
8.2.50.0220.00637.54
8.2.40.0190.00037.54
8.2.30.0360.01037.54
8.2.20.0320.01237.54
8.2.10.0320.00837.54
8.2.00.0370.00437.54
8.1.330.0120.00716.17
8.1.320.0130.00717.82
8.1.310.0090.00616.37
8.1.300.0040.00716.46
8.1.290.0330.01037.54
8.1.280.0310.01037.54
8.1.270.0320.00337.54
8.1.260.0340.00437.54
8.1.250.0390.00937.54
8.1.240.0360.00637.54
8.1.230.0370.00537.54
8.1.220.0270.00837.54
8.1.210.0260.01337.54
8.1.200.0290.00937.54
8.1.190.0290.00837.54
8.1.180.0330.00637.54
8.1.170.0260.01337.54
8.1.160.0380.00437.54
8.1.150.0310.01037.54
8.1.140.0250.01137.54
8.1.130.0200.00637.54
8.1.120.0190.00537.54
8.1.110.0350.00437.54
8.1.100.0360.00337.54
8.1.90.0180.02137.54
8.1.80.0300.01037.54
8.1.70.0330.00737.54
8.1.60.0280.01437.54
8.1.50.0320.01137.54
8.1.40.0420.00837.54
8.1.30.0330.00437.54
8.1.20.0400.00637.54
8.1.10.0380.00437.54
8.1.00.0330.00937.54

preferences:
27.4 ms | 403 KiB | 5 Q