3v4l.org

run code in 300+ PHP versions simultaneously
<?php // 前半が半角、後半が全角 $str = 'ABC123|ABC123'; if (preg_match_all('/\d+/', $str, $matches)) { var_dump($matches); } if (preg_match_all('/\d+/u', $str, $matches)) { var_dump($matches); }

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.4.120.0080.01224.02
8.4.110.0120.00918.85
8.4.100.0140.00719.03
8.4.90.0140.00622.32
8.4.80.0100.00918.95
8.4.70.0120.00717.93
8.4.60.0110.00919.13
8.4.50.0110.00719.56
8.4.40.0140.00717.98
8.4.30.0160.00322.27
8.4.20.0100.01422.60
8.4.10.0030.00523.98
8.3.250.0090.00919.00
8.3.240.0150.00517.17
8.3.230.0150.00516.63
8.3.220.0050.00318.72
8.3.210.0240.00516.66
8.3.200.0070.00216.91
8.3.190.0100.00917.10
8.3.180.0090.01216.72
8.3.170.0190.00018.93
8.3.160.0040.01416.53
8.3.150.0040.01618.64
8.3.140.0120.00617.05
8.3.130.0060.00318.79
8.3.120.0030.00620.82
8.3.110.0000.00816.76
8.3.100.0100.00716.52
8.3.90.0040.00426.77
8.3.80.0050.00518.43
8.3.70.0140.00316.63
8.3.60.0100.00720.30
8.3.50.0170.00316.82
8.3.40.0100.00322.10
8.3.30.0080.00820.23
8.3.20.0000.00724.18
8.3.10.0040.00424.66
8.3.00.0070.00026.16
8.2.290.0100.00920.80
8.2.280.0080.00418.44
8.2.270.0130.00617.36
8.2.260.0040.00418.53
8.2.250.0080.00017.45
8.2.240.0060.00917.30
8.2.230.0030.00620.94
8.2.220.0030.00624.06
8.2.210.0140.00426.77
8.2.200.0060.00316.75
8.2.190.0180.00418.41
8.2.180.0030.01725.92
8.2.170.0080.00818.91
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0020.00521.19
8.2.110.0060.00322.28
8.2.100.0060.00320.21
8.2.70.0020.00779.33
8.1.330.0110.00821.99
8.1.320.0100.00823.89
8.1.310.0070.00316.82
8.1.300.0040.01416.67
8.1.290.0060.00330.84
8.1.280.0090.00925.92
8.1.270.0040.00422.19
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00620.37
8.1.230.0040.00718.60
8.1.00.0170.01117.39

preferences:
27.2 ms | 403 KiB | 5 Q