3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "Hello!! I'm Sajjad Hossain Sagor. It's 2023. w00t :D \ud83e\udd17"; $pattern = "/(?:\\\\u[a-f0-9]+)+|'[stdm]|'[rv]e|'ll| ?\p{L}+| ?\p{N}+| ?(?!\\\\u[a-f0-9]+\b)[^\s\p{L}\p{N}]+|\s+(?!\S)|\s+/"; preg_match_all( $pattern, $text, $matches ); var_dump($matches[0]);

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.5.10.0090.00820.23
8.5.00.0110.01020.26
8.4.150.0030.00014.05
8.4.140.0110.01017.84
8.4.130.0040.00618.14
8.4.120.0120.00720.53
8.4.110.0120.00819.89
8.4.100.0110.01118.06
8.4.90.0100.01120.38
8.4.80.0120.00719.00
8.4.70.0100.01020.82
8.4.60.0100.01118.82
8.4.50.0080.00218.83
8.4.40.0060.00323.91
8.4.30.0040.00418.77
8.4.20.0100.01019.82
8.4.10.0100.01023.54
8.3.280.0140.01118.52
8.3.270.0150.00716.71
8.3.260.0150.00417.02
8.3.250.0030.00518.99
8.3.240.0060.00316.65
8.3.230.0040.00516.86
8.3.220.0040.00418.85
8.3.210.0080.00216.73
8.3.200.0030.00616.84
8.3.190.0110.00917.13
8.3.180.0120.00817.20
8.3.170.0110.00720.85
8.3.160.0110.00717.12
8.3.150.0090.00617.42
8.3.140.0040.00417.06
8.3.130.0050.00516.77
8.3.120.0090.00018.95
8.3.110.0070.01020.94
8.3.100.0110.00424.06
8.3.90.0140.00026.77
8.3.80.0060.00318.55
8.3.70.0180.00416.50
8.3.60.0000.01518.43
8.3.50.0120.00316.58
8.3.40.0130.00723.43
8.3.30.0150.00418.82
8.3.20.0000.00824.18
8.3.10.0000.00824.66
8.3.00.0080.00026.16
8.2.290.0140.00618.82
8.2.280.0110.00918.28
8.2.270.0070.01117.56
8.2.260.0040.00418.40
8.2.250.0040.00416.82
8.2.240.0100.01019.42
8.2.230.0060.00322.58
8.2.220.0050.00537.54
8.2.210.0050.00326.77
8.2.200.0060.00318.66
8.2.190.0090.00918.54
8.2.180.0090.00616.75
8.2.170.0090.00619.09
8.2.160.0110.00322.96
8.2.150.0080.00025.66
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0040.00419.85
8.2.110.0040.00721.22
8.2.100.0060.00618.03
8.2.90.0060.00317.85
8.2.80.0030.00620.01
8.2.70.0050.00317.74
8.2.60.0040.00417.63
8.2.50.0050.00317.75
8.2.40.0060.00319.73
8.2.30.0090.00018.08
8.2.20.0110.00018.01
8.2.10.0030.00617.72
8.2.00.0050.00517.83
8.1.330.0120.00716.33
8.1.320.0130.00616.35
8.1.310.0150.00018.81
8.1.300.0080.00020.38
8.1.290.0070.00330.84
8.1.280.0120.00325.92
8.1.270.0040.00424.66
8.1.260.0030.00926.35
8.1.250.0000.00828.09
8.1.240.0060.00322.58
8.1.230.0040.00820.88
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0000.00817.48
8.1.190.0070.00317.35
8.1.180.0040.00418.10
8.1.170.0040.00417.82
8.1.160.0000.00917.49
8.1.150.0060.00317.57
8.1.140.0030.00617.53
8.1.130.0090.00317.57
8.1.120.0000.00919.31
8.1.110.0080.00317.66
8.1.100.0040.00719.31
8.1.90.0080.00417.66
8.1.80.0030.00717.57
8.1.70.0080.00317.60
8.1.60.0050.00317.66
8.1.50.0000.01217.75
8.1.40.0060.00317.81
8.1.30.0100.00317.24
8.1.20.0090.00616.93
8.1.10.0160.00017.64
8.1.00.0080.00417.10
8.0.300.0000.00819.85
8.0.290.0080.00016.88
8.0.280.0100.00216.57
8.0.270.0100.00416.75
8.0.260.0090.00316.91
8.0.250.0090.00516.65
8.0.240.0030.00916.50
8.0.230.0060.00316.63
8.0.220.0050.00516.37
8.0.210.0030.00316.97
8.0.200.0030.00316.98
8.0.190.0060.00316.91
8.0.180.0110.00316.65
8.0.170.0040.00716.27
8.0.160.0030.00716.38
8.0.150.0140.00016.44
8.0.140.0030.01016.76
8.0.130.0020.00916.59
8.0.120.0110.00016.59
8.0.110.0040.00416.84
8.0.100.0050.00516.72
8.0.90.0130.00016.40
8.0.80.0140.00016.56
8.0.70.0060.00616.53
8.0.60.0120.00016.62
8.0.50.0040.00816.77
8.0.30.0100.00416.51
8.0.20.0040.00816.29
8.0.10.0080.00316.69

preferences:
122.94 ms | 403 KiB | 5 Q