3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/(?:ID: )(\d+)/m'; $str = 'How many points would you like to add or subtract? (Note: Key a negative number to deduct points) The following user will be updated: ID: 13 Name: Alex Company: Unknown Current Points: 2'; preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0); // Print the entire match result echo $matches[0][1];

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.00822.34
8.4.110.0050.00420.75
8.4.100.0120.00917.95
8.4.90.0040.00620.73
8.4.80.0080.00518.59
8.4.70.0050.00418.92
8.4.60.0130.00719.05
8.4.50.0160.00519.04
8.4.40.0100.01019.45
8.4.30.0030.00619.41
8.4.20.0100.01020.68
8.4.10.0040.01218.77
8.3.250.0110.00817.16
8.3.240.0120.00816.81
8.3.230.0120.00916.77
8.3.220.0110.00819.11
8.3.210.0040.00416.76
8.3.200.0060.00316.52
8.3.190.0100.01018.99
8.3.180.0110.00818.32
8.3.170.0110.00717.27
8.3.160.0130.00616.72
8.3.150.0110.00718.44
8.3.140.0030.00516.62
8.3.130.0030.01318.49
8.3.120.0160.00320.55
8.3.110.0000.00918.50
8.3.100.0000.00918.66
8.3.90.0040.00426.77
8.3.80.0000.01016.75
8.3.70.0100.01316.63
8.3.60.0070.01118.31
8.3.50.0080.00517.47
8.3.40.0160.00318.93
8.3.30.0030.01318.96
8.3.20.0050.00319.33
8.3.10.0070.00023.61
8.3.00.0000.00721.76
8.2.290.0070.00319.03
8.2.280.0150.00418.80
8.2.270.0090.00617.29
8.2.260.0120.00620.40
8.2.250.0030.00616.86
8.2.240.0060.00317.46
8.2.230.0030.00720.94
8.2.220.0080.00024.06
8.2.210.0070.00026.77
8.2.200.0090.00016.63
8.2.190.0070.00716.63
8.2.180.0130.00625.92
8.2.170.0130.00319.07
8.2.160.0090.00622.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0070.00417.75
8.2.110.0030.00619.39
8.2.100.0080.00317.97
8.2.90.0030.00617.88
8.2.80.0050.00319.03
8.2.70.0040.00417.88
8.2.60.0080.00017.93
8.2.50.0030.00718.07
8.2.40.0080.00018.16
8.2.30.0070.00018.14
8.2.20.0040.00418.21
8.2.10.0060.00318.13
8.2.00.0000.00819.41
8.1.330.0120.00716.52
8.1.320.0120.00818.34
8.1.310.0090.00618.66
8.1.300.0110.00718.08
8.1.290.0030.00630.84
8.1.280.0120.00625.92
8.1.270.0040.00424.66
8.1.260.0130.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00619.25
8.1.230.0080.00317.68
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0040.00417.35
8.1.180.0060.00318.10
8.1.170.0000.00718.69
8.1.160.0040.00418.77
8.1.150.0000.00718.77
8.1.140.0040.00422.23
8.1.130.0000.00820.04
8.1.120.0040.00417.46
8.1.110.0070.00017.58
8.1.100.0000.00717.57
8.1.90.0040.00417.43
8.1.80.0060.00317.46
8.1.70.0000.00717.61
8.1.60.0000.00717.55
8.1.50.0000.00817.50
8.1.40.0080.00017.54
8.1.30.0000.01017.71
8.1.20.0030.00617.72
8.1.10.0000.00817.76
8.1.00.0040.00417.68
8.0.300.0070.00018.86
8.0.290.0040.00416.88
8.0.280.0000.00718.45
8.0.270.0000.00717.27
8.0.260.0040.00418.34
8.0.250.0000.00817.00
8.0.240.0030.00517.07
8.0.230.0050.00217.03
8.0.220.0050.00516.98
8.0.210.0050.00316.98
8.0.200.0030.00317.04
8.0.190.0040.00416.90
8.0.180.0050.00317.02
8.0.170.0030.00716.96
8.0.160.0000.00716.89
8.0.150.0000.00816.84
8.0.140.0000.00816.82
8.0.130.0000.00513.39
8.0.120.0040.00416.93
8.0.110.0000.00716.84
8.0.100.0040.00417.04
8.0.90.0040.00417.04
8.0.80.0060.01016.96
8.0.70.0000.00717.06
8.0.60.0040.00416.99
8.0.50.0000.00716.93
8.0.30.0030.01517.45
8.0.20.0150.00517.40
8.0.10.0000.00816.98
8.0.00.0070.01316.71
7.4.330.0000.00516.63
7.4.320.0000.00716.76
7.4.300.0030.00316.80
7.4.290.0070.00016.72
7.4.280.0020.00516.73
7.4.270.0070.00016.76
7.4.260.0030.00316.50
7.4.250.0040.00416.63
7.4.240.0000.00716.69
7.4.230.0000.00716.75
7.4.220.0040.00416.77
7.4.210.0060.00816.69
7.4.200.0050.00216.78
7.4.160.0130.00816.56
7.4.140.0100.01117.86
7.4.130.0090.00816.63
7.4.120.0070.01416.67
7.4.110.0030.01616.53
7.4.100.0110.01116.71
7.4.90.0140.00416.64
7.4.80.0110.01119.39
7.4.70.0100.01116.66
7.4.60.0070.01016.67
7.4.50.0060.00816.63
7.4.40.0120.00916.80
7.4.00.0070.00715.26
7.3.330.0050.00013.20
7.3.320.0030.00313.19
7.3.310.0040.00416.31
7.3.300.0070.00016.23
7.3.290.0030.00316.30
7.3.280.0130.00716.36
7.3.260.0080.01116.54
7.3.240.0090.00816.59
7.3.230.0060.01216.48
7.3.210.0100.00716.57
7.3.200.0070.01016.54
7.3.190.0140.00916.72
7.3.180.0090.00616.29
7.3.170.0150.00616.45
7.3.160.0120.00416.68
7.2.330.0030.01416.46
7.2.320.0100.01016.82
7.2.310.0170.00616.73
7.2.300.0070.01016.64
7.2.290.0040.01316.73
7.2.120.0100.00316.34
7.2.110.0070.00716.37
7.2.100.0110.00416.50
7.2.90.0130.00316.58
7.2.80.0030.01716.21
7.2.70.0070.00716.60
7.2.60.0100.00716.72
7.2.50.0090.00616.81
7.2.40.0090.00916.39
7.2.30.0100.00717.09
7.2.20.0070.00716.64
7.2.10.0100.00517.00
7.2.00.0110.00616.82
7.1.240.0070.00715.78
7.1.230.0000.01815.63
7.1.220.0080.00515.66
7.1.210.0050.00815.98
7.1.200.0030.01015.77
7.1.190.0030.01015.98
7.1.180.0000.01315.57
7.1.170.0030.00915.80
7.1.160.0060.00615.87
7.1.150.0070.00415.72
7.1.140.0090.00415.75
7.1.130.0090.00615.87
7.1.120.0040.01115.50
7.1.110.0030.00916.04
7.1.100.0090.00916.07
7.1.90.0070.00716.02
7.1.80.0160.00015.85
7.1.70.0000.01515.84
7.1.60.0120.00415.89
7.1.50.0060.00616.00
7.1.40.0080.00815.63
7.1.30.0000.01515.49
7.1.20.0030.01015.74
7.1.10.0040.01115.93
7.1.00.0090.00315.77
5.6.380.0000.01613.76

preferences:
27.95 ms | 403 KiB | 5 Q