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.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.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.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:
46.46 ms | 400 KiB | 5 Q