3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/([\D]+)|([\d]+)/'; $str = 'a74b8c0d3845e7'; preg_match_all($re, $str, $matches); print_r(array_filter($matches[1]));print_r($matches[2]);

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.3.40.0040.01118.91
8.3.30.0040.01118.84
8.3.20.0040.00418.94
8.3.10.0040.00420.39
8.3.00.0060.00319.63
8.2.170.0040.01122.96
8.2.160.0070.00719.14
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00418.85
8.2.110.0060.00319.45
8.2.100.0090.00317.84
8.2.90.0030.00619.50
8.2.80.0040.00419.32
8.2.70.0090.00017.63
8.2.60.0110.00017.80
8.2.50.0040.00418.07
8.2.40.0030.00518.09
8.2.30.0060.00318.00
8.2.20.0080.00019.59
8.2.10.0030.00617.77
8.2.00.0030.00517.71
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00623.86
8.1.230.0120.00020.88
8.1.220.0040.00417.74
8.1.210.0040.00818.89
8.1.200.0040.00417.47
8.1.190.0040.00417.39
8.1.180.0030.00718.10
8.1.170.0030.00718.91
8.1.160.0040.00418.73
8.1.150.0000.00718.66
8.1.140.0000.00717.45
8.1.130.0030.00317.86
8.1.120.0040.00417.56
8.1.110.0050.00317.43
8.1.100.0020.00517.58
8.1.90.0000.00717.43
8.1.80.0040.00417.42
8.1.70.0030.00617.43
8.1.60.0080.00017.55
8.1.50.0030.00517.52
8.1.40.0040.00417.68
8.1.30.0060.00317.67
8.1.20.0080.00017.63
8.1.10.0000.00917.69
8.1.00.0030.00517.67
8.0.300.0000.00819.90
8.0.290.0000.00716.88
8.0.280.0030.00318.45
8.0.270.0040.00417.27
8.0.260.0050.00316.89
8.0.250.0000.00717.07
8.0.240.0070.00017.05
8.0.230.0030.00317.08
8.0.220.0070.00016.96
8.0.210.0030.00316.89
8.0.200.0000.00617.02
8.0.190.0000.00717.02
8.0.180.0050.00316.99
8.0.170.0080.00016.80
8.0.160.0000.00816.90
8.0.150.0040.00416.95
8.0.140.0000.00816.92
8.0.130.0030.00313.40
8.0.120.0040.00416.89
8.0.110.0040.00417.02
8.0.100.0060.00316.96
8.0.90.0040.00416.94
8.0.80.0070.01517.00
8.0.70.0000.00716.98
8.0.60.0000.00817.01
8.0.50.0030.00616.84
8.0.30.0070.01117.14
8.0.20.0060.01317.20
8.0.10.0000.00716.93
8.0.00.0090.01016.90
7.4.330.0000.00713.20
7.4.320.0000.00716.76
7.4.300.0000.00716.77
7.4.290.0030.00316.75
7.4.280.0050.00216.60
7.4.270.0070.00016.57
7.4.260.0030.00313.47
7.4.250.0040.00416.54
7.4.240.0040.00416.66
7.4.230.0040.00416.49
7.4.220.0150.00416.53
7.4.210.0060.00916.75
7.4.200.0050.00216.85
7.4.190.0030.00316.62
7.4.160.0160.00316.81
7.4.150.0090.01016.59
7.4.140.0120.00616.50
7.4.130.0130.00316.75
7.4.120.0140.00316.65
7.4.110.0120.01216.59
7.4.100.0100.00616.54
7.4.90.0150.00816.55
7.4.80.0140.00719.39
7.4.70.0070.01116.52
7.4.60.0060.01116.38
7.4.50.0050.00316.30
7.4.40.0090.00616.64
7.4.30.0060.00916.52
7.4.00.0080.01015.04
7.3.330.0000.00613.27
7.3.320.0050.00013.21
7.3.310.0000.00716.42
7.3.300.0030.00316.22
7.3.290.0090.00716.32
7.3.280.0050.01316.34
7.3.270.0070.01016.69
7.3.260.0070.01016.44
7.3.250.0110.00916.42
7.3.240.0130.00316.78
7.3.230.0080.00816.73
7.3.210.0070.01116.41
7.3.200.0030.01316.38
7.3.190.0070.01016.41
7.3.180.0080.00816.63
7.3.170.0100.00616.59
7.3.160.0030.01316.54
7.3.120.0070.01015.02
7.3.110.0110.00715.15
7.3.100.0000.01515.07
7.3.90.0000.00914.84
7.3.80.0090.00015.10
7.3.70.0030.00915.05
7.3.60.0040.01114.94
7.3.50.0000.01615.05
7.3.40.0040.00815.05
7.3.30.0120.00315.01
7.3.20.0070.01016.64
7.3.10.0080.00816.56
7.3.00.0050.00516.82
7.2.330.0150.00316.71
7.2.320.0100.01016.45
7.2.310.0030.01416.53
7.2.300.0070.01116.68
7.2.290.0070.01016.59
7.2.250.0000.01915.00
7.2.240.0100.01015.16
7.2.230.0080.00815.04
7.2.220.0110.00415.03
7.2.210.0080.00315.07
7.2.200.0060.00915.22
7.2.190.0040.01414.76
7.2.180.0060.00615.01
7.2.170.0030.01214.89
7.2.00.0060.00619.28
7.1.330.0110.00315.63
7.1.320.0070.00315.93
7.1.310.0030.00916.18
7.1.300.0100.00415.63
7.1.290.0060.00615.94
7.1.280.0090.00615.73
7.1.270.0070.00716.08
7.1.260.0030.00916.02
7.1.100.0030.00618.46
7.1.70.0040.00417.28
7.1.60.0040.01419.31
7.1.50.0270.01035.02
7.1.00.0100.07022.28
7.0.200.0040.00416.73
7.0.140.0030.07721.96
7.0.120.0000.06722.05
7.0.60.0200.07019.95
7.0.50.0030.08717.96
7.0.40.0100.05717.81
7.0.30.0070.08017.80
7.0.20.0070.08017.74
7.0.10.0030.05017.76
7.0.00.0000.06017.74
5.6.280.0100.06720.81
5.6.210.0130.07720.49
5.6.200.0070.04718.21
5.6.190.0100.08318.24
5.6.180.0070.07718.15
5.6.170.0130.07718.15
5.6.160.0030.04718.28
5.6.150.0000.04718.31
5.6.140.0170.07718.18
5.6.130.0130.04718.14
5.6.120.0070.07718.21
5.6.110.0200.07018.27
5.6.100.0030.06318.15
5.6.90.0070.08318.16
5.6.80.0070.05017.58
5.6.70.0030.06017.53
5.6.60.0070.07717.54
5.6.50.0030.04017.55
5.6.40.0030.04317.53
5.6.30.0070.05717.55
5.6.20.0030.04017.54
5.6.10.0030.08317.63
5.6.00.0000.08717.56
5.5.350.0130.06020.43
5.5.340.0030.08017.98
5.5.330.0130.06018.04
5.5.320.0000.08317.99
5.5.310.0030.08318.06
5.5.300.0000.05717.95
5.5.290.0030.09318.04
5.5.280.0100.07018.02
5.5.270.0100.08317.93
5.5.260.0130.07317.97
5.5.250.0030.08017.88
5.5.240.0130.07017.42
5.5.230.0100.05317.34
5.5.220.0030.08717.36
5.5.210.0130.07017.35
5.5.200.0070.03717.34
5.5.190.0130.07017.27
5.5.180.0030.07017.34
5.5.160.0130.07317.39
5.5.150.0100.07717.30
5.5.140.0030.04017.39
5.5.130.0000.04317.33
5.5.120.0130.04317.36
5.5.110.0030.08717.43
5.5.100.0100.07717.24
5.5.90.0170.04717.29
5.5.80.0030.05717.33
5.5.70.0000.04017.27
5.5.60.0030.03717.15
5.5.50.0070.03317.22
5.5.40.0000.04017.19
5.5.30.0130.02717.30
5.5.20.0070.03317.20
5.5.10.0030.04317.30
5.5.00.0100.03017.15
5.4.450.0070.04019.22
5.4.440.0100.07719.30
5.4.430.0030.08019.21
5.4.420.0030.06019.43
5.4.410.0130.07319.30
5.4.400.0000.08319.03
5.4.390.0030.07718.96
5.4.380.0030.04319.11
5.4.370.0070.07019.05
5.4.360.0030.04719.14
5.4.350.0070.07019.01
5.4.340.0100.07318.95
5.4.320.0070.07719.14
5.4.310.0070.03719.04
5.4.300.0070.04019.03
5.4.290.0070.04318.95
5.4.280.0030.04019.03
5.4.270.0130.07319.10
5.4.260.0030.05319.01
5.4.250.0130.05319.02
5.4.240.0070.06019.09
5.4.230.0030.03719.04
5.4.220.0070.04018.99
5.4.210.0030.03719.11
5.4.200.0100.03019.04
5.4.190.0070.03319.26
5.4.180.0030.03719.02
5.4.170.0030.03719.11
5.4.160.0030.03718.93
5.4.150.0100.03319.25
5.4.140.0000.03716.24
5.4.130.0000.03716.23
5.4.120.0070.03316.39
5.4.110.0000.03716.34
5.4.100.0000.03716.32
5.4.90.0030.03316.41
5.4.80.0030.03316.44
5.4.70.0070.03016.40
5.4.60.0030.03716.41
5.4.50.0000.03716.45
5.4.40.0070.03016.44
5.4.30.0030.03316.35
5.4.20.0030.03316.37
5.4.10.0000.03716.21
5.4.00.0000.03715.84
5.3.290.0030.06314.72
5.3.280.0000.04014.59
5.3.270.0000.04014.64
5.3.260.0000.04014.59
5.3.250.0030.03314.45
5.3.240.0000.03714.67
5.3.230.0030.04014.59
5.3.220.0000.04014.61
5.3.210.0030.03714.55
5.3.200.0100.03314.61
5.3.190.0070.03314.66
5.3.180.0030.04014.41
5.3.170.0000.03714.51
5.3.160.0070.03314.52
5.3.150.0000.04314.60
5.3.140.0070.03014.59
5.3.130.0000.04014.75
5.3.120.0030.03714.56
5.3.110.0070.03314.57
5.3.100.0070.03314.07
5.3.90.0030.03313.86
5.3.80.0000.03714.05
5.3.70.0000.04014.00
5.3.60.0000.03714.03
5.3.50.0070.03314.14
5.3.40.0070.03013.97
5.3.30.0030.03313.92
5.3.20.0030.03313.78
5.3.10.0070.03713.68
5.3.00.0100.06013.67
5.2.170.0000.03011.10
5.2.160.0030.03711.16
5.2.150.0070.02710.98
5.2.140.0030.02711.18
5.2.130.0070.02311.19
5.2.120.0000.03011.10
5.2.110.0030.06311.06
5.2.100.0070.04711.11
5.2.90.0030.06011.16
5.2.80.0030.03011.09
5.2.70.0000.05011.11
5.2.60.0030.04010.93
5.2.50.0070.03011.05
5.2.40.0070.02711.00
5.2.30.0030.06311.01
5.2.20.0000.03311.00
5.2.10.0030.04710.89
5.2.00.0030.05310.56
5.1.60.0030.03310.13
5.1.50.0000.03010.13
5.1.40.0070.0439.95
5.1.30.0100.04710.29
5.1.20.0070.04310.38
5.1.10.0000.04310.05
5.1.00.0030.05710.10
5.0.50.0000.0239.30
5.0.40.0030.0209.30
5.0.30.0000.0679.30
5.0.20.0070.0309.30
5.0.10.0030.0479.30
5.0.00.0030.0439.30
4.4.90.0000.0239.30
4.4.80.0030.0179.30
4.4.70.0070.0139.30
4.4.60.0030.0309.30
4.4.50.0030.0379.30
4.4.40.0030.0539.30
4.4.30.0000.0409.30
4.4.20.0030.0239.30
4.4.10.0030.0209.30
4.4.00.0030.0239.30
4.3.110.0000.0209.30
4.3.100.0000.0279.30
4.3.90.0070.0309.30
4.3.80.0000.0279.30
4.3.70.0070.0279.30
4.3.60.0000.0339.30
4.3.50.0070.0309.30
4.3.40.0000.0409.30
4.3.30.0000.0239.30
4.3.20.0030.0339.30
4.3.10.0030.0379.30
4.3.00.0000.0379.30

preferences:
51.89 ms | 400 KiB | 5 Q