3v4l.org

run code in 300+ PHP versions simultaneously
<?php $not_allowed_symbols = '[^a-z0-9:;,!\'\s*.?()"-]'; //$letter = nl2br("aaa\nbbb\nccc"); $letter = "aaa\nbbb\nccc"; //print_r($letter); if(preg_match("/$not_allowed_symbols/i", $letter)){ echo "There are not allowed symbols in the text"; }else{ echo "There are allowed symbols in the text"; }

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.0140.00018.56
8.3.50.0110.01022.17
8.3.40.0070.00719.02
8.3.30.0110.00318.79
8.3.20.0100.00320.26
8.3.10.0040.00422.00
8.3.00.0040.00420.64
8.2.180.0090.01216.50
8.2.170.0030.01222.96
8.2.160.0120.00319.22
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0090.00626.16
8.2.120.0050.00319.66
8.2.110.0060.00320.33
8.2.100.0120.00017.84
8.2.90.0080.00019.21
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0000.00817.92
8.2.50.0070.00318.07
8.2.40.0030.00618.26
8.2.30.0060.00318.14
8.2.20.0000.00717.86
8.2.10.0050.00217.89
8.2.00.0090.00017.75
8.1.280.0070.00725.92
8.1.270.0090.00020.47
8.1.260.0050.00226.35
8.1.250.0000.00828.09
8.1.240.0090.00023.91
8.1.230.0050.00520.91
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0040.00417.41
8.1.180.0060.00318.59
8.1.170.0070.00318.45
8.1.160.0040.00422.17
8.1.150.0070.00318.69
8.1.140.0000.00717.48
8.1.130.0000.00817.90
8.1.120.0000.00717.56
8.1.110.0040.00717.56
8.1.100.0000.00717.54
8.1.90.0000.00817.43
8.1.80.0040.00417.53
8.1.70.0070.00017.48
8.1.60.0000.00917.68
8.1.50.0020.00517.64
8.1.40.0040.00417.51
8.1.30.0030.00617.68
8.1.20.0000.00817.63
8.1.10.0050.00317.73
8.1.00.0050.00317.57
8.0.300.0080.00018.77
8.0.290.0070.00017.05
8.0.280.0030.00318.38
8.0.270.0030.00317.30
8.0.260.0000.00716.96
8.0.250.0000.00717.00
8.0.240.0030.00617.07
8.0.230.0000.00717.00
8.0.220.0000.00716.93
8.0.210.0070.00017.05
8.0.200.0040.00417.06
8.0.190.0030.00317.10
8.0.180.0040.00417.01
8.0.170.0030.00617.07
8.0.160.0040.00417.15
8.0.150.0030.00316.95
8.0.140.0000.00717.02
8.0.130.0030.00313.47
8.0.120.0040.00416.97
8.0.110.0000.00717.00
8.0.100.0080.00017.04
8.0.90.0050.00217.09
8.0.80.0090.01217.05
8.0.70.0070.00016.91
8.0.60.0000.00716.98
8.0.50.0000.00717.09
8.0.30.0170.00517.17
8.0.20.0110.01117.40
8.0.10.0020.00517.21
8.0.00.0090.00817.03
7.4.330.0000.00615.00
7.4.320.0030.00316.76
7.4.300.0040.00416.80
7.4.290.0030.00316.64
7.4.280.0030.00616.73
7.4.270.0030.00316.70
7.4.260.0000.01116.63
7.4.250.0040.00416.72
7.4.240.0030.00416.62
7.4.230.0030.00316.50
7.4.220.0060.01216.78
7.4.210.0090.00816.68
7.4.200.0040.00416.77
7.4.190.0080.00016.91
7.4.160.0110.01116.48
7.4.150.0100.00717.40
7.4.140.0100.01017.86
7.4.130.0030.01416.58
7.4.120.0030.01416.81
7.4.110.0070.01016.62
7.4.100.0130.01016.72
7.4.90.0160.00316.56
7.4.80.0120.00619.39
7.4.70.0100.00716.67
7.4.60.0140.00916.60
7.4.50.0040.00416.36
7.4.40.0070.00722.77
7.4.30.0140.01116.66
7.4.00.0070.00714.88
7.3.330.0030.00313.13
7.3.320.0050.00013.23
7.3.310.0000.00816.40
7.3.300.0060.00016.26
7.3.290.0060.01316.29
7.3.280.0040.01116.40
7.3.270.0080.00817.40
7.3.260.0130.01316.74
7.3.250.0100.00716.53
7.3.240.0150.00316.32
7.3.230.0030.01416.39
7.3.210.0140.00316.48
7.3.200.0090.00619.39
7.3.190.0090.00916.32
7.3.180.0000.01616.67
7.3.170.0180.00316.45
7.3.160.0120.00416.30
7.3.120.0060.00914.58
7.2.330.0070.01016.74
7.2.320.0070.01716.68
7.2.310.0070.00916.45
7.2.300.0070.01016.70
7.2.290.0060.01616.79
7.2.60.0000.01316.79
7.2.00.0030.01319.07
7.1.200.0030.01015.72
7.1.100.0110.00418.32
7.1.70.0060.00317.19
7.1.60.0090.01619.82
7.1.50.0040.01117.06
7.1.00.0030.03322.46
7.0.200.0040.00916.89
7.0.140.0070.07022.21
7.0.60.0070.05019.86
7.0.50.0100.07017.89
7.0.40.0070.04320.00
7.0.30.0230.04320.19
7.0.20.0330.04320.10
7.0.10.0130.04720.05
7.0.00.0070.05020.21
5.6.280.0000.07720.89
5.6.210.0100.08320.69
5.6.200.0070.03718.18
5.6.190.0130.06320.35
5.6.180.3430.04320.41
5.6.170.0300.05720.48
5.6.160.0100.08320.46
5.6.150.0030.09318.13
5.6.140.0030.08718.11
5.6.130.0200.06318.18
5.6.120.0100.08321.14
5.6.110.0000.04320.99
5.6.100.0000.04721.13
5.6.90.0070.04321.09
5.6.80.0200.07320.37
5.6.70.0200.08020.50
5.5.350.0170.05020.44
5.5.340.0070.08017.91
5.5.330.0030.04020.43
5.5.320.0270.06720.34
5.5.310.0170.04020.41
5.5.300.0070.05318.02
5.5.290.0100.04717.98
5.5.280.0070.03720.77
5.5.270.0030.04320.75
5.5.260.0070.04020.86
5.5.250.0100.04720.77
5.5.240.0130.08320.18
5.4.450.0800.06019.59
5.4.440.0100.05319.43
5.4.430.0170.04719.48
5.4.420.0700.06019.27
5.4.410.0770.04718.97
5.4.400.0470.05718.73
5.4.390.0600.06018.68
5.4.380.0270.06018.63
5.4.370.0130.05318.50
5.4.360.0200.05018.70
5.4.350.0170.07711.97
5.4.340.0190.07611.97
5.4.320.0030.03912.46
5.4.310.0090.03712.45
5.4.300.0080.03812.46
5.4.290.0070.03712.45
5.4.280.0050.03712.35
5.4.270.0060.03512.35
5.4.260.0050.03812.35
5.4.250.0070.05318.73
5.4.240.0100.04719.00
5.4.230.0030.05318.87
5.4.220.0070.05318.65
5.4.210.0100.07318.65
5.4.200.0130.04718.88
5.4.190.0100.05018.88
5.4.180.0070.05319.00
5.4.170.0170.06318.73
5.4.160.0130.06718.86
5.4.150.0100.05318.98
5.4.140.0030.06016.29
5.4.130.0100.04316.28
5.4.120.0070.05316.29
5.4.110.0000.07316.30
5.4.100.0170.04316.24
5.4.90.0000.05716.41
5.4.80.0030.05016.51
5.4.70.0100.04716.37
5.4.60.0070.05016.48
5.4.50.0070.04716.23
5.4.40.0070.05016.45
5.4.30.0100.04316.27
5.4.20.0100.04716.23
5.4.10.0130.05016.23
5.4.00.0130.04315.90
5.3.290.0050.04012.80
5.3.280.0130.04314.63
5.3.270.0130.04714.61
5.3.260.0070.05714.62
5.3.250.0200.05014.52
5.3.240.0170.04714.61
5.3.230.0000.05714.59
5.3.220.0100.05014.58
5.3.210.0100.06714.48
5.3.200.0130.04314.58
5.3.190.0100.05014.56
5.3.180.0030.08014.43
5.3.170.0100.05014.33
5.3.160.0000.06014.55
5.3.150.0230.03314.55
5.3.140.0030.06314.70
5.3.130.0070.05314.54
5.3.120.0070.05314.69
5.3.110.0070.05314.59
5.3.100.0070.05313.96
5.3.90.0100.07013.86
5.3.80.0130.04713.97
5.3.70.0030.05014.01
5.3.60.0170.04013.88
5.3.50.0130.06013.96
5.3.40.0000.06013.64
5.3.30.0070.04713.91
5.3.20.0070.05313.66
5.3.10.0170.05713.73
5.3.00.0100.07313.73
5.2.170.0070.04011.03
5.2.160.0070.04011.05
5.2.150.0030.04311.15
5.2.140.0030.04311.15
5.2.130.0000.04311.25
5.2.120.0000.04311.11
5.2.110.0130.04311.10
5.2.100.0070.05011.03
5.2.90.0030.04311.03
5.2.80.0070.04011.10
5.2.70.0100.04311.08
5.2.60.0030.04711.07
5.2.50.0100.03711.11
5.2.40.0000.04311.01
5.2.30.0030.04710.97
5.2.20.0070.04311.07
5.2.10.0000.04310.74
5.2.00.0030.04010.70
5.1.60.0030.0409.91
5.1.50.0030.05010.08
5.1.40.0070.0379.82
5.1.30.0130.04310.41
5.1.20.0100.03010.26
5.1.10.0100.03310.25
5.1.00.0070.04010.12
5.0.50.0130.0308.45
5.0.40.0100.0208.43
5.0.30.0070.0408.26
5.0.20.0100.0238.19
5.0.10.0030.0378.12
5.0.00.0030.0438.21
4.4.90.0100.0236.79
4.4.80.0000.0236.79
4.4.70.0030.0306.79
4.4.60.0000.0236.79
4.4.50.0100.0136.79
4.4.40.0030.0336.79
4.4.30.0070.0236.79
4.4.20.0000.0236.79
4.4.10.0030.0276.79
4.4.00.0100.0506.79
4.3.110.0030.0206.79
4.3.100.0070.0276.79
4.3.90.0000.0236.79
4.3.80.0100.0276.79
4.3.70.0070.0176.79
4.3.60.0000.0236.79
4.3.50.0000.0236.79
4.3.40.0070.0306.79
4.3.30.0000.0236.79
4.3.20.0030.0206.79
4.3.10.0070.0306.79
4.3.00.0030.0207.67

preferences:
32.25 ms | 400 KiB | 5 Q