3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo ltrim('#+&!','#&!+'); $channel_name = '#someChannel؏Name'; function isValidChannelName($name) { return preg_match('/^#[\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0B\x0C\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F\x21\x22\x23\x24\x25\x26\x27\x28\x29\x2A\x2B\x2D\x2E\x2F\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x3B\x3C\x3D\x3E\x3F\x40\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4A\x4B\x4C\x4D\x4E\x4F\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5A\x5B\x5C\x5D\x5E\x5F\x60\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7A\x7B\x7C\x7D\x7E\x7F\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\xD0\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\xDE\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF]+$/',$name); } var_dump(isValidChannelName($channel_name));

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.0090.00916.63
8.3.50.0120.01022.05
8.3.40.0070.00718.75
8.3.30.0150.00018.89
8.3.20.0070.00020.21
8.3.10.0040.00423.70
8.3.00.0040.00420.64
8.2.180.0040.01118.29
8.2.170.0110.00422.96
8.2.160.0100.01022.30
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0000.00722.07
8.2.110.0060.00322.05
8.2.100.0030.00917.97
8.2.90.0060.00319.05
8.2.80.0050.00317.97
8.2.70.0090.00017.75
8.2.60.0050.00318.03
8.2.50.0030.00618.07
8.2.40.0000.00819.28
8.2.30.0080.00017.99
8.2.20.0070.00017.85
8.2.10.0020.00517.79
8.2.00.0050.00317.76
8.1.280.0070.01425.92
8.1.270.0030.00523.93
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0030.00623.92
8.1.230.0030.00919.16
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0060.00317.48
8.1.190.0050.00317.39
8.1.180.0050.00318.10
8.1.170.0040.00418.62
8.1.160.0000.00821.97
8.1.150.0040.00418.72
8.1.140.0000.00817.50
8.1.130.0000.00717.84
8.1.120.0040.00417.43
8.1.110.0040.00417.43
8.1.100.0030.00517.61
8.1.90.0030.00717.51
8.1.80.0000.00717.61
8.1.70.0030.00317.44
8.1.60.0050.00317.63
8.1.50.0080.00017.55
8.1.40.0000.00717.58
8.1.30.0080.00017.69
8.1.20.0000.00817.71
8.1.10.0040.00417.66
8.1.00.0040.00417.45
8.0.300.0080.00018.77
8.0.290.0000.00817.05
8.0.280.0000.00718.56
8.0.270.0030.00317.28
8.0.260.0070.00016.87
8.0.250.0000.00716.97
8.0.240.0070.00317.02
8.0.230.0000.00716.92
8.0.220.0030.00616.99
8.0.210.0050.00316.85
8.0.200.0030.00517.03
8.0.190.0030.00516.90
8.0.180.0040.00417.00
8.0.170.0000.00717.00
8.0.160.0000.00716.86
8.0.150.0080.00316.91
8.0.140.0040.00416.85
8.0.130.0050.00013.39
8.0.120.0040.00417.04
8.0.110.0040.00416.97
8.0.100.0040.00416.76
8.0.90.0000.00716.84
8.0.80.0090.00616.96
8.0.70.0040.00417.01
8.0.60.0040.00416.91
8.0.50.0000.00716.77
8.0.30.0070.01117.25
8.0.20.0080.01117.42
8.0.10.0000.00816.98
8.0.00.0130.00516.98
7.4.330.0030.00315.16
7.4.320.0000.00716.64
7.4.300.0000.00716.78
7.4.290.0040.00416.85
7.4.280.0030.00316.70
7.4.270.0030.00316.70
7.4.260.0000.00816.79
7.4.250.0040.00416.66
7.4.240.0050.00216.70
7.4.230.0050.00316.54
7.4.220.0090.01516.84
7.4.210.0090.00716.71
7.4.200.0050.00316.53
7.4.190.0030.00516.61
7.4.160.0100.00616.47
7.4.150.0100.00717.40
7.4.140.0090.01217.86
7.4.130.0120.00816.66
7.4.120.0070.00916.67
7.4.110.0140.00616.76
7.4.100.0060.01216.91
7.4.90.0100.01316.50
7.4.80.0030.01516.51
7.4.70.0040.01316.46
7.4.60.0060.01116.64
7.4.50.0040.00416.67
7.4.40.0090.00622.77
7.4.30.0060.01016.45
7.4.00.0000.01715.01
7.3.330.0020.00313.36
7.3.320.0000.00513.18
7.3.310.0030.00316.49
7.3.300.0070.00016.30
7.3.290.0090.00616.40
7.3.280.0090.00716.42
7.3.270.0080.01217.40
7.3.260.0060.01216.37
7.3.250.0090.01116.59
7.3.240.0030.01516.46
7.3.230.0080.00816.43
7.3.210.0080.00816.61
7.3.200.0030.01419.39
7.3.190.0090.01216.64
7.3.180.0100.00716.64
7.3.170.0090.00616.60
7.3.160.0140.00816.45
7.3.120.0080.00814.87
7.3.10.0030.00916.77
7.3.00.0040.00716.94
7.2.330.0060.01216.88
7.2.320.0030.01916.52
7.2.310.0000.01816.77
7.2.300.0120.00416.70
7.2.290.0100.00616.82
7.2.130.0060.00616.64
7.2.120.0030.00816.83
7.2.110.0000.01517.02
7.2.100.0070.00717.08
7.2.90.0090.00317.17
7.2.80.0000.01117.04
7.2.70.0000.01116.67
7.2.60.0030.01017.17
7.2.50.0000.01617.14
7.2.40.0000.00916.73
7.2.30.0030.01316.98
7.2.20.0060.00617.21
7.2.10.0000.00916.98
7.2.00.0060.00818.14
7.1.250.0090.00015.96
7.1.100.0060.00618.14
7.1.70.0040.00717.38
7.1.60.0110.01419.27
7.1.50.0070.01116.88
7.1.00.0030.07722.35
7.0.200.0000.01016.68
7.0.140.0070.07022.18
7.0.60.0100.03320.06
7.0.50.0100.07717.97
7.0.40.0070.04320.12
7.0.30.0300.06020.12
7.0.20.0300.07720.27
7.0.10.0130.03320.29
7.0.00.0070.03720.31
5.6.280.0030.07321.10
5.6.210.0030.04020.57
5.6.200.0070.05018.19
5.6.190.0000.09320.47
5.6.180.0100.05320.39
5.6.170.0230.06020.67
5.6.160.0130.07720.44
5.6.150.0070.07018.18
5.6.140.0070.07018.17
5.6.130.0030.04318.18
5.6.120.0030.09321.13
5.6.110.0100.07721.12
5.6.100.0130.04021.12
5.6.90.0100.05720.98
5.6.80.0200.04720.38
5.5.350.0030.08320.43
5.5.340.0070.04717.99
5.5.330.0130.08020.19
5.5.320.0170.04720.25
5.5.310.0300.08720.27
5.5.300.0000.04017.99
5.5.290.0100.05317.90
5.5.280.0100.08020.85
5.5.270.0100.07020.87
5.5.260.0070.06720.84
5.5.250.0100.05720.59
5.5.240.0070.03720.17
5.4.450.1070.04719.17
5.4.440.1130.03719.17
5.4.430.0530.03319.52
5.4.420.0430.04019.27
5.4.410.0530.05019.28
5.4.400.0870.06318.76
5.4.390.1130.04318.82
5.4.380.0170.05018.79
5.4.370.0170.07718.61
5.4.360.0200.05018.79
5.4.350.0170.06318.45
5.4.340.0300.05018.77
5.4.320.0110.03512.50
5.4.310.0090.04212.50
5.4.300.0090.03412.50
5.4.290.0090.04212.50
5.4.280.0080.03512.40
5.4.270.0050.03612.39
5.4.260.0070.04412.40
5.4.250.0060.04512.40
5.4.240.0050.04512.40
5.4.230.0090.03812.39
5.4.220.0100.03712.39
5.4.210.0030.04112.39
5.4.200.0030.03912.39
5.4.190.0150.04412.38
5.4.180.0150.04412.38
5.4.170.0140.04312.41
5.4.160.0170.04212.40
5.4.150.0140.04412.39
5.4.140.0150.04212.08
5.4.130.0180.03912.06
5.4.120.0150.04112.01
5.4.110.0100.04612.02
5.4.100.0130.04412.02
5.4.90.0210.06612.02
5.4.80.0160.04112.01
5.4.70.0160.04012.00
5.4.60.0140.04212.01
5.4.50.0150.04212.00
5.4.40.0260.09012.00
5.4.30.0110.04511.99
5.4.20.0160.03911.99
5.4.10.0130.04411.99
5.4.00.0150.04011.48
5.3.290.0090.04012.80
5.3.280.0080.04212.71
5.3.270.0210.06912.72
5.3.260.0160.04412.72
5.3.250.0170.04312.72
5.3.240.0150.04612.72
5.3.230.0160.04512.71
5.3.220.0130.04612.68
5.3.210.0240.06612.68
5.3.200.0120.04612.68
5.3.190.0170.04312.68
5.3.180.0140.04512.67
5.3.170.0140.04412.67
5.3.160.0120.04712.67
5.3.150.0190.04012.68
5.3.140.0190.03912.66
5.3.130.0180.04112.66
5.3.120.0170.04212.66
5.3.110.0180.04312.66
5.3.100.0280.06212.13
5.3.90.0100.04712.12
5.3.80.0200.03912.09
5.3.70.0130.04512.10
5.3.60.0150.04312.09
5.3.50.0130.04712.03
5.3.40.0150.04712.03
5.3.30.0120.04712.00
5.3.20.0170.04211.77
5.3.10.0150.04311.74
5.3.00.0160.04211.71
5.2.170.0150.0339.22
5.2.160.0140.0339.23
5.2.150.0260.0839.23
5.2.140.0160.0359.22
5.2.130.0160.0379.18
5.2.120.0150.0339.18
5.2.110.0200.0909.19
5.2.100.0140.0359.19
5.2.90.0100.0389.20
5.2.80.0130.0379.18
5.2.70.0140.0349.18
5.2.60.0150.0369.13
5.2.50.0160.0329.10
5.2.40.0150.0339.08
5.2.30.0080.0419.06
5.2.20.0140.0349.06
5.2.10.0110.0388.95
5.2.00.0130.0348.79
5.1.60.0110.0328.08
5.1.50.0140.0328.08
5.1.40.0110.0298.07
5.1.30.0120.0328.41
5.1.20.0110.0378.44
5.1.10.0110.0338.16
5.1.00.0130.0298.16
5.0.50.0110.0246.64
5.0.40.0150.0206.49
5.0.30.0070.0376.31
5.0.20.0070.0286.28
5.0.10.0090.0246.25
5.0.00.0110.0356.25
4.4.90.0090.0224.78
4.4.80.0120.0184.75
4.4.70.0050.0204.75
4.4.60.0050.0224.76
4.4.50.0050.0194.77
4.4.40.0080.0594.71
4.4.30.0080.0184.76
4.4.20.0090.0174.84
4.4.10.0080.0184.85
4.4.00.0070.0284.76
4.3.110.0080.0174.67
4.3.100.0120.0124.66
4.3.90.0060.0184.64
4.3.80.0070.0314.59
4.3.70.0080.0174.63
4.3.60.0090.0154.63
4.3.50.0090.0164.63
4.3.40.0080.0284.53
4.3.30.0170.0413.30
4.3.20.0040.0203.28
4.3.10.0070.0173.25
4.3.00.0070.01015.48

preferences:
43.79 ms | 401 KiB | 5 Q