3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/(\d\.?)+/'; $str = '2.1.0'; preg_match($re, $str, $matches, PREG_OFFSET_CAPTURE, 0); // Print the entire match result var_dump($matches);

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.60.0170.00716.48
8.3.50.0170.00316.64
8.3.40.0120.00318.59
8.3.30.0070.00718.61
8.3.20.0040.00420.16
8.3.10.0050.00223.65
8.3.00.0070.00023.65
8.2.180.0090.00618.38
8.2.170.0140.00722.96
8.2.160.0070.00719.16
8.2.150.0070.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0080.00020.71
8.2.110.0090.00020.52
8.2.100.0040.00817.91
8.2.90.0060.00318.09
8.2.80.0000.00818.92
8.2.70.0050.00317.63
8.2.60.0000.00817.63
8.2.50.0050.00317.80
8.2.40.0000.00819.82
8.2.30.0000.00821.06
8.2.20.0050.00218.07
8.2.10.0040.00417.89
8.2.00.0000.00718.05
8.1.280.0070.00725.92
8.1.270.0000.00821.83
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0050.00522.24
8.1.230.0040.00820.83
8.1.220.0000.00817.74
8.1.210.0040.00418.82
8.1.200.0060.00317.35
8.1.190.0000.00817.22
8.1.180.0090.00018.10
8.1.170.0040.00417.62
8.1.160.0040.00418.84
8.1.150.0040.00418.71
8.1.140.0000.00717.61
8.1.130.0060.00317.44
8.1.120.0000.00717.57
8.1.110.0040.00417.48
8.1.100.0050.00517.38
8.1.90.0100.00017.56
8.1.80.0040.00417.53
8.1.70.0000.00717.47
8.1.60.0000.00717.61
8.1.50.0050.00317.54
8.1.40.0070.00017.54
8.1.30.0040.00417.73
8.1.20.0030.00617.79
8.1.10.0040.00417.51
8.1.00.0000.00817.47
8.0.300.0000.00820.13
8.0.290.0000.00716.88
8.0.280.0030.00318.40
8.0.270.0030.00516.82
8.0.260.0030.00316.95
8.0.250.0060.00016.92
8.0.240.0000.00717.07
8.0.230.0000.00717.03
8.0.220.0060.00017.02
8.0.210.0070.00016.92
8.0.200.0040.00416.92
8.0.190.0000.00717.02
8.0.180.0000.00817.00
8.0.170.0040.00416.95
8.0.160.0040.00416.92
8.0.150.0000.00816.79
8.0.140.0000.00716.93
8.0.130.0000.00613.39
8.0.120.0040.00416.94
8.0.110.0000.00716.96
8.0.100.0050.00316.84
8.0.90.0040.00417.08
8.0.80.0110.01117.00
8.0.70.0040.00416.85
8.0.60.0000.00816.78
8.0.50.0070.00016.95
8.0.30.0120.00617.13
8.0.20.0110.01017.40
8.0.10.0040.00416.96
8.0.00.0110.00716.86
7.4.330.0000.00516.68
7.4.320.0030.00316.63
7.4.300.0000.00616.66
7.4.290.0030.00316.68
7.4.280.0030.00516.64
7.4.270.0000.00716.57
7.4.260.0070.00016.66
7.4.250.0040.00416.61
7.4.240.0070.00016.65
7.4.230.0000.00716.80
7.4.220.0140.00316.84
7.4.210.0040.01716.71
7.4.200.0080.00016.74
7.4.160.0090.00516.52
7.4.150.0160.00917.40
7.4.140.0110.00817.86
7.4.130.0100.01516.57
7.4.120.0080.01116.63
7.4.110.0170.00016.71
7.4.100.0170.00716.73
7.4.90.0110.00616.62
7.4.80.0150.00319.39
7.4.70.0120.00616.60
7.4.60.0110.01116.46
7.4.50.0120.00316.52
7.4.40.0090.00616.53
7.4.30.0030.01316.44
7.4.10.0000.01414.73
7.4.00.0080.00814.84
7.3.330.0050.00013.16
7.3.320.0000.00513.00
7.3.310.0000.00816.37
7.3.300.0030.00316.32
7.3.290.0070.00816.29
7.3.280.0070.01016.30
7.3.270.0100.00717.40
7.3.260.0100.00916.41
7.3.250.0130.00616.48
7.3.240.0060.01316.29
7.3.230.0100.00716.30
7.3.210.0120.00416.51
7.3.200.0100.00616.21
7.3.190.0160.00016.60
7.3.180.0070.01416.52
7.3.170.0110.01116.46
7.3.160.0160.00016.55
7.3.130.0070.01114.79
7.3.120.0090.00915.13
7.3.110.0030.01314.80
7.3.100.0110.00415.03
7.3.90.0080.00914.80
7.3.80.0000.00914.76
7.3.70.0000.00914.89
7.3.60.0000.01314.89
7.3.50.0070.01014.90
7.3.40.0000.00914.96
7.3.30.0070.01014.80
7.3.20.0030.01016.84
7.3.10.0030.01016.53
7.3.00.0080.00716.75
7.2.330.0090.00916.52
7.2.320.0080.00816.57
7.2.310.0120.01216.37
7.2.300.0060.01216.42
7.2.290.0090.00916.56
7.2.260.0040.01114.87
7.2.250.0030.01515.00
7.2.240.0040.01114.98
7.2.230.0090.00315.17
7.2.220.0160.00014.66
7.2.210.0030.00915.12
7.2.200.0030.00615.12
7.2.190.0040.01215.26
7.2.180.0100.00715.13
7.2.170.0040.01114.91
7.2.160.0090.00614.90
7.2.150.0090.00616.80
7.2.140.0100.00616.95
7.2.130.0080.00516.90
7.2.120.0030.01216.66
7.2.110.0020.00816.75
7.2.100.0060.00716.80
7.2.90.0020.01117.00
7.2.80.0050.00716.94
7.2.70.0050.00917.04
7.2.60.0060.00916.84
7.2.50.0050.00616.98
7.2.40.0070.00916.98
7.2.30.0020.01316.86
7.2.20.0050.00716.83
7.2.10.0080.00816.82
7.2.00.0050.01016.90
7.1.330.0030.01015.87
7.1.320.0070.00315.97
7.1.310.0000.01315.54
7.1.300.0060.01315.88
7.1.290.0030.01615.63
7.1.280.0120.00315.76
7.1.270.0090.00615.89
7.1.260.0060.00316.08
7.1.250.0000.01215.80
7.1.240.0070.00715.85
7.1.230.0000.01415.99
7.1.220.0040.00415.91
7.1.210.0000.01515.95
7.1.200.0000.01315.97
7.1.190.0000.01016.03
7.1.180.0080.00416.05
7.1.170.0060.00615.86
7.1.160.0100.00716.09
7.1.150.0110.00415.82
7.1.140.0040.01216.07
7.1.130.0030.00915.93
7.1.120.0060.00615.59
7.1.110.0150.01215.99
7.1.100.0100.01416.28
7.1.90.0450.01316.08
7.1.80.0220.00716.17
7.1.70.0200.00715.70
7.1.60.0260.00324.47
7.1.50.0190.01424.37
7.1.40.0150.01224.32
7.1.30.0180.00824.31
7.1.20.0240.00724.39
7.1.10.0210.00515.37
7.1.00.0120.00715.49
7.0.330.0000.00815.48
7.0.320.0000.01015.35
7.0.310.0100.00315.76
7.0.300.0030.00915.48
7.0.290.0030.00915.71
7.0.280.0100.00315.58
7.0.270.0040.01115.34
7.0.260.0060.00615.67
7.0.250.0200.00515.84
7.0.240.0150.01015.73
7.0.230.0110.01115.95
7.0.220.0200.00115.71
7.0.210.0180.00615.19
7.0.200.0130.01215.20
7.0.190.0120.00915.19
7.0.180.0090.01015.15
7.0.170.0150.00714.92
7.0.160.0160.00914.96
7.0.150.0150.00614.86
7.0.140.0170.00215.11
7.0.130.0120.00915.18
7.0.120.0160.00615.25
7.0.110.0130.01214.94
7.0.100.0090.01314.96
7.0.90.0130.01215.01
7.0.80.0510.00815.24
7.0.70.0180.00815.01
7.0.60.0130.01314.93
7.0.50.0120.01114.94
7.0.40.0130.00514.22
7.0.30.0110.00714.23
7.0.20.0140.01014.20
7.0.10.0180.00714.05
7.0.00.0250.00514.20
5.6.400.0030.00914.42
5.6.390.0090.00614.11
5.6.380.0030.01014.08
5.6.370.0080.00314.31
5.6.360.0000.00814.26
5.6.350.0120.00414.03
5.6.340.0070.01013.96
5.6.330.0090.00614.39
5.6.320.0110.00314.20
5.6.310.0040.01113.82
5.6.300.0060.00314.19
5.6.290.0070.01014.41
5.6.280.0090.00013.91
5.6.270.0060.01214.45
5.6.260.0000.01514.23
5.6.250.0070.00714.21
5.6.240.0040.00914.41
5.6.230.0100.00314.34
5.6.220.0000.01614.36
5.6.210.0070.01014.16
5.6.200.0100.00714.29
5.6.190.0030.01214.36
5.6.180.0130.00014.19
5.6.170.0140.00014.13
5.6.160.0040.00414.24
5.6.150.0000.01514.30
5.6.140.0070.00714.03
5.6.130.0110.00314.34
5.6.120.0030.01014.52
5.6.110.0000.00914.15
5.6.100.0030.00614.46
5.6.90.0070.00314.50
5.6.80.0070.00714.13
5.6.70.0030.01014.02
5.6.60.0000.01414.37
5.6.50.0060.00913.93
5.6.40.0070.00313.95
5.6.30.0130.00314.49
5.6.20.0060.00814.29
5.6.10.0040.01114.05
5.6.00.0070.00714.16

preferences:
36.08 ms | 400 KiB | 5 Q