3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '<green>hello <red>aydin</red> wth</green>'; $matches = array(); preg_match('/(<.+?>)(.+?)(<\/.*>)/', $string, $matches); $fullString = $matches[0]; //$stripped = 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.3.60.0130.00716.75
8.3.50.0050.01422.02
8.3.40.0090.00618.75
8.3.30.0100.00319.05
8.3.20.0000.00820.16
8.3.10.0000.00823.61
8.3.00.0050.00319.20
8.2.180.0150.00618.41
8.2.170.0130.00619.08
8.2.160.0140.00022.96
8.2.150.0030.00624.18
8.2.140.0000.00824.66
8.2.130.0050.00326.16
8.2.120.0080.00021.10
8.2.110.0000.00922.36
8.2.100.0040.00717.72
8.2.90.0090.00319.02
8.2.80.0030.00517.97
8.2.70.0000.00817.88
8.2.60.0030.00618.04
8.2.50.0030.00518.07
8.2.40.0040.00718.09
8.2.30.0040.00418.27
8.2.20.0000.00817.93
8.2.10.0000.00717.95
8.2.00.0000.00717.89
8.1.280.0030.01725.92
8.1.270.0040.00423.79
8.1.260.0080.00026.35
8.1.250.0000.00928.09
8.1.240.0030.00623.71
8.1.230.0070.00419.01
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.50
8.1.190.0030.00617.25
8.1.180.0000.00918.10
8.1.170.0000.00818.67
8.1.160.0040.00421.89
8.1.150.0090.00018.70
8.1.140.0070.00017.57
8.1.130.0000.00717.85
8.1.120.0000.00717.57
8.1.110.0040.00417.42
8.1.100.0040.00417.55
8.1.90.0030.00517.52
8.1.80.0040.00417.55
8.1.70.0000.00717.43
8.1.60.0000.00917.62
8.1.50.0040.00417.49
8.1.40.0060.00317.59
8.1.30.0000.00817.71
8.1.20.0050.00317.65
8.1.10.0040.00417.64
8.1.00.0060.00317.63
8.0.300.0070.00018.77
8.0.290.0000.00716.63
8.0.280.0000.00718.43
8.0.270.0030.00317.13
8.0.260.0060.00017.09
8.0.250.0000.00717.05
8.0.240.0030.00316.96
8.0.230.0000.00717.05
8.0.220.0030.00316.99
8.0.210.0040.00416.82
8.0.200.0090.00016.99
8.0.190.0000.00716.91
8.0.180.0040.00716.98
8.0.170.0080.00017.00
8.0.160.0000.00717.03
8.0.150.0070.00016.80
8.0.140.0040.00416.88
8.0.130.0030.00313.37
8.0.120.0080.00016.98
8.0.110.0000.00716.95
8.0.100.0070.00016.83
8.0.90.0040.00416.84
8.0.80.0030.01716.89
8.0.70.0000.00816.89
8.0.60.0040.00416.93
8.0.50.0000.00716.84
8.0.30.0130.00617.13
8.0.20.0090.01117.40
8.0.10.0040.00417.12
8.0.00.0110.01117.08
7.4.330.0050.00015.00
7.4.320.0000.00616.64
7.4.300.0000.00616.65
7.4.290.0030.00316.50
7.4.280.0080.00016.70
7.4.270.0000.00716.73
7.4.260.0030.00316.64
7.4.250.0050.00216.73
7.4.240.0050.00216.69
7.4.230.0000.00716.82
7.4.220.0030.02216.68
7.4.210.0060.01216.77
7.4.200.0030.00316.48
7.4.190.0000.00816.64
7.4.160.0090.00916.52
7.4.150.0120.00917.40
7.4.140.0100.00817.86
7.4.130.0070.01116.56
7.4.120.0130.00616.67
7.4.110.0040.01416.47
7.4.100.0140.00316.47
7.4.90.0120.00616.65
7.4.80.0150.00619.39
7.4.70.0060.00916.69
7.4.60.0140.00316.54
7.4.50.0040.00416.50
7.4.40.0060.01016.67
7.4.30.0090.01316.54
7.4.00.0060.01015.05
7.3.330.0050.00313.28
7.3.320.0000.00513.23
7.3.310.0000.00716.16
7.3.300.0000.00716.38
7.3.290.0090.00916.34
7.3.280.0100.00916.26
7.3.270.0140.00317.40
7.3.260.0100.00716.78
7.3.250.0110.00816.37
7.3.240.0160.00616.45
7.3.230.0140.00316.59
7.3.210.0090.00916.46
7.3.200.0110.00619.39
7.3.190.0080.01216.25
7.3.180.0070.00716.26
7.3.170.0110.01416.57
7.3.160.0060.01216.54
7.3.120.0060.01215.03
7.3.110.0070.01014.89
7.3.100.0040.01214.73
7.3.90.0080.00914.90
7.3.80.0040.01114.77
7.3.70.0020.01014.91
7.3.60.0070.00514.81
7.3.50.0040.00914.83
7.3.40.0050.00714.80
7.3.30.0060.00814.75
7.3.20.0060.00816.68
7.3.10.0060.00816.86
7.3.00.0050.01016.74
7.2.330.0030.01516.66
7.2.320.0060.01516.77
7.2.310.0030.01516.77
7.2.300.0040.01916.67
7.2.290.0180.00016.63
7.2.250.0060.01315.16
7.2.240.0120.00815.08
7.2.230.0050.00915.15
7.2.220.0070.00715.21
7.2.210.0080.00715.08
7.2.200.0040.00715.13
7.2.190.0060.00915.19
7.2.180.0060.00815.07
7.2.170.0030.00915.16
7.2.00.0000.01219.50
7.1.330.0070.00815.87
7.1.320.0060.00816.06
7.1.310.0050.01016.04
7.1.300.0060.00615.94
7.1.290.0040.00715.85
7.1.280.0050.00915.93
7.1.270.0090.00615.94
7.1.260.0080.00715.94
7.1.100.0000.01218.22
7.1.70.0060.00617.40
7.1.60.0130.00319.70
7.1.50.0140.01834.64
7.1.00.0000.08022.56
7.0.200.0640.00314.80
7.0.140.0000.07321.95
7.0.60.0130.07720.07
7.0.50.0130.07317.77
7.0.40.0100.05019.92
7.0.30.0230.04020.18
7.0.20.0170.04020.19
7.0.10.0100.08320.32
7.0.00.0000.04320.13
5.6.280.0070.07021.02
5.6.210.0130.06320.76
5.6.200.0030.08018.13
5.6.190.0100.04020.50
5.6.180.0300.06320.45
5.6.170.0270.04320.37
5.6.160.0070.08320.47
5.6.150.0130.07018.22
5.6.140.0100.06318.14
5.6.130.0200.06718.10
5.6.120.0030.09320.98
5.6.110.0070.04321.02
5.6.100.0030.08721.13
5.6.90.0130.07720.96
5.6.80.0000.04320.28
5.5.350.0200.08020.40
5.5.340.0100.04317.91
5.5.330.0070.08320.25
5.5.320.0430.04720.28
5.5.310.0530.05720.34
5.5.300.0070.06317.95
5.5.290.0000.04718.02
5.5.280.0100.08020.64
5.5.270.0130.08020.75
5.5.260.0030.07320.86
5.5.250.0100.07720.60
5.5.240.0070.08020.36
5.4.450.0270.03719.57
5.4.440.0270.05019.24
5.4.430.0230.04019.40
5.4.420.0300.04019.40
5.4.410.0400.03719.08
5.4.400.0270.03319.09
5.4.390.0070.03319.12
5.4.380.0370.05318.43
5.4.370.0370.04718.55
5.4.360.0270.05018.55
5.4.350.0430.05318.45
5.4.340.0400.05318.72
5.4.320.0060.03912.45
5.4.310.0090.04312.45
5.4.300.0070.04012.45
5.4.290.0140.05612.45
5.4.280.0130.05812.34
5.4.270.0070.04412.34
5.4.260.0090.04812.35
5.4.250.0090.04712.35
5.4.240.0080.05712.35
5.4.230.0060.05712.34
5.4.220.0080.05512.34
5.4.210.0170.05412.34
5.4.200.0080.03912.34
5.4.190.0240.05512.34
5.4.180.0130.06912.34
5.4.170.0150.08812.34
5.4.160.0120.06012.34
5.4.150.0140.07812.34
5.4.140.0200.06712.02
5.4.130.0260.09912.01
5.4.120.0140.08111.96
5.4.110.0120.05711.96
5.4.100.0110.05111.96
5.4.90.0150.07311.96
5.4.80.0070.07111.96
5.4.70.0160.06611.96
5.4.60.0100.06711.96
5.4.50.0200.09611.96
5.4.40.0110.06111.95
5.4.30.0170.05811.95
5.4.20.0100.05211.95
5.4.10.0130.07611.95
5.4.00.0160.07411.43
5.3.290.0090.04012.80
5.3.280.0100.08812.71
5.3.270.0350.14512.72
5.3.260.0120.06412.72
5.3.250.0180.07912.72
5.3.240.0120.05812.72
5.3.230.0150.05112.71
5.3.220.0110.05912.68
5.3.210.0080.05212.68
5.3.200.0160.07412.68
5.3.190.0090.04312.68
5.3.180.0090.04612.67
5.3.170.0060.04612.67
5.3.160.0280.09612.68
5.3.150.0100.07212.67
5.3.140.0120.06112.66
5.3.130.0080.05212.66
5.3.120.0080.06212.66
5.3.110.0120.05812.66
5.3.100.0090.07312.12
5.3.90.0050.06512.08
5.3.80.0050.05412.07
5.3.70.0080.05812.08
5.3.60.0070.05012.07
5.3.50.0190.04512.00
5.3.40.0090.04612.00
5.3.30.0100.04211.96
5.3.20.0150.03511.73
5.3.10.0100.03811.70
5.3.00.0070.04011.69
5.2.170.0080.0309.20
5.2.160.0100.0299.19
5.2.150.0110.0309.19
5.2.140.0080.0379.18
5.2.130.0050.0339.14
5.2.120.0050.0319.15
5.2.110.0040.0399.15
5.2.100.0050.0409.15
5.2.90.0110.0269.15
5.2.80.0050.0409.14
5.2.70.0040.0409.14
5.2.60.0070.0349.10
5.2.50.0100.0419.07
5.2.40.0120.0399.05
5.2.30.0070.0449.03
5.2.20.0040.0449.02
5.2.10.0080.0438.92
5.2.00.0070.0448.77
5.1.60.0100.0308.06
5.1.50.0100.0308.06
5.1.40.0070.0358.04
5.1.30.0070.0378.39
5.1.20.0050.0388.41
5.1.10.0080.0328.14
5.1.00.0090.0338.14
5.0.50.0070.0266.62
5.0.40.0080.0246.48
5.0.30.0060.0416.29
5.0.20.0060.0276.26
5.0.10.0060.0286.23
5.0.00.0050.0416.23
4.4.90.0060.0214.77
4.4.80.0060.0214.75
4.4.70.0050.0214.75
4.4.60.0060.0204.75
4.4.50.0040.0234.77
4.4.40.0040.0354.71
4.4.30.0000.0264.76
4.4.20.0040.0234.85
4.4.10.0060.0224.85
4.4.00.0070.0324.76
4.3.110.0030.0264.67
4.3.100.0090.0184.67
4.3.90.0040.0224.63
4.3.80.0070.0314.59
4.3.70.0070.0194.63
4.3.60.0060.0204.63
4.3.50.0050.0224.63
4.3.40.0070.0314.53
4.3.30.0040.0243.28
4.3.20.0030.0233.25
4.3.10.0060.0183.22
4.3.00.0000.01316.93

preferences:
55.61 ms | 401 KiB | 5 Q