3v4l.org

run code in 300+ PHP versions simultaneously
<?php $haystack3 = '<span class=\'descr\'>test, test2, test3</span> <span class=\'descr\'>test</span> <span class=\'descr\'>test4 test5</span>'; preg_match_all('#^<span class=\'descr\'>(.*?)</span>$#m', $haystack3, $matches3); var_dump(implode(',', str_replace(array(', ', ' '), ',', $matches3[1])));

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.130.0040.00418.33
8.3.120.0120.00318.90
8.3.110.0030.00620.94
8.3.100.0080.00824.06
8.3.90.0060.00926.77
8.3.80.0100.00016.50
8.3.70.0130.00618.43
8.3.60.0080.00816.75
8.3.50.0170.00318.27
8.3.40.0040.01218.83
8.3.30.0120.00318.79
8.3.20.0030.00624.18
8.3.10.0080.00024.66
8.3.00.0050.00226.16
8.2.250.0130.01016.84
8.2.240.0160.00617.20
8.2.230.0090.00022.58
8.2.220.0070.00337.54
8.2.210.0040.00426.77
8.2.200.0060.00316.88
8.2.190.0140.00716.63
8.2.180.0070.01425.92
8.2.170.0150.00018.96
8.2.160.0100.00322.96
8.2.150.0050.00225.66
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0080.00026.16
8.2.110.0030.00621.30
8.2.100.0080.00417.84
8.2.90.0080.00018.09
8.2.80.0040.00418.22
8.2.70.0040.00417.75
8.2.60.0080.00017.75
8.2.50.0000.00817.75
8.2.40.0030.00618.16
8.2.30.0020.00518.11
8.2.20.0040.00418.09
8.2.10.0080.00019.10
8.2.00.0080.00019.29
8.1.300.0030.00618.68
8.1.290.0030.00918.88
8.1.280.0150.00325.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00623.92
8.1.230.0090.00321.04
8.1.220.0080.00017.74
8.1.210.0080.00019.16
8.1.200.0000.00817.47
8.1.190.0000.00817.23
8.1.180.0050.00318.10
8.1.170.0030.00618.59
8.1.160.0060.00318.96
8.1.150.0000.00718.79
8.1.140.0070.00018.88
8.1.130.0040.00417.47
8.1.120.0050.00317.59
8.1.110.0080.00017.51
8.1.100.0000.00817.61
8.1.90.0080.00017.62
8.1.80.0000.00717.56
8.1.70.0000.00717.56
8.1.60.0050.00317.67
8.1.50.0000.00817.64
8.1.40.0040.00417.61
8.1.30.0030.00517.80
8.1.20.0070.00717.82
8.1.10.0080.00017.75
8.1.00.0080.00017.54
8.0.300.0000.00719.96
8.0.290.0000.00816.75
8.0.280.0070.00018.62
8.0.270.0030.00318.11
8.0.260.0000.00816.79
8.0.250.0050.00217.11
8.0.240.0030.00316.99
8.0.230.0000.00717.14
8.0.220.0030.00317.00
8.0.210.0000.00817.04
8.0.200.0000.00817.04
8.0.190.0050.00317.09
8.0.180.0000.00717.05
8.0.170.0000.00816.90
8.0.160.0000.00816.94
8.0.150.0040.00417.00
8.0.140.0070.00016.96
8.0.130.0060.00313.39
8.0.120.0040.00416.98
8.0.110.0040.00416.99
8.0.100.0040.00417.00
8.0.90.0040.00416.94
8.0.80.0010.00716.94
8.0.70.0050.00316.92
8.0.60.0030.00516.98
8.0.50.0040.00416.94
8.0.30.0060.00316.91
8.0.20.0020.00516.98
8.0.10.0050.00316.97
8.0.00.0060.00217.00
7.4.330.0000.00615.55
7.4.320.0090.00016.68
7.4.300.0000.00616.69
7.4.290.0000.00816.70
7.4.280.0080.00016.67
7.4.270.0070.00016.77
7.4.260.0000.00513.50
7.4.250.0040.00416.79
7.4.240.0030.00316.78
7.4.230.0000.00716.78
7.4.220.0020.00616.68
7.4.210.0030.00416.63
7.4.200.0020.00616.73
7.4.190.0010.00716.65
7.4.180.0030.00416.76
7.4.160.0020.00616.77
7.4.150.0050.00316.74
7.4.140.0060.00216.63
7.4.130.0050.00316.63
7.4.120.0040.00416.74
7.4.110.0040.00416.58
7.4.100.0060.00316.76
7.4.90.0050.00416.68
7.4.80.0040.00416.59
7.4.70.0030.00616.65
7.4.60.0070.00116.64
7.4.50.0050.00316.42
7.4.40.0040.00416.56
7.4.30.0050.00316.67
7.4.20.0020.00616.52
7.4.10.0020.00516.52
7.4.00.0050.00316.68
7.3.330.0050.00316.44
7.3.320.0000.00513.05
7.3.310.0080.00016.30
7.3.300.0000.00716.34
7.3.290.0040.00316.35
7.3.280.0030.00516.33
7.3.270.0010.00716.36
7.3.260.0040.00416.29
7.3.250.0040.00316.27
7.3.240.0040.00316.30
7.3.230.0050.00316.32
7.3.220.0020.00616.23
7.3.210.0010.00716.21
7.3.200.0030.00516.23
7.3.190.0060.00216.23
7.3.180.0040.00516.25
7.3.170.0030.00416.23
7.3.160.0050.00316.28
7.3.150.0000.00816.22
7.3.140.0040.00316.29
7.3.130.0030.00516.28
7.3.120.0030.00416.20
7.3.110.0040.00416.20
7.3.100.0030.00516.20
7.3.90.0040.00416.57
7.3.80.0030.00516.31
7.3.70.0020.00616.37
7.3.60.0060.00216.45
7.3.50.0030.00616.49
7.3.40.0010.00716.41
7.3.30.0050.00316.42
7.3.20.0030.00516.89
7.3.10.0040.00416.84
7.3.00.0060.00216.78
7.2.340.0060.00616.45
7.2.330.0100.00216.34
7.2.320.0070.00516.50
7.2.310.0120.00016.45
7.2.300.0060.00516.40
7.2.290.0080.00316.38
7.2.280.0040.00616.41
7.2.270.0060.00516.46
7.2.260.0070.00416.42
7.2.250.0070.00416.35
7.2.240.0070.00516.31
7.2.230.0060.00416.47
7.2.220.0080.00416.45
7.2.210.0100.00216.48
7.2.200.0060.00616.56
7.2.190.0080.00416.52
7.2.180.0050.00716.48
7.2.170.0090.00116.53
7.2.160.0070.00416.60
7.2.150.0150.00216.63
7.2.140.0060.00616.62
7.2.130.0100.00516.84
7.2.120.0070.00416.66
7.2.110.0090.00516.64
7.2.100.0100.00416.65
7.2.90.0080.00516.53
7.2.80.0090.00216.58
7.2.70.0050.00616.71
7.2.60.0090.00416.51
7.2.50.0110.00316.68
7.2.40.0030.01116.63
7.2.30.0090.00316.66
7.2.20.0040.00616.61
7.2.10.0120.00116.57
7.2.00.0090.00416.71
7.1.330.0070.00415.70
7.1.320.0070.00215.76
7.1.310.0080.00415.71
7.1.300.0060.00515.53
7.1.290.0090.00215.62
7.1.280.0050.00515.63
7.1.270.0090.00315.60
7.1.260.0040.00615.64
7.1.250.0090.00315.45
7.1.240.0070.00315.56
7.1.230.0080.00515.48
7.1.220.0060.00415.57
7.1.210.0050.00415.61
7.1.200.0080.00315.58
7.1.190.0070.00415.57
7.1.180.0050.00615.51
7.1.170.0040.00615.47
7.1.160.0040.00615.56
7.1.150.0030.00815.59
7.1.140.0080.00715.53
7.1.130.0070.00415.56
7.1.120.0080.00315.60
7.1.110.0090.00115.69
7.1.100.0080.00215.69
7.1.90.0090.00415.53
7.1.80.0040.00815.74
7.1.70.0050.00515.53
7.1.60.0050.00915.63
7.1.50.0080.00615.65
7.1.40.0110.00315.72
7.1.30.0080.00815.70
7.1.20.0110.00515.71
7.1.10.0070.00415.68
7.1.00.0050.00515.60
7.0.330.0070.00415.14
7.0.320.0070.00315.28
7.0.310.0050.00515.19
7.0.300.0050.00515.22
7.0.290.0030.00715.22
7.0.280.0030.00615.14
7.0.270.0100.00015.17
7.0.260.0080.00215.27
7.0.250.0070.00215.35
7.0.240.0070.00215.21
7.0.230.0050.00515.31
7.0.220.0080.00315.21
7.0.210.0070.00315.31
7.0.200.0050.00415.23
7.0.190.0020.00715.23
7.0.180.0040.00615.29
7.0.170.0080.00315.32
7.0.160.0080.00315.13
7.0.150.0090.00715.20
7.0.140.0050.00515.22
7.0.130.0060.00515.29
7.0.120.0030.00715.39
7.0.110.0050.00515.20
7.0.100.0040.00615.27
7.0.90.0040.00615.13
7.0.80.0040.00915.09
7.0.70.0100.00315.16
7.0.60.0080.00315.04
7.0.50.0070.00415.00
7.0.40.0030.00715.17
7.0.30.0070.00415.16
7.0.20.0060.00415.14
7.0.10.0040.00615.20
7.0.00.0080.00315.19
5.6.400.0060.00415.86
5.6.390.0060.00415.68
5.6.380.0060.00315.75
5.6.370.0070.00315.70
5.6.360.0020.00715.81
5.6.350.0070.00215.80
5.6.340.0030.00515.86
5.6.330.0060.00215.79
5.6.320.0040.00515.79
5.6.310.0060.00315.81
5.6.300.0070.00215.69
5.6.290.0050.00415.82
5.6.280.0070.00315.91
5.6.270.0000.01015.87
5.6.260.0050.00415.71
5.6.250.0050.00415.67
5.6.240.0060.00315.82
5.6.230.0050.00515.88
5.6.220.0090.00015.93
5.6.210.0060.00415.72
5.6.200.0050.00515.93
5.6.190.0030.00716.00
5.6.180.0040.00515.93
5.6.170.0010.00815.88
5.6.160.0090.00016.07
5.6.150.0080.00216.01
5.6.140.0070.00215.89
5.6.130.0040.00515.85
5.6.120.0060.00415.83
5.6.110.0050.00515.93
5.6.100.0040.00515.93
5.6.90.0010.00815.77
5.6.80.0040.00515.74
5.6.70.0050.00415.86
5.6.60.0040.00516.03
5.6.50.0030.00715.69
5.6.40.0060.00315.71
5.6.30.0020.00615.82
5.6.20.0010.00815.73
5.6.10.0040.00515.70
5.6.00.0040.00515.68
5.5.380.0050.00415.90
5.5.370.0010.00715.94
5.5.360.0040.00415.60
5.5.350.0020.00515.70
5.5.340.0050.00515.70
5.5.330.0060.00315.72
5.5.320.0020.00715.77
5.5.310.0040.00415.73
5.5.300.0010.00815.67
5.5.290.0070.00215.78
5.5.280.0070.00315.73
5.5.270.0060.00415.62
5.5.260.0070.00315.72
5.5.250.0070.00315.83
5.5.240.0080.00115.68
5.5.230.0030.00715.77
5.5.220.0060.00315.92
5.5.210.0070.00215.89
5.5.200.0060.00315.76
5.5.190.0050.00515.65
5.5.180.0070.00215.77
5.5.170.0040.00515.81
5.5.160.0060.00315.69
5.5.150.0080.00115.70
5.5.140.0090.00015.58
5.5.130.0050.00415.55
5.5.120.0050.00415.54
5.5.110.0050.00415.58
5.5.100.0080.00115.72
5.5.90.0020.00815.69
5.5.80.0050.00415.71
5.5.70.0040.00415.74
5.5.60.0090.00015.70
5.5.50.0030.00515.63
5.5.40.0020.00715.63
5.5.30.0020.00715.67
5.5.20.0070.00315.84
5.5.10.0050.00415.65
5.5.00.0050.00515.65
5.4.450.0060.00112.70
5.4.440.0040.00312.76
5.4.430.0040.00312.60
5.4.420.0020.00512.61
5.4.410.0040.00312.58
5.4.400.0060.00012.49
5.4.390.0000.00512.49
5.4.380.0030.00312.45
5.4.370.0030.00312.57
5.4.360.0020.00412.61
5.4.350.0010.00412.47
5.4.340.0000.00512.55
5.4.330.0030.00312.54
5.4.320.0010.00412.60
5.4.310.0040.00112.52
5.4.300.0010.00412.58
5.4.290.0040.00212.59
5.4.280.0020.00312.55
5.4.270.0050.00012.56
5.4.260.0000.00512.56
5.4.250.0040.00312.43
5.4.240.0060.00012.54
5.4.230.0050.00112.35
5.4.220.0020.00312.32
5.4.210.0010.00412.43
5.4.200.0030.00312.34
5.4.190.0030.00212.37
5.4.180.0030.00312.27
5.4.170.0000.00612.38
5.4.160.0000.00612.46
5.4.150.0010.00512.48
5.4.140.0030.00312.49
5.4.130.0030.00212.54
5.4.120.0040.00212.64
5.4.110.0020.00412.58
5.4.100.0010.00412.57
5.4.90.0000.00612.50
5.4.80.0030.00312.58
5.4.70.0060.00012.68
5.4.60.0050.00212.72
5.4.50.0030.00212.61
5.4.40.0020.00412.64
5.4.30.0000.00612.63
5.4.20.0000.00612.67
5.4.10.0040.00312.71
5.4.00.0030.00412.55
5.3.290.0060.00213.23
5.3.280.0060.00212.96
5.3.270.0020.00612.95
5.3.260.0060.00213.04
5.3.250.0020.00612.94
5.3.240.0030.00512.90
5.3.230.0060.00213.09
5.3.220.0050.00313.01
5.3.210.0050.00312.93
5.3.200.0050.00312.88
5.3.190.0060.00212.99
5.3.180.0050.00313.04
5.3.170.0040.00412.93
5.3.160.0020.00513.32
5.3.150.0030.00513.04
5.3.140.0050.00313.18
5.3.130.0070.00112.99
5.3.120.0080.00012.81
5.3.110.0070.00112.79
5.3.100.0050.00312.99
5.3.90.0040.00313.04
5.3.80.0010.00612.77
5.3.70.0030.00412.78
5.3.60.0050.00212.87
5.3.50.0050.00312.73
5.3.40.0050.00312.91
5.3.30.0070.00112.90
5.3.20.0040.00312.75
5.3.10.0020.00512.73
5.3.00.0050.00312.66
5.2.170.0030.00411.97
5.2.160.0040.00312.04
5.2.150.0050.00112.08
5.2.140.0040.00311.91
5.2.130.0040.00211.95
5.2.120.0050.00111.92
5.2.110.0070.00012.03
5.2.100.0040.00312.02
5.2.90.0050.00111.82
5.2.80.0000.00711.90
5.2.70.0050.00211.84
5.2.60.0040.00311.82
5.2.50.0010.00511.75
5.2.40.0040.00211.90
5.2.30.0040.00211.82
5.2.20.0020.00511.73
5.2.10.0050.00211.66
5.2.00.0030.00311.70
5.1.60.0030.00311.05
5.1.50.0020.00311.05
5.1.40.0030.00311.11
5.1.30.0030.00311.24
5.1.20.0040.00211.05
5.1.10.0040.00211.11
5.1.00.0060.00011.06
5.0.50.0030.00211.05
5.0.40.0020.00411.05
5.0.30.0030.00211.05
5.0.20.0020.00311.05
5.0.10.0030.00211.05
5.0.00.0030.00211.05
4.4.90.0020.00111.05
4.4.80.0030.00111.05
4.4.70.0020.00111.05
4.4.60.0040.00011.05
4.4.50.0030.00011.05
4.4.40.0020.00111.05
4.4.30.0040.00011.05
4.4.20.0010.00211.05
4.4.10.0040.00011.05
4.4.00.0010.00211.05
4.3.110.0030.00111.05
4.3.100.0010.00211.05
4.3.90.0020.00111.05
4.3.80.0010.00211.05
4.3.70.0030.00011.05
4.3.60.0010.00211.05
4.3.50.0020.00111.05
4.3.40.0000.00311.05
4.3.30.0000.00311.05
4.3.20.0010.00211.05
4.3.10.0020.00111.05
4.3.00.0020.00111.05

preferences:
31.12 ms | 403 KiB | 5 Q