3v4l.org

run code in 500+ PHP versions simultaneously
<?php $re = '/^([^\d\r\n]*)\h*(\d+(?:\h+\d+)*)\h*([^\d\r\n]*)$/m'; $str = 'from 8 000 packs test from 8 000 packs test 432534534 from 344454 packs 45054 packs 04 555 434654 54 564 packs'; preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0); foreach($matches as $match) { list(,$before, $num, $after) = $match; echo sprintf( "before: %s\nnum:%s\nafter:%s\n--------------------\n", $before, preg_replace("/\h+/", "", $num), $after ); }

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.5.60.0040.00418.86
8.5.50.0100.00816.61
8.5.30.0120.00620.21
8.5.20.0120.00820.16
8.5.10.0090.00918.75
8.5.00.0120.00920.31
8.4.210.0150.00621.52
8.4.180.0130.01019.94
8.4.170.0100.01123.93
8.4.160.0140.00823.75
8.4.150.0080.00516.93
8.4.140.0130.01017.93
8.4.130.0110.01018.40
8.4.120.0110.00924.13
8.4.110.0070.00319.05
8.4.100.0130.00718.76
8.4.90.0040.00520.65
8.4.80.0050.00419.82
8.4.70.0110.00618.07
8.4.60.0110.00918.97
8.4.50.0060.00218.50
8.4.40.0170.00719.76
8.4.30.0080.00020.64
8.4.20.0100.01018.14
8.4.10.0110.00720.69
8.3.300.0110.00920.87
8.3.290.0140.00820.82
8.3.280.0110.01018.76
8.3.270.0160.00416.73
8.3.260.0110.00816.63
8.3.250.0120.00818.79
8.3.240.0110.00817.13
8.3.230.0140.00516.92
8.3.220.0090.00917.18
8.3.210.0090.00518.49
8.3.200.0050.00416.61
8.3.190.0130.00517.08
8.3.180.0120.00616.48
8.3.170.0120.00618.97
8.3.160.0080.00018.31
8.3.150.0160.00316.74
8.3.140.0040.01118.82
8.3.130.0000.00818.64
8.3.120.0120.00018.99
8.3.110.0100.00020.94
8.3.100.0060.00624.06
8.3.90.0110.00426.77
8.3.80.0060.00316.75
8.3.70.0060.00916.86
8.3.60.0120.00318.55
8.3.50.0040.01118.37
8.3.40.0110.00422.23
8.3.30.0030.01019.18
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0050.00326.16
8.2.300.0110.01122.33
8.2.290.0130.00420.51
8.2.280.0080.00120.73
8.2.270.0100.01019.08
8.2.260.0120.00318.49
8.2.250.0040.00416.82
8.2.240.0060.01019.14
8.2.230.0080.00022.58
8.2.220.0040.00437.54
8.2.210.0100.01026.77
8.2.200.0000.01116.75
8.2.190.0100.01016.58
8.2.180.0090.00625.92
8.2.170.0140.00019.04
8.2.160.0120.00322.96
8.2.150.0080.00025.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0060.00326.16
8.2.110.0060.00322.25
8.2.100.0000.01117.84
8.2.90.0110.00017.88
8.2.80.0040.00418.89
8.2.70.0080.00017.88
8.2.60.0000.00818.04
8.2.50.0040.00418.07
8.2.40.0000.00818.22
8.2.30.0070.00018.22
8.2.20.0020.00520.35
8.2.10.0070.00018.22
8.2.00.0080.00019.22
8.1.340.0140.00721.57
8.1.330.0100.01022.13
8.1.320.0070.01316.25
8.1.310.0100.00718.51
8.1.300.0080.00818.49
8.1.290.0060.00330.84
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.76
8.1.230.0070.00421.03
8.1.220.0000.00717.79
8.1.210.0050.00318.77
8.1.200.0030.00617.48
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0000.00818.67
8.1.160.0050.00318.89
8.1.150.0000.00818.81
8.1.140.0000.00817.63
8.1.130.0070.00017.62
8.1.120.0050.00217.61
8.1.110.0000.00817.61
8.1.100.0050.00217.69
8.1.90.0050.00317.63
8.1.80.0040.00417.54
8.1.70.0070.00017.59
8.1.60.0030.00617.78
8.1.50.0050.00317.58
8.1.40.0130.00017.59
8.1.30.0070.00417.77
8.1.20.0060.00617.70
8.1.10.0050.00717.57
8.1.00.0100.00217.65
8.0.300.0030.00618.77
8.0.290.0080.00016.63
8.0.280.0040.00420.14
8.0.270.0080.00017.02
8.0.260.0030.00316.98
8.0.250.0000.00717.09
8.0.240.0040.00416.99
8.0.230.0000.00717.00
8.0.220.0050.00217.06
8.0.210.0030.00316.92
8.0.200.0080.00017.12
8.0.190.0040.00417.00
8.0.180.0040.00416.98
8.0.170.0120.00016.92
8.0.160.0080.00416.96
8.0.150.0040.00816.91
8.0.140.0040.00416.95
8.0.130.0050.00516.86
8.0.120.0040.00717.03
8.0.110.0000.00816.91
8.0.100.0040.00416.99
8.0.90.0000.00716.93
8.0.80.0000.00817.10
8.0.70.0060.00616.97
8.0.60.0070.00517.00
8.0.50.0070.00717.02
8.0.30.0030.00917.10
8.0.20.0080.00317.05
8.0.10.0000.00917.20
7.4.330.0000.00615.55
7.4.320.0040.00416.73
7.4.300.0060.00016.85
7.4.290.0030.00916.66
7.4.280.0000.00916.68
7.4.270.0000.00916.68
7.4.260.0000.00816.82
7.4.250.0040.00416.70
7.4.240.0050.00316.75
7.4.230.0000.00816.50
7.4.220.0080.00016.67
7.4.210.0050.00316.77
7.4.200.0080.00016.55
7.4.190.0050.00516.59
7.4.180.0070.00416.66
7.4.160.0070.00716.77
7.4.150.0120.00016.77
7.4.140.0030.00716.80
7.4.130.0050.00516.77
7.4.120.0000.01016.71
7.4.110.0100.00016.62
7.4.100.0050.00516.79
7.4.90.0070.00416.63
7.4.80.0000.00816.79
7.4.70.0030.00816.68
7.4.60.0060.00316.75
7.4.50.0030.00616.55
7.4.40.0000.00916.60
7.4.30.0060.00316.58
7.4.20.0000.00816.59
7.4.10.0000.00816.54
7.4.00.0060.00316.59

preferences:
84.17 ms | 1330 KiB | 5 Q