3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/1000(\d+)1500/mi'; $str = '10001212121212121500 100012121500 10001500'; preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0); // Print the entire match result $expected = []; foreach($matches as $match){ $expected[] = $match[1]; } print_r($expected); ?>

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.120.0120.00722.38
8.4.110.0110.00922.36
8.4.100.0130.00617.95
8.4.90.0120.00819.62
8.4.80.0140.00718.15
8.4.70.0100.01217.91
8.4.60.0110.00918.70
8.4.50.0150.00520.28
8.4.40.0090.00019.70
8.4.30.0160.00317.76
8.4.20.0100.01020.51
8.4.10.0090.00619.71
8.3.250.0120.00618.85
8.3.240.0110.00616.76
8.3.230.0050.00816.59
8.3.220.0060.00517.22
8.3.210.0100.00616.91
8.3.200.0050.00416.60
8.3.190.0100.00817.35
8.3.180.0110.00716.49
8.3.170.0130.00719.19
8.3.160.0030.01620.40
8.3.150.0070.01416.90
8.3.140.0050.00317.29
8.3.130.0050.00518.61
8.3.120.0040.00419.02
8.3.110.0070.00420.94
8.3.100.0040.00416.74
8.3.90.0040.00418.79
8.3.80.0000.00917.97
8.3.70.0110.01116.63
8.3.60.0070.01018.68
8.3.50.0130.00717.68
8.3.40.0110.00418.91
8.3.30.0070.01018.74
8.3.20.0040.00421.89
8.3.10.0060.00320.73
8.3.00.0040.00419.63
8.2.290.0110.00820.26
8.2.280.0100.00918.64
8.2.270.0120.00316.95
8.2.260.0070.01118.38
8.2.250.0040.00417.04
8.2.240.0090.00019.01
8.2.230.0100.01022.58
8.2.220.0030.00624.06
8.2.210.0070.00726.77
8.2.200.0090.00016.50
8.2.190.0040.01116.75
8.2.180.0120.00618.41
8.2.170.0040.01122.96
8.2.160.0070.00719.26
8.2.150.0070.00024.18
8.2.140.0120.00424.66
8.2.130.0000.00820.57
8.2.120.0040.00426.35
8.2.110.0030.00720.35
8.2.100.0120.00017.91
8.2.90.0050.00317.88
8.2.80.0120.00018.98
8.2.70.0000.00817.73
8.2.60.0000.00817.63
8.2.50.0040.00417.88
8.2.40.0080.00019.53
8.2.30.0040.00419.20
8.2.20.0040.00418.06
8.2.10.0000.00719.34
8.2.00.0020.00518.14
8.1.330.0110.00916.50
8.1.320.0130.00616.30
8.1.310.0040.00418.64
8.1.300.0110.00718.35
8.1.290.0090.00018.88
8.1.280.0090.00625.92
8.1.270.0100.00720.38
8.1.260.0000.00726.35
8.1.250.0000.00928.09
8.1.240.0090.00023.86
8.1.230.0090.00320.86
8.1.220.0050.00318.76
8.1.210.0080.00018.77
8.1.200.0060.00317.48
8.1.190.0030.00517.23
8.1.180.0060.00318.10
8.1.170.0050.00318.62
8.1.160.0040.00418.84
8.1.150.0070.00018.84
8.1.140.0000.00720.22
8.1.130.0060.00020.34
8.1.120.0050.00317.61
8.1.110.0030.00617.63
8.1.100.0040.00317.52
8.1.90.0080.00017.62
8.1.80.0060.00317.67
8.1.70.0040.00417.59
8.1.60.0040.00417.73
8.1.50.0090.00017.59
8.1.40.0050.00317.71
8.1.30.0000.00817.83
8.1.20.0000.00817.77
8.1.10.0080.00017.66
8.1.00.0000.00817.60
8.0.300.0080.00018.77
8.0.290.0060.00316.88
8.0.280.0040.00418.46
8.0.270.0070.00016.97
8.0.260.0000.00618.36
8.0.250.0000.00717.12
8.0.240.0040.00417.16
8.0.230.0000.00717.11
8.0.220.0000.00717.08
8.0.210.0000.00717.00
8.0.200.0080.00017.11
8.0.190.0040.00417.00
8.0.180.0050.00317.04
8.0.170.0030.00616.99
8.0.160.0040.00417.03
8.0.150.0000.00716.96
8.0.140.0040.00416.90
8.0.130.0000.00513.45
8.0.120.0040.00416.90
8.0.110.0030.00516.90
8.0.100.0040.00416.93
8.0.90.0080.00017.10
8.0.80.0100.00716.98
8.0.70.0030.00316.91
8.0.60.0080.00017.09
8.0.50.0000.00817.05
8.0.30.0130.00717.23
8.0.20.0040.01417.14
8.0.10.0000.00717.13
8.0.00.0100.01017.04
7.4.330.0030.00315.55
7.4.320.0040.00416.84
7.4.300.0030.00516.73
7.4.290.0070.00016.57
7.4.280.0000.00816.82
7.4.270.0040.00516.81
7.4.260.0000.00716.65
7.4.250.0030.00416.75
7.4.240.0080.00016.67
7.4.230.0000.00816.80
7.4.220.0080.00016.79
7.4.210.0090.00816.68
7.4.200.0070.00016.72
7.4.160.0100.00916.78
7.4.140.0090.00917.86
7.4.130.0060.01216.77
7.4.120.0120.00616.82
7.4.110.0140.00416.87
7.4.100.0070.01016.71
7.4.90.0110.01116.55
7.4.80.0130.00319.39
7.4.70.0080.00916.85
7.4.60.0090.01516.62
7.4.50.0030.01016.71
7.4.40.0130.00316.76
7.4.00.0110.00815.16
7.3.330.0000.00613.32
7.3.320.0030.00313.38
7.3.310.0050.00316.49
7.3.300.0050.00216.47
7.3.290.0150.00616.37
7.3.280.0060.01116.46
7.3.260.0110.00916.66
7.3.240.0100.01116.64
7.3.230.0100.00716.79
7.3.210.0060.01116.45
7.3.200.0100.00716.65
7.3.190.0080.01116.73
7.3.180.0030.01416.45
7.3.170.0070.01316.64
7.3.160.0110.00816.61
7.3.120.0060.01015.04
7.3.110.0060.01115.12
7.3.100.0050.00915.15
7.3.90.0020.00815.17
7.3.80.0050.00715.10
7.3.70.0040.00914.94
7.3.60.0060.00815.03
7.3.50.0050.00714.92
7.3.40.0070.00514.97
7.3.30.0020.01214.97
7.3.20.0170.00616.28
7.3.10.0180.00416.32
7.3.00.0200.01016.15
7.2.330.0130.00316.68
7.2.320.0100.00716.80
7.2.310.0060.01016.74
7.2.300.0070.01016.89
7.2.290.0090.00616.93
7.2.250.0050.01415.38
7.2.240.0050.01315.00
7.2.230.0040.01215.24
7.2.220.0040.01115.39
7.2.210.0020.01315.38
7.2.200.0070.00515.20
7.2.190.0020.01015.28
7.2.180.0030.00715.23
7.2.170.0030.01115.20
7.2.160.0060.00915.11
7.2.150.0270.00416.10
7.2.140.0200.00516.00
7.2.130.0200.00916.20
7.2.120.0220.00716.11
7.2.110.0260.00916.09
7.2.100.0250.00716.21
7.2.90.0240.01216.23
7.2.80.0190.01216.39
7.2.70.0150.01216.21
7.2.60.0190.00716.25
7.2.50.0170.00816.17
7.2.40.0180.00516.01
7.2.30.0160.01116.34
7.2.20.0190.00716.18
7.2.10.0210.00516.07
7.2.00.0220.00216.28
7.1.330.0100.00415.73
7.1.320.0070.00416.11
7.1.310.0090.00516.04
7.1.300.0060.00516.06
7.1.290.0080.00515.91
7.1.280.0040.00915.99
7.1.270.0070.00516.00
7.1.260.0050.00716.05
7.1.250.0220.00315.05

preferences:
30.05 ms | 403 KiB | 5 Q