3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'Tweet #hashtag'; preg_match("/#(\\w+)/", $string, $matches); $hash = $matches[1]; var_dump( $hash); // Outputs 'hashtag'

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.40.0150.00019.04
8.3.30.0090.00619.01
8.3.20.0030.00520.20
8.3.10.0070.00022.14
8.3.00.0030.00622.58
8.2.170.0110.00422.96
8.2.160.0030.01020.35
8.2.150.0040.00424.18
8.2.140.0110.01124.66
8.2.130.0040.00426.16
8.2.120.0040.00419.88
8.2.110.0040.00819.29
8.2.100.0070.00719.69
8.2.90.0030.00519.03
8.2.80.0000.00819.18
8.2.70.0050.00317.59
8.2.60.0030.00617.93
8.2.50.0030.00618.10
8.2.40.0040.00418.01
8.2.30.0000.00718.05
8.2.20.0040.00417.67
8.2.10.0000.00717.86
8.2.00.0040.00417.83
8.1.270.0060.00320.55
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0040.00422.37
8.1.230.0090.00317.63
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0060.00317.35
8.1.190.0040.00417.23
8.1.180.0080.00018.10
8.1.170.0000.00818.77
8.1.160.0030.00522.03
8.1.150.0060.00318.59
8.1.140.0000.00717.57
8.1.130.0000.00717.84
8.1.120.0000.00817.56
8.1.110.0080.00017.57
8.1.100.0080.00017.57
8.1.90.0000.00817.42
8.1.80.0000.00717.43
8.1.70.0040.00417.51
8.1.60.0040.00417.71
8.1.50.0040.00417.59
8.1.40.0040.00417.49
8.1.30.0080.00017.69
8.1.20.0000.00817.73
8.1.10.0050.00317.67
8.1.00.0050.00317.56
8.0.300.0040.00418.77
8.0.290.0050.00316.75
8.0.280.0040.00418.43
8.0.270.0000.00817.27
8.0.260.0030.00316.94
8.0.250.0000.00717.02
8.0.240.0040.00417.00
8.0.230.0060.00017.01
8.0.220.0030.00316.86
8.0.210.0000.00716.88
8.0.200.0000.00717.03
8.0.190.0040.00416.94
8.0.180.0000.00716.91
8.0.170.0000.00716.95
8.0.160.0070.00017.02
8.0.150.0070.00016.95
8.0.140.0050.00316.82
8.0.130.0000.00513.40
8.0.120.0000.00816.79
8.0.110.0040.00416.88
8.0.100.0030.00616.93
8.0.90.0050.00316.91
8.0.80.0030.01217.01
8.0.70.0040.00416.98
8.0.60.0040.00416.86
8.0.50.0000.00716.95
8.0.30.0060.01317.26
8.0.20.0110.01117.40
8.0.10.0000.00717.06
8.0.00.0130.00516.98
7.4.330.0020.00215.00
7.4.320.0030.00316.63
7.4.300.0000.00616.68
7.4.290.0070.00016.75
7.4.280.0000.00716.61
7.4.270.0000.00716.69
7.4.260.0000.00716.71
7.4.250.0000.00716.71
7.4.240.0010.00616.64
7.4.230.0000.00716.60
7.4.220.0070.01116.77
7.4.210.0110.00416.75
7.4.200.0030.00316.64
7.4.190.0000.00816.74
7.4.160.0130.00316.81
7.4.150.0090.00917.40
7.4.140.0100.00917.86
7.4.130.0040.01416.51
7.4.120.0130.00416.60
7.4.110.0100.01316.68
7.4.100.0000.01816.47
7.4.90.0110.01116.80
7.4.80.0040.01219.39
7.4.70.0220.00916.45
7.4.60.0150.00616.53
7.4.50.0000.00816.71
7.4.40.0060.00922.77
7.4.30.0130.00316.63
7.4.00.0090.00915.13
7.3.330.0060.00013.18
7.3.320.0060.00013.06
7.3.310.0050.00216.30
7.3.300.0030.00316.20
7.3.290.0000.01516.31
7.3.280.0070.01016.37
7.3.270.0140.00317.40
7.3.260.0150.00716.37
7.3.250.0090.00816.56
7.3.240.0000.01716.43
7.3.230.0160.00816.39
7.3.210.0090.00816.45
7.3.200.0150.00619.39
7.3.190.0100.01316.46
7.3.180.0070.01016.54
7.3.170.0200.00416.55
7.3.160.0060.00916.41
7.3.120.0030.01014.69
7.2.330.0030.01416.76
7.2.320.0160.00816.83
7.2.310.0110.00816.65
7.2.300.0070.01016.70
7.2.290.0040.01216.80
7.2.00.0030.01319.73
7.1.200.0030.00616.10
7.1.100.0000.01018.41
7.1.70.0000.01117.20
7.1.60.0120.01219.82
7.1.50.0060.00617.19
7.1.00.0000.06022.37
7.0.200.0030.00616.75
7.0.140.0030.07722.00
7.0.70.4330.03719.88
7.0.60.0070.04720.03
7.0.50.0000.04317.93
7.0.40.0070.04020.00
7.0.30.0330.04320.33
7.0.20.0200.05720.19
7.0.10.0300.07020.03
7.0.00.0100.06320.34
5.6.280.0000.07321.14
5.6.210.0030.04320.53
5.6.200.0130.08018.13
5.6.190.0070.04720.60
5.6.180.0330.05020.56
5.6.170.0200.08020.38
5.6.160.0070.04020.44
5.6.150.0030.08318.20
5.6.140.0070.04018.16
5.6.130.0030.04718.10
5.6.120.0100.05321.04
5.6.110.0100.08321.10
5.6.100.0000.08721.00
5.6.90.0030.04321.01
5.6.80.0070.04020.43
5.6.70.0400.06320.38
5.5.350.0070.03320.52
5.5.340.0000.05017.91
5.5.330.0070.05020.13
5.5.320.0000.05320.23
5.5.310.0270.08320.20
5.5.300.0070.03717.98
5.5.290.0100.04317.95
5.5.280.0070.06720.86
5.5.270.0070.07320.75
5.5.260.0100.08320.70
5.5.250.0130.04720.57
5.5.240.0100.06320.27
5.4.450.0200.05719.47
5.4.440.1000.07719.29
5.4.430.0430.05719.27
5.4.420.0670.06319.48
5.4.410.0670.06719.52
5.4.400.0800.05719.16
5.4.390.0200.05319.14
5.4.380.0270.06018.59
5.4.370.0200.04318.48
5.4.360.0330.04018.48
5.4.350.0110.03811.97
5.4.340.0050.04011.96
5.4.320.0120.03412.45
5.4.310.0040.03912.45
5.4.300.0090.03312.45
5.4.290.0070.03812.45
5.4.280.0080.03712.35
5.4.270.0050.04212.34
5.4.260.0070.03812.35
5.4.250.0100.05019.00
5.4.240.0070.06019.03
5.4.230.0100.06718.93
5.4.220.0100.05018.92
5.4.210.0100.04718.88
5.4.200.0070.05319.02
5.4.190.0030.05718.84
5.4.180.0070.05718.70
5.4.170.0070.05318.87
5.4.160.0030.05319.00
5.4.150.0070.05718.88
5.4.140.0130.04316.27
5.4.130.0070.07016.27
5.4.120.0030.07716.44
5.4.110.0070.05016.39
5.4.100.0100.06316.51
5.4.90.0000.05716.20
5.4.80.0070.04316.41
5.4.70.0000.07716.44
5.4.60.0070.04716.48
5.4.50.0070.04716.40
5.4.40.0070.05016.48
5.4.30.0030.07016.17
5.4.20.0170.06016.23
5.4.10.0030.06716.23
5.4.00.0100.06315.91
5.3.290.0080.05412.80
5.3.280.0130.04714.61
5.3.270.0070.05714.48
5.3.260.0100.06714.45
5.3.250.0070.05014.60
5.3.240.0030.05314.37
5.3.230.0000.05714.45
5.3.220.0070.05014.43
5.3.210.0030.05714.42
5.3.200.0130.06314.41
5.3.190.0070.05714.72
5.3.180.0130.04314.71
5.3.170.0100.05014.60
5.3.160.0130.05014.57
5.3.150.0070.07314.65
5.3.140.0100.05314.57
5.3.130.0100.07314.44
5.3.120.0100.07314.46
5.3.110.0130.06314.40
5.3.100.0070.05714.18
5.3.90.0030.07013.89
5.3.80.0000.07314.03
5.3.70.0000.06713.87
5.3.60.0070.05014.01
5.3.50.0070.06313.78
5.3.40.0070.05013.78
5.3.30.0100.04313.61
5.3.20.0100.04313.69
5.3.10.0200.04013.48
5.3.00.0100.06013.47
5.2.170.0000.05011.07
5.2.160.0030.04311.03
5.2.150.0070.03710.98
5.2.140.0000.05311.05
5.2.130.0030.04011.10
5.2.120.0070.03711.11
5.2.110.0070.05011.11
5.2.100.0000.04011.02
5.2.90.0030.04311.20
5.2.80.0070.03711.02
5.2.70.0000.04311.20
5.2.60.0100.05310.94
5.2.50.0000.04710.95
5.2.40.0030.04311.01
5.2.30.0070.04010.99
5.2.20.0030.04010.88
5.2.10.0070.03710.77
5.2.00.0100.05010.63
5.1.60.0030.03310.05
5.1.50.0030.0339.90
5.1.40.0000.03710.12
5.1.30.0000.04010.41
5.1.20.0070.03310.42
5.1.10.0100.0309.99
5.1.00.0070.03310.26
5.0.50.0100.0208.63
5.0.40.0000.0278.32
5.0.30.0070.0378.41
5.0.20.0000.0278.27
5.0.10.0030.0278.00
5.0.00.0030.0538.11
4.4.90.0070.0235.80
4.4.80.0000.0305.77
4.4.70.0070.0175.75
4.4.60.0000.0235.78
4.4.50.0070.0175.80
4.4.40.0000.0475.77
4.4.30.0070.0235.78
4.4.20.0030.0205.85
4.4.10.0070.0175.89
4.4.00.0000.0335.79
4.3.110.0000.0235.72
4.3.100.0070.0175.84
4.3.90.0000.0305.72
4.3.80.0030.0435.72
4.3.70.0070.0175.72
4.3.60.0000.0205.72
4.3.50.0030.0275.72
4.3.40.0030.0335.72
4.3.30.0000.0235.72
4.3.20.0000.0235.72
4.3.10.0070.0175.72
4.3.00.0030.0307.22

preferences:
37.58 ms | 400 KiB | 5 Q