3v4l.org

run code in 300+ PHP versions simultaneously
<?php # The problem, hyphen use within class in incorrect position. var_dump(preg_match('~[0-9\w-.]*~', '')); # The fix, or we escape the hyphen or we put it last var_dump(preg_match('~[0-9\w\-.]*~', '')); var_dump(preg_match('~[0-9\w-.-]*~', ''));

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.0030.01418.55
8.3.50.0080.01117.39
8.3.40.0120.00619.09
8.3.30.0120.00419.01
8.3.20.0000.00721.95
8.3.10.0080.00021.90
8.3.00.0030.00521.85
8.2.180.0070.00716.61
8.2.170.0120.00322.96
8.2.160.0100.00320.37
8.2.150.0080.00024.18
8.2.140.0050.00224.66
8.2.130.0040.00821.97
8.2.120.0040.00426.35
8.2.110.0110.00022.42
8.2.100.0080.00417.84
8.2.90.0090.00017.75
8.2.80.0040.00418.94
8.2.70.0030.00617.93
8.2.60.0040.00417.75
8.2.50.0000.00818.10
8.2.40.0000.00919.18
8.2.30.0000.00820.57
8.2.20.0040.00417.86
8.2.10.0040.00419.01
8.2.00.0000.00717.95
8.1.280.0150.00625.92
8.1.270.0080.00021.98
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0060.00321.97
8.1.230.0090.00319.17
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0090.00317.36
8.1.190.0050.00317.23
8.1.180.0050.00218.10
8.1.170.0040.00418.71
8.1.160.0070.00018.79
8.1.150.0050.00318.82
8.1.140.0040.00418.78
8.1.130.0070.00020.33
8.1.120.0050.00217.41
8.1.110.0040.00417.43
8.1.100.0000.00917.46
8.1.90.0030.00617.50
8.1.80.0040.00417.43
8.1.70.0030.00617.42
8.1.60.0060.00317.48
8.1.50.0040.00417.54
8.1.40.0080.00017.42
8.1.30.0080.00017.67
8.1.20.0000.00917.65
8.1.10.0080.00017.58
8.1.00.0000.00817.38
8.0.300.0070.00019.87
8.0.290.0050.00316.75
8.0.280.0070.00018.33
8.0.270.0000.00717.18
8.0.260.0040.00418.41
8.0.250.0040.00417.00
8.0.240.0070.00017.05
8.0.230.0040.00716.97
8.0.220.0040.00417.02
8.0.210.0030.00316.96
8.0.200.0070.00016.98
8.0.190.0040.00417.00
8.0.180.0000.00817.10
8.0.170.0050.00317.10
8.0.160.0000.00717.04
8.0.150.0040.00416.95
8.0.140.0070.00016.96
8.0.130.0000.00513.49
8.0.120.0040.00416.97
8.0.110.0040.00416.85
8.0.100.0030.00517.02
8.0.90.0040.00417.08
8.0.80.0120.00616.94
8.0.70.0000.00817.02
8.0.60.0050.00217.09
8.0.50.0030.00516.83
8.0.30.0100.01017.07
8.0.20.0050.01417.14
8.0.10.0070.00016.96
8.0.00.0090.01316.74
7.4.330.0020.00215.55
7.4.320.0030.00316.43
7.4.300.0000.00716.72
7.4.290.0020.00516.48
7.4.280.0000.00816.59
7.4.270.0030.00316.50
7.4.260.0040.00416.70
7.4.250.0070.00016.63
7.4.240.0000.00816.73
7.4.230.0070.00016.61
7.4.220.0000.00816.78
7.4.210.0090.00916.69
7.4.200.0030.00316.76
7.4.160.0100.00616.58
7.4.140.0110.01217.86
7.4.130.0080.00816.42
7.4.120.0060.01316.54
7.4.110.0130.00316.48
7.4.100.0120.00616.52
7.4.90.0090.00916.61
7.4.80.0130.00919.39
7.4.70.0060.01216.61
7.4.60.0090.00616.71
7.4.50.0070.00716.35
7.4.40.0070.01016.51
7.4.10.0060.01215.21
7.4.00.0040.01315.10
7.3.330.0000.00513.23
7.3.320.0050.00013.34
7.3.310.0030.00316.39
7.3.300.0030.00316.28
7.3.290.0040.00416.32
7.3.280.0050.01016.35
7.3.260.0100.00916.50
7.3.240.0050.01216.48
7.3.230.0110.01016.65
7.3.210.0090.00916.65
7.3.200.0070.01316.40
7.3.190.0100.00616.33
7.3.180.0060.00916.36
7.3.170.0100.01316.47
7.3.160.0140.00316.38
7.3.130.0090.00915.05
7.3.120.0000.01715.08
7.3.110.0150.00314.95
7.3.100.0080.00614.89
7.3.90.0090.00614.83
7.3.80.0070.00714.70
7.3.70.0040.00814.83
7.3.60.0070.00714.53
7.3.50.0040.01114.81
7.3.40.0120.00714.76
7.3.30.0080.00814.78
7.3.20.0090.01016.57
7.3.10.0080.00616.72
7.3.00.0120.00016.75
7.2.330.0140.00316.61
7.2.320.0060.01016.51
7.2.310.0100.01016.64
7.2.300.0070.01016.63
7.2.290.0060.01616.66
7.2.260.0100.01015.09
7.2.250.0030.01614.73
7.2.240.0060.01215.01
7.2.230.0060.00614.93
7.2.220.0030.01015.05
7.2.210.0030.00615.07
7.2.200.0060.01014.96
7.2.190.0130.00615.19
7.2.180.0060.00314.79
7.2.170.0020.01315.06
7.2.160.0070.01314.94
7.2.150.0100.00516.90
7.2.140.0110.00216.67
7.2.130.0110.00616.97
7.2.120.0070.01016.79
7.2.110.0080.01316.76
7.2.100.0120.01016.76
7.2.90.0050.01016.77
7.2.80.0040.00816.93
7.2.70.0120.00816.86
7.2.60.0120.01216.88
7.2.50.0100.01016.88
7.2.40.0140.00316.85
7.2.30.0110.00616.76
7.2.20.0070.01216.98
7.2.10.0150.01016.90
7.2.00.0090.00816.84
7.1.330.0130.00315.86
7.1.320.0100.00316.02
7.1.310.0080.00615.86
7.1.300.0150.00315.82
7.1.290.0060.00615.98
7.1.280.0120.00815.70
7.1.270.0050.00715.96
7.1.260.0070.01015.81
7.1.250.0050.01415.59
7.1.240.0100.00715.74
7.1.230.0100.00715.80
7.1.220.0100.00315.68
7.1.210.0100.00316.02
7.1.200.0050.00515.55
7.1.190.0070.01115.70
7.1.180.0090.00915.56
7.1.170.0110.00315.71
7.1.160.0070.01015.91
7.1.150.0100.00715.66
7.1.140.0110.00015.79
7.1.130.0040.00815.89
7.1.120.0060.00315.84
7.1.110.0060.00615.91
7.1.100.0040.00816.00
7.1.90.0000.01315.86
7.1.80.0080.00815.85
7.1.70.0030.01015.86
7.1.60.0060.00615.58
7.1.50.0090.00315.88
7.1.40.0060.00615.67
7.1.30.0040.01115.91
7.1.20.0070.00715.88
7.1.10.0070.00715.62
7.1.00.0050.00315.70

preferences:
67.87 ms | 401 KiB | 5 Q