3v4l.org

run code in 300+ PHP versions simultaneously
<?php setlocale(LC_ALL, 0); $pattern = '\G(?>\s+|\#[^\n]*)*'; var_dump($pattern); mb_ereg_search_init(' # and a comment'); mb_ereg_search_setpos(0); var_dump(mb_ereg_search($pattern));

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.0150.00016.71
8.3.50.0160.00623.06
8.3.40.0110.00418.79
8.3.30.0090.00618.74
8.3.20.0040.00422.30
8.3.10.0050.00222.02
8.3.00.0000.00819.97
8.2.180.0190.00318.36
8.2.170.0090.00622.96
8.2.160.0130.00321.20
8.2.150.0040.00424.18
8.2.140.0070.00424.66
8.2.130.0040.00422.38
8.2.120.0080.00026.35
8.2.110.0030.00721.13
8.2.100.0080.00318.22
8.2.90.0060.00319.17
8.2.80.0030.00617.97
8.2.70.0030.00617.63
8.2.60.0070.00317.80
8.2.50.0080.00018.10
8.2.40.0000.00722.40
8.2.30.0030.00619.32
8.2.20.0040.00417.67
8.2.10.0000.00718.00
8.2.00.0000.00718.04
8.1.280.0070.01125.92
8.1.270.0000.00823.99
8.1.260.0000.00926.35
8.1.250.0050.00328.09
8.1.240.0030.00719.19
8.1.230.0070.00419.61
8.1.220.0030.00517.91
8.1.210.0050.00318.77
8.1.200.0040.00717.35
8.1.190.0060.00317.25
8.1.180.0030.00618.10
8.1.170.0040.00418.57
8.1.160.0000.00822.29
8.1.150.0060.00320.73
8.1.140.0040.00419.65
8.1.130.0000.00717.87
8.1.120.0040.00417.56
8.1.110.0070.00017.63
8.1.100.0040.00417.58
8.1.90.0080.00017.64
8.1.80.0050.00217.54
8.1.70.0040.00417.41
8.1.60.0040.00417.66
8.1.50.0060.00317.50
8.1.40.0060.00317.46
8.1.30.0030.00517.82
8.1.20.0070.00317.77
8.1.10.0070.00417.65
8.1.00.0060.00317.59
8.0.300.0050.00218.77
8.0.290.0000.00816.73
8.0.280.0030.00318.48
8.0.270.0040.00417.24
8.0.260.0000.00717.28
8.0.250.0030.00416.95
8.0.240.0030.00317.07
8.0.230.0030.00716.90
8.0.220.0030.00317.03
8.0.210.0070.00016.98
8.0.200.0000.00717.07
8.0.190.0040.00417.10
8.0.180.0030.00517.00
8.0.170.0040.00416.99
8.0.160.0000.00817.01
8.0.150.0030.00516.97
8.0.140.0000.00716.93
8.0.130.0000.00613.33
8.0.120.0040.00417.03
8.0.110.0050.00516.91
8.0.100.0070.00016.94
8.0.90.0080.00016.99
8.0.80.0100.00616.99
8.0.70.0020.00516.82
8.0.60.0030.00517.09
8.0.50.0040.00416.88
8.0.30.0050.01217.05
8.0.20.0090.00917.40
8.0.10.0040.00417.09
8.0.00.0070.01016.76
7.4.330.0000.00515.21
7.4.320.0000.00616.61
7.4.300.0030.00316.60
7.4.290.0030.00316.61
7.4.280.0000.00716.48
7.4.270.0030.00616.63
7.4.260.0070.00016.70
7.4.250.0070.00016.69
7.4.240.0000.00816.73
7.4.230.0030.00316.64
7.4.220.0100.01716.58
7.4.210.0060.00916.55
7.4.200.0000.00716.47
7.4.160.0170.00016.53
7.4.150.0040.01517.40
7.4.140.0120.00917.86
7.4.130.0110.00716.57
7.4.120.0120.00916.63
7.4.110.0130.00916.54
7.4.100.0130.00916.36
7.4.90.0130.00316.57
7.4.80.0070.01819.39
7.4.70.0070.01016.46
7.4.60.0070.01116.48
7.4.50.0060.00616.46
7.4.40.0150.00316.41
7.4.30.0030.01416.68
7.4.10.0060.01314.71
7.4.00.0110.00715.06
7.3.330.0050.00013.07
7.3.320.0040.00413.10
7.3.310.0000.00816.14
7.3.300.0080.00016.29
7.3.290.0120.00416.25
7.3.280.0100.00816.26
7.3.270.0060.01217.40
7.3.260.0110.00716.29
7.3.250.0110.00816.27
7.3.240.0080.00816.36
7.3.230.0140.00316.53
7.3.210.0150.00316.41
7.3.200.0090.00616.47
7.3.190.0090.00916.45
7.3.180.0100.01316.39
7.3.170.0130.00916.43
7.3.160.0120.00716.52
7.3.130.0070.01114.83
7.3.120.0080.00914.93
7.3.110.0050.01214.62
7.3.100.0060.00914.84
7.3.90.0110.00514.68
7.3.80.0080.00714.73
7.3.70.0090.00514.78
7.3.60.0060.00514.65
7.3.50.0080.00714.75
7.3.40.0070.00914.59
7.3.30.0080.00714.68
7.3.20.0090.00516.55
7.3.10.0060.00516.49
7.3.00.0070.00716.45
7.2.330.0130.00516.45
7.2.320.0120.00616.57
7.2.310.0110.00616.56
7.2.300.0120.00416.35
7.2.290.0120.00916.54
7.2.260.0100.00715.01
7.2.250.0050.01114.99
7.2.240.0050.01214.96
7.2.230.0060.00814.90
7.2.220.0090.00614.96
7.2.210.0070.01014.79
7.2.200.0010.01314.85
7.2.190.0050.00814.95
7.2.180.0050.00814.82
7.2.170.0020.01114.94
7.2.160.0030.01114.65
7.2.150.0050.00916.70
7.2.140.0090.00316.84
7.2.130.0030.00916.79
7.2.120.0070.00416.69
7.2.110.0050.00816.60
7.2.100.0060.00716.63
7.2.90.0090.00516.50
7.2.80.0050.00816.67
7.2.70.0070.00716.72
7.2.60.0060.01016.80
7.2.50.0100.00416.93
7.2.40.0060.00716.84
7.2.30.0070.00916.77
7.2.20.0080.00716.67
7.2.10.0070.00816.59
7.2.00.0070.00717.44
7.1.330.0100.00615.73
7.1.320.0020.01215.83
7.1.310.0020.01215.79
7.1.300.0050.00815.72
7.1.290.0020.01015.83
7.1.280.0070.00615.63
7.1.270.0060.00615.80
7.1.260.0060.00715.72
7.1.250.0040.00715.69
7.1.240.0050.00715.90
7.1.230.0030.00715.81
7.1.220.0020.01315.73
7.1.210.0060.00415.71
7.1.200.0050.00715.66
7.1.190.0060.00715.68
7.1.180.0080.00315.67
7.1.170.0050.01015.82
7.1.160.0080.00515.77
7.1.150.0030.00915.70
7.1.140.0040.00715.73
7.1.130.0040.00815.74
7.1.120.0060.00815.66
7.1.110.0040.00915.74
7.1.100.0030.01015.79
7.1.90.0030.00915.73
7.1.80.0070.00715.87
7.1.70.0040.01016.07
7.1.60.0040.01016.72
7.1.50.0040.00915.74
7.1.40.0060.00815.82
7.1.30.0060.00515.60
7.1.20.0040.00915.59
7.1.10.0060.00615.57
7.1.00.0030.02717.46
7.0.330.0020.00815.23
7.0.320.0080.00415.40
7.0.310.0070.00615.46
7.0.300.0080.00515.38
7.0.290.0050.00715.39
7.0.280.0030.00815.31
7.0.270.0080.00415.41
7.0.260.0060.00615.24
7.0.250.0030.00815.43
7.0.240.0090.00415.32
7.0.230.0050.00615.43
7.0.220.0040.00715.38
7.0.210.0040.00915.29
7.0.200.0040.00915.15
7.0.190.0020.01015.32
7.0.180.0060.00715.30
7.0.170.0060.00615.32
7.0.160.0050.00715.41
7.0.150.0060.00515.39
7.0.140.0030.01015.25
7.0.130.0070.00915.37
7.0.120.0050.00815.36
7.0.110.0050.00915.37
7.0.100.0050.00715.43
7.0.90.0240.00416.59
7.0.80.0230.00516.58
7.0.70.0260.00416.44
7.0.60.0260.00416.51
7.0.50.0240.00616.69
7.0.40.0220.00515.21
7.0.30.0330.00515.13
7.0.20.0300.00515.20
7.0.10.0250.00815.18
7.0.00.0300.00815.16
5.6.400.0040.00814.16
5.6.390.0070.00514.26
5.6.380.0050.00614.13
5.6.370.0040.00914.24
5.6.360.0050.00914.14
5.6.350.0090.00414.39
5.6.340.0040.00814.40
5.6.330.0060.00914.23
5.6.320.0040.00814.31
5.6.310.0030.00714.19
5.6.300.0070.00214.46
5.6.290.0070.00713.92
5.6.280.0060.00714.31
5.6.270.0030.00714.32
5.6.260.0040.00714.19
5.6.250.0040.00814.15
5.6.240.0320.00316.84
5.6.230.0220.00615.84
5.6.220.0220.00515.80
5.6.210.0240.00415.84
5.6.200.0280.00315.95
5.6.190.0190.00815.91
5.6.180.0250.00615.92
5.6.170.0210.00615.97
5.6.160.0270.00415.86
5.6.150.0290.00415.91
5.6.140.0200.00616.01
5.6.130.0250.00415.90
5.6.120.0220.00615.94
5.6.110.0260.00615.85
5.6.100.0240.00315.88
5.6.90.0220.00615.95
5.6.80.0190.00615.71
5.6.70.0260.00515.63
5.6.60.0270.00415.77
5.6.50.0280.00615.56
5.6.40.0260.00515.73
5.6.30.0260.00515.66
5.6.20.0260.00415.76
5.6.10.0170.00715.83
5.6.00.0200.00715.69

preferences:
60.09 ms | 401 KiB | 5 Q