3v4l.org

run code in 500+ PHP versions simultaneously
<?php $re = '/(?i)^((?:[a-z]+(?:\h+[a-z]+)*)?)\h*(\d+(?:\h+\d+)*)\h*((?:[a-z]+(?:\h+[a-z]+)*)?)?$/mi'; $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.70.0040.00518.58
8.5.60.0130.00617.11
8.5.50.0020.00517.01
8.5.30.0070.01020.17
8.5.20.0100.00720.15
8.5.10.0080.00818.58
8.5.00.0130.00720.09
8.4.210.0050.00421.61
8.4.180.0130.00921.85
8.4.170.0100.01120.39
8.4.160.0150.00623.84
8.4.150.0090.00316.97
8.4.140.0120.01118.02
8.4.130.0060.00318.95
8.4.120.0110.01124.12
8.4.110.0080.00718.77
8.4.100.0120.00818.98
8.4.90.0130.00720.63
8.4.80.0120.00818.88
8.4.70.0070.01218.90
8.4.60.0090.01318.59
8.4.50.0080.00917.90
8.4.40.0060.01319.54
8.4.30.0100.01020.47
8.4.20.0170.00317.69
8.4.10.0100.00720.53
8.3.300.0110.01020.94
8.3.290.0120.00920.92
8.3.280.0120.00818.52
8.3.270.0130.00616.63
8.3.260.0050.00316.73
8.3.250.0140.00618.75
8.3.240.0150.00517.41
8.3.230.0130.00916.93
8.3.220.0110.00818.75
8.3.210.0040.00416.75
8.3.200.0060.00316.85
8.3.190.0070.00717.29
8.3.180.0060.00418.50
8.3.170.0110.00716.54
8.3.160.0100.01020.65
8.3.150.0040.01518.94
8.3.140.0140.00420.73
8.3.130.0040.00418.25
8.3.120.0030.00619.12
8.3.110.0120.00620.94
8.3.100.0170.00024.06
8.3.90.0080.00826.77
8.3.80.0060.00316.49
8.3.70.0070.01116.75
8.3.60.0090.00616.75
8.3.50.0090.00618.23
8.3.40.0090.00622.13
8.3.30.0070.00719.29
8.3.20.0050.00324.18
8.3.10.0030.00524.66
8.3.00.0000.00826.16
8.2.300.0110.01122.28
8.2.290.0050.00422.46
8.2.280.0040.00518.67
8.2.270.0030.00716.80
8.2.260.0150.00318.49
8.2.250.0030.00517.15
8.2.240.0150.00420.79
8.2.230.0040.01122.58
8.2.220.0050.00337.54
8.2.210.0130.00626.77
8.2.200.0000.00918.41
8.2.190.0110.00716.58
8.2.180.0110.00725.92
8.2.170.0070.01419.26
8.2.160.0000.01422.96
8.2.150.0070.00025.66
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0040.00419.95
8.2.110.0030.00621.09
8.2.100.0040.00718.03
8.2.90.0060.00317.88
8.2.80.0030.00617.97
8.2.70.0030.00617.84
8.2.60.0080.00017.75
8.2.50.0000.00817.98
8.2.40.0060.00318.34
8.2.30.0030.00518.27
8.2.20.0040.00420.51
8.2.10.0020.00518.18
8.2.00.0040.00419.40
8.1.340.0160.00821.89
8.1.330.0060.00522.08
8.1.320.0060.00218.46
8.1.310.0140.00418.25
8.1.300.0050.00519.88
8.1.290.0090.00030.84
8.1.280.0090.00625.92
8.1.270.0050.00318.74
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.00
8.1.230.0120.00017.77
8.1.220.0030.00617.74
8.1.210.0030.00618.77
8.1.200.0100.00017.35
8.1.190.0030.00517.35
8.1.180.0060.00318.10
8.1.170.0050.00317.62
8.1.160.0000.00718.94
8.1.150.0050.00318.73
8.1.140.0040.00417.70
8.1.130.0000.00718.94
8.1.120.0040.00417.55
8.1.110.0080.00017.59
8.1.100.0040.00417.64
8.1.90.0040.00417.63
8.1.80.0000.01017.61
8.1.70.0000.00717.61
8.1.60.0000.00817.73
8.1.50.0000.00817.75
8.1.40.0240.00017.67
8.1.30.0240.00017.79
8.1.20.0220.00317.77
8.1.10.0210.00317.75
8.1.00.0220.00317.60
8.0.300.0060.00319.91
8.0.290.0030.00617.00
8.0.280.0000.00718.38
8.0.270.0040.00416.86
8.0.260.0070.00018.41
8.0.250.0030.00317.11
8.0.240.0040.00417.00
8.0.230.0040.00417.04
8.0.220.0050.00217.00
8.0.210.0030.00317.03
8.0.200.0070.00017.14
8.0.190.0000.00917.00
8.0.180.0000.00917.11
8.0.170.0100.01016.92
8.0.160.0050.01516.94
8.0.150.0130.00416.80
8.0.140.0190.00016.90
8.0.130.0230.00017.07
8.0.120.0180.00017.02
8.0.110.0150.00416.98
8.0.100.0050.00716.97
8.0.90.0050.00516.89
8.0.80.0110.00016.81
8.0.70.0030.00717.04
8.0.60.0070.00517.01
8.0.50.0000.01216.86
8.0.30.0120.00016.88
8.0.20.0070.00517.04
8.0.10.0050.00917.15
7.4.330.0050.00015.55
7.4.320.0040.00416.69
7.4.300.0000.00616.75
7.4.290.0040.00416.73
7.4.280.0110.00016.68
7.4.270.0100.00016.63
7.4.260.0050.00516.64
7.4.250.0080.00016.69
7.4.240.0000.00916.82
7.4.230.0000.00816.70
7.4.220.0000.00816.70
7.4.210.0060.00316.73
7.4.200.0070.00416.71
7.4.190.0030.00716.85
7.4.180.0100.00016.83
7.4.160.0090.00316.67
7.4.150.0110.00016.74
7.4.140.0060.00616.76
7.4.130.0040.00816.71
7.4.120.0120.00016.73
7.4.110.0020.00916.63
7.4.100.0060.00416.64
7.4.90.0070.00316.84
7.4.80.0160.00316.62
7.4.70.0130.00616.64
7.4.60.0130.00716.73
7.4.50.0140.00516.61
7.4.40.0180.00316.59
7.4.30.0140.00516.71
7.4.20.0110.00616.67
7.4.10.0160.00016.50
7.4.00.0180.00016.71

preferences:
53.95 ms | 1335 KiB | 5 Q