3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/@\K[\w.]+/'; $str = '1 blah blah blah @username_. sblah sblah sblah @test'; preg_match($re, $str, $matches); echo $matches[0]; // username_.

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.70.0130.00716.75
8.3.60.0140.00018.43
8.3.50.0070.01018.02
8.3.40.0070.00718.74
8.3.30.0090.00619.02
8.3.20.0040.00419.02
8.3.10.0090.00021.76
8.3.00.0080.00020.95
8.2.190.0000.01516.64
8.2.180.0070.01418.54
8.2.170.0070.00722.96
8.2.160.0100.00322.25
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00819.54
8.2.110.0000.01021.06
8.2.100.0090.00318.08
8.2.90.0040.00418.22
8.2.80.0080.00017.97
8.2.70.0060.00318.05
8.2.60.0000.00818.22
8.2.50.0060.00318.10
8.2.40.0080.00021.25
8.2.30.0050.00219.39
8.2.20.0000.00718.06
8.2.10.0000.00717.96
8.2.00.0080.00018.08
8.1.280.0100.01025.92
8.1.270.0040.00422.22
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0100.00022.61
8.1.230.0070.00421.10
8.1.220.0070.00017.76
8.1.210.0000.00818.96
8.1.200.0080.00417.25
8.1.190.0030.00617.36
8.1.180.0040.00418.10
8.1.170.0030.00618.54
8.1.160.0040.00418.84
8.1.150.0000.00718.76
8.1.140.0070.00022.24
8.1.130.0060.00319.99
8.1.120.0030.00717.57
8.1.110.0020.00517.59
8.1.100.0000.00717.42
8.1.90.0050.00317.56
8.1.80.0030.00717.51
8.1.70.0070.00417.46
8.1.60.0050.00517.69
8.1.50.0000.00817.43
8.1.40.0000.00817.50
8.1.30.0040.00717.57
8.1.20.0080.00417.57
8.1.10.0080.00017.61
8.1.00.0000.00817.65
8.0.300.0000.00919.98
8.0.290.0070.00016.75
8.0.280.0070.00018.38
8.0.270.0040.00417.18
8.0.260.0030.00318.51
8.0.250.0030.00517.13
8.0.240.0040.00417.01
8.0.230.0080.00017.08
8.0.220.0030.00416.87
8.0.210.0070.00017.01
8.0.200.0000.00717.05
8.0.190.0040.00416.93
8.0.180.0080.00016.96
8.0.170.0050.00317.04
8.0.160.0000.00716.95
8.0.150.0040.00416.86
8.0.140.0000.00716.95
8.0.130.0060.00013.39
8.0.120.0000.00716.83
8.0.110.0050.00317.07
8.0.100.0000.00717.02
8.0.90.0050.00316.79
8.0.80.0100.00416.93
8.0.70.0040.00416.86
8.0.60.0080.00016.99
8.0.50.0000.00816.98
8.0.30.0100.01017.43
8.0.20.0090.00917.40
8.0.10.0040.00416.95
8.0.00.0150.00416.60
7.4.330.0000.00515.55
7.4.320.0060.00016.70
7.4.300.0030.00316.56
7.4.290.0060.00316.73
7.4.280.0000.00816.75
7.4.270.0050.00216.61
7.4.260.0040.00416.75
7.4.250.0050.00316.73
7.4.240.0070.00016.75
7.4.230.0000.00716.77
7.4.220.0030.00616.56
7.4.210.0120.00516.70
7.4.200.0030.00316.72
7.4.160.0100.00716.55
7.4.140.0090.00817.86
7.4.130.0090.00916.81
7.4.120.0090.01216.65
7.4.110.0120.00916.71
7.4.100.0100.01316.54
7.4.90.0150.00316.69
7.4.80.0060.01219.39
7.4.70.0100.01016.57
7.4.60.0000.01516.81
7.4.50.0150.00016.72
7.4.40.0030.01316.57
7.4.00.0030.01415.15
7.3.330.0030.00313.24
7.3.320.0030.00313.27
7.3.310.0040.00416.19
7.3.300.0000.00716.25
7.3.290.0030.00316.28
7.3.280.0100.00516.27
7.3.260.0100.00916.54
7.3.240.0100.01116.58
7.3.230.0110.00616.58
7.3.210.0100.00716.81
7.3.200.0030.01716.67
7.3.190.0060.01016.70
7.3.180.0100.00916.46
7.3.170.0060.01116.30
7.3.160.0100.00716.46
7.2.330.0060.01216.61
7.2.320.0110.00716.76
7.2.310.0100.00716.64
7.2.300.0110.00616.60
7.2.290.0100.01416.78
7.2.120.0250.01414.91
7.2.110.0520.00714.81
7.2.100.0360.00714.59
7.2.90.0390.00014.76
7.2.80.0230.01314.99
7.2.70.0220.00715.01
7.2.60.0270.00714.94
7.2.50.0160.00614.86
7.2.40.0390.00015.13
7.2.30.0200.00715.12
7.2.20.0180.00915.13
7.2.10.0250.00315.13
7.2.00.0220.00314.91
7.1.240.0370.00314.08
7.1.230.0290.00714.18
7.1.220.0270.01014.16
7.1.210.0180.00913.98
7.1.200.1380.00714.12
7.1.190.0230.00913.81
7.1.180.0180.00714.02
7.1.170.0260.00413.90
7.1.160.0260.00313.95
7.1.150.0290.00413.93
7.1.140.0180.00913.99
7.1.130.0360.00714.00
7.1.120.0270.00013.83
7.1.110.0170.00713.88
7.1.100.0180.00314.10
7.1.90.0310.00614.16
7.1.80.0220.00313.98
7.1.70.0200.01014.04
7.1.60.0310.00613.93
7.1.50.0160.00613.87
7.1.40.0200.00713.96
7.1.30.0180.00614.13
7.1.20.0200.00713.75
7.1.10.1230.00314.11
7.1.00.0170.01014.01
5.6.380.0120.00313.85

preferences:
30.22 ms | 401 KiB | 5 Q