3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match("#[\w()-]#", 'some text'); // ok preg_match("#[-\w()]#", 'some text'); // ok preg_match("#[\w-()]#", 'some text'); // NOPE! preg_match("#[\w(-)]#", 'some text'); // ok

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.0140.00520.32
8.4.110.0100.00922.47
8.4.100.0050.00618.06
8.4.90.0050.00719.69
8.4.80.0050.00417.91
8.4.70.0130.00717.83
8.4.60.0060.00318.61
8.4.50.0070.00418.14
8.4.40.0140.00719.64
8.4.30.0100.01019.55
8.4.20.0130.00720.36
8.4.10.0000.00917.95
8.3.250.0120.00818.96
8.3.240.0100.01116.72
8.3.230.0130.00616.74
8.3.220.0060.00317.22
8.3.210.0110.00716.93
8.3.200.0110.00516.77
8.3.190.0100.01016.95
8.3.180.0050.00416.98
8.3.170.0120.00316.67
8.3.160.0120.00616.80
8.3.150.0130.00718.91
8.3.140.0000.00818.98
8.3.130.0080.00018.80
8.3.120.0050.00318.61
8.3.110.0040.00420.94
8.3.100.0030.00718.70
8.3.90.0040.00426.77
8.3.80.0000.00916.63
8.3.70.0090.00717.71
8.3.60.0150.00518.26
8.3.50.0090.00917.72
8.3.40.0140.00818.60
8.3.30.0130.01018.53
8.3.20.0080.01021.13
8.3.10.0110.01021.07
8.3.00.0150.00720.12
8.2.290.0110.00920.45
8.2.280.0120.00718.37
8.2.270.0130.00716.67
8.2.260.0000.00818.92
8.2.250.0070.01116.78
8.2.240.0040.00417.14
8.2.230.0080.00022.58
8.2.220.0040.00424.06
8.2.210.0080.00026.77
8.2.200.0050.00518.66
8.2.190.0190.01117.27
8.2.180.0240.00721.95
8.2.170.0340.00618.42
8.2.160.0240.00420.34
8.2.150.0200.00220.39
8.2.140.0100.00620.95
8.2.130.0130.00321.51
8.2.120.0120.00519.44
8.2.110.0100.00820.25
8.2.100.0140.00618.94
8.2.90.0170.00718.96
8.2.80.0160.00718.72
8.2.70.0190.00718.47
8.2.60.0180.00818.50
8.2.50.0180.00418.74
8.2.40.0160.00618.50
8.2.30.0130.00518.47
8.2.20.0160.00718.42
8.2.10.0160.00818.87
8.2.00.0150.00518.72
8.1.330.0110.00917.98
8.1.320.0130.00616.46
8.1.310.0030.00616.59
8.1.300.0120.00619.93
8.1.290.0050.00530.84
8.1.280.0130.00721.95
8.1.270.0100.00521.55
8.1.260.0130.00422.11
8.1.250.0120.00422.74
8.1.240.0120.00919.18
8.1.230.0150.00718.99
8.1.220.0140.00518.34
8.1.210.0130.00719.13
8.1.200.0150.00518.27
8.1.190.0130.00518.16
8.1.180.0130.00518.15
8.1.170.0100.00718.45
8.1.160.0110.00618.43
8.1.150.0150.00419.42
8.1.140.0150.00319.06
8.1.130.0150.00418.71
8.1.120.0120.00618.33
8.1.110.0110.00818.27
8.1.100.0120.00718.49
8.1.90.0120.00518.25
8.1.80.0160.00618.46
8.1.70.0120.00318.04
8.1.60.0160.00518.39
8.1.50.0150.00618.29
8.1.40.0140.00718.32
8.1.30.0110.00518.55
8.1.20.0130.00618.41
8.1.10.0150.00618.17
8.1.00.0140.00518.15
8.0.300.0130.00718.01
8.0.290.0120.00733.14
8.0.280.0150.00517.95
8.0.270.0150.00617.78
8.0.260.0140.00617.93
8.0.250.0140.00517.75
8.0.240.0160.00317.74
8.0.230.0160.00717.90
8.0.220.0190.00517.73
8.0.210.0170.00717.70
8.0.200.0250.00517.79
8.0.190.0210.00417.75
8.0.180.0170.00417.78
8.0.170.0160.00817.83
8.0.160.0220.00617.77
8.0.150.0170.00717.76
8.0.140.0150.00617.55
8.0.130.0170.00317.24
8.0.120.0140.00617.56
8.0.110.0150.00617.71
8.0.100.0180.00617.59
8.0.90.0140.00517.64
8.0.80.0170.00917.51
8.0.70.0170.00617.64
8.0.60.0170.00417.47
8.0.50.0190.00617.59
8.0.30.0160.00717.47
8.0.20.0200.00817.53
8.0.10.0190.00817.66
8.0.00.0130.00718.20
7.4.330.0150.00231.52
7.4.320.0120.00417.50
7.4.300.0090.00517.21
7.4.290.0110.00617.48
7.4.280.0170.00617.42
7.4.270.0170.00317.32
7.4.260.0140.00617.33
7.4.250.0150.00517.35
7.4.240.0110.00617.29
7.4.230.0120.00617.32
7.4.220.0130.00317.30
7.4.210.0140.00517.19
7.4.200.0120.00517.31
7.4.190.0170.00617.50
7.4.180.0140.00517.51
7.4.160.0120.00717.07
7.4.150.0140.00817.27
7.4.140.0150.00617.43
7.4.130.0180.00717.09
7.4.120.0180.00317.06
7.4.110.0200.00517.09
7.4.100.0220.00517.19
7.4.90.0210.00617.04
7.4.80.0220.01017.40
7.4.70.0210.00817.08
7.4.60.0220.00717.10
7.4.50.0220.00717.00
7.4.40.0200.00817.00
7.4.30.0190.00617.15
7.4.20.0190.00617.10
7.4.10.0210.00717.03
7.4.00.0150.00516.88
7.3.330.0110.00416.60
7.3.320.0170.00616.61
7.3.310.0170.00617.09
7.3.300.0170.00717.09
7.3.290.0210.00717.09
7.3.280.0170.00716.79
7.3.270.0200.00816.95
7.3.260.0170.00616.78
7.3.250.0200.00716.99
7.3.240.0180.00716.75
7.3.230.0210.00616.82
7.3.220.0230.00716.88
7.3.210.0250.00816.82
7.3.200.0240.00816.80
7.3.190.0220.00916.90
7.3.180.0210.01016.84
7.3.170.0210.01016.86
7.3.160.0240.00516.84
7.3.150.0230.00716.91
7.3.140.0200.00816.89
7.3.130.0240.00516.94
7.3.120.0250.00616.92
7.3.110.0210.00616.88
7.3.100.0230.00616.86
7.3.90.0220.00717.21
7.3.80.0210.00816.93
7.3.70.0160.00616.94
7.3.60.0210.00516.96
7.3.50.0170.00716.77
7.3.40.0220.00616.74
7.3.30.0180.00816.81
7.3.20.0220.00517.61
7.3.10.0220.00817.58
7.3.00.0160.00717.49
7.2.340.0160.00717.33
7.2.330.0210.00817.01
7.2.320.0210.00716.97
7.2.310.0190.01017.06
7.2.300.0220.00716.99
7.2.290.0230.00616.97
7.2.280.0220.00716.99
7.2.270.0210.00517.07
7.2.260.0220.00617.09
7.2.250.0220.00717.09
7.2.240.0200.00716.81
7.2.230.0250.00517.01
7.2.220.0220.00716.93
7.2.210.0220.00717.06
7.2.200.0220.00717.08
7.2.190.0230.00617.15
7.2.180.0200.00516.87
7.2.170.0200.00416.90
7.2.160.0180.00616.89
7.2.150.0210.00717.68
7.2.140.0200.00717.72
7.2.130.0240.00417.49
7.2.120.0220.00917.42
7.2.110.0230.00717.39
7.2.100.0280.00617.44
7.2.90.0210.00417.53
7.2.80.0220.00617.53
7.2.70.0240.00717.47
7.2.60.0240.00617.47
7.2.50.0220.00717.46
7.2.40.0260.00617.46
7.2.30.0200.00617.51
7.2.20.0230.00517.48
7.2.10.0240.00717.45
7.2.00.0220.00617.50
7.1.330.0190.00516.95
7.1.320.0180.00616.91
7.1.310.0160.00616.90
7.1.300.0180.00416.83
7.1.290.0170.00716.95
7.1.280.0210.00616.73
7.1.270.0190.00516.86
7.1.260.0190.00416.73
7.1.250.0200.00716.47
7.1.240.0180.00516.85
7.1.230.0200.00516.91
7.1.220.0170.00616.87
7.1.210.0200.00816.93
7.1.200.0230.00616.85
7.1.190.0230.00516.81
7.1.180.0220.00516.80
7.1.170.0190.00717.24
7.1.160.0220.00516.97
7.1.150.0210.00716.86
7.1.140.0220.00616.88
7.1.130.0210.00616.92
7.1.120.0240.00716.88
7.1.110.0250.00616.92
7.1.100.0230.00416.98
7.1.90.0220.00616.92
7.1.80.0170.00816.98
7.1.70.0170.00716.73
7.1.60.0180.00717.00
7.1.50.0180.00617.04
7.1.40.0190.00516.92
7.1.30.0200.00517.02
7.1.20.0180.00716.90
7.1.10.0200.00716.89
7.1.00.0200.00716.83
7.0.330.0190.00716.18
7.0.320.0210.00516.69
7.0.310.0220.00516.66
7.0.300.0200.00616.67
7.0.290.0200.00716.70
7.0.280.0190.00716.67
7.0.270.0200.00616.64
7.0.260.0180.00616.61
7.0.250.0200.00516.72
7.0.240.0240.00816.76
7.0.230.0310.00416.72
7.0.220.0220.00516.67
7.0.210.0180.00816.67
7.0.200.0210.00516.68
7.0.190.0200.00416.58
7.0.180.0160.00616.71
7.0.170.0170.00416.70
7.0.160.0150.00516.61
7.0.150.0150.00516.58
7.0.140.0140.00716.55
7.0.130.0170.00516.71
7.0.120.0200.00316.72
7.0.110.0170.00516.76
7.0.100.0150.00616.67
7.0.90.0190.00616.52
7.0.80.0200.00616.63
7.0.70.0210.00416.58
7.0.60.0190.00816.48
7.0.50.0200.00716.50
7.0.40.0180.00916.63
7.0.30.0190.00516.64
7.0.20.0220.00616.77
7.0.10.0260.00416.82
7.0.00.0180.00816.79
5.6.400.0170.01016.19
5.6.390.0190.00716.17
5.6.380.0180.00716.03
5.6.370.0190.00716.37
5.6.360.0220.00616.36
5.6.350.0210.00516.38
5.6.340.0180.00516.43
5.6.330.0170.00516.37
5.6.320.0160.00416.38
5.6.310.0170.00616.41
5.6.300.0140.00816.30
5.6.290.0150.00616.46
5.6.280.0160.00616.37
5.6.270.0160.00516.37
5.6.260.0160.00816.48
5.6.250.0160.00516.41
5.6.240.0140.00616.48
5.6.230.0130.00616.41
5.6.220.0140.00616.45
5.6.210.0150.00916.42
5.6.200.0170.00616.64
5.6.190.0170.00616.61
5.6.180.0150.00516.58
5.6.170.0120.00716.63
5.6.160.0150.00516.59
5.6.150.0150.00816.61
5.6.140.0160.00516.54
5.6.130.0140.00616.52
5.6.120.0140.00716.51
5.6.110.0170.00816.51
5.6.100.0160.00716.38
5.6.90.0140.00716.39
5.6.80.0160.00616.47
5.6.70.0160.00616.53
5.6.60.0140.00616.54
5.6.50.0150.00616.43
5.6.40.0140.00516.44
5.6.30.0150.00616.41
5.6.20.0150.00716.36
5.6.10.0150.00716.39
5.6.00.0180.00616.35

preferences:
30.03 ms | 403 KiB | 5 Q