3v4l.org

run code in 300+ PHP versions simultaneously
<?php $comment = ' <!-- comment <!-- commentreer --> -->'; preg_match('/(\<!--\s*.*?((--\>)|$))/imsx', $comment, $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.3.70.0090.01316.58
8.3.60.0130.00718.55
8.3.50.0170.00721.21
8.3.40.0060.00918.84
8.3.30.0140.00320.06
8.3.20.0000.00820.19
8.3.10.0030.00621.77
8.3.00.0030.00522.46
8.2.180.0130.01316.63
8.2.170.0100.01022.96
8.2.160.0070.00722.24
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0040.00420.94
8.2.110.0090.00022.17
8.2.100.0040.00817.84
8.2.90.0040.00419.09
8.2.80.0000.00819.28
8.2.70.0050.00317.63
8.2.60.0040.00417.79
8.2.50.0040.00418.07
8.2.40.0040.00417.90
8.2.30.0070.00019.38
8.2.20.0050.00317.62
8.2.10.0000.00917.64
8.2.00.0000.00717.67
8.1.280.0100.00725.92
8.1.270.0080.00023.99
8.1.260.0060.01226.35
8.1.250.0040.00428.09
8.1.240.0060.00323.93
8.1.230.0080.00419.09
8.1.220.0030.00517.74
8.1.210.0080.00018.77
8.1.200.0040.00417.23
8.1.190.0030.00517.30
8.1.180.0000.01018.10
8.1.170.0040.00418.52
8.1.160.0040.00418.76
8.1.150.0080.00018.72
8.1.140.0030.00617.45
8.1.130.0090.00017.76
8.1.120.0070.00017.55
8.1.110.0000.00717.43
8.1.100.0040.00417.43
8.1.90.0000.00717.57
8.1.80.0080.00017.57
8.1.70.0000.00717.54
8.1.60.0000.00817.73
8.1.50.0000.00817.50
8.1.40.0040.00417.46
8.1.30.0040.00417.69
8.1.20.0000.00817.63
8.1.10.0050.00317.69
8.1.00.0000.00817.62
8.0.300.0050.00218.77
8.0.290.0000.00717.18
8.0.280.0030.00318.47
8.0.270.0000.00717.21
8.0.260.0030.00316.82
8.0.250.0030.00317.02
8.0.240.0030.01017.01
8.0.230.0030.00317.00
8.0.220.0040.00417.02
8.0.210.0000.00716.92
8.0.200.0000.00716.96
8.0.190.0080.00017.04
8.0.180.0040.00416.99
8.0.170.0040.00416.89
8.0.160.0070.00016.86
8.0.150.0000.00716.88
8.0.140.0030.00616.83
8.0.130.0000.00513.37
8.0.120.0040.00416.97
8.0.110.0050.00316.81
8.0.100.0000.00716.96
8.0.90.0040.00416.93
8.0.80.0040.01117.03
8.0.70.0080.00016.98
8.0.60.0040.00417.01
8.0.50.0000.00816.96
8.0.30.0120.00617.13
8.0.20.0090.00917.40
8.0.10.0000.00717.08
8.0.00.0040.01316.97
7.4.330.0000.00515.05
7.4.320.0030.00316.64
7.4.300.0060.00016.51
7.4.290.0030.00316.59
7.4.280.0000.00716.64
7.4.270.0000.00716.67
7.4.260.0000.00613.38
7.4.250.0050.00316.46
7.4.240.0000.00816.72
7.4.230.0030.00316.84
7.4.220.0030.01616.82
7.4.210.0090.00616.70
7.4.200.0030.00316.39
7.4.190.0040.00416.81
7.4.160.0150.00916.46
7.4.150.0090.00917.40
7.4.140.0080.01017.86
7.4.130.0100.00716.75
7.4.120.0130.00816.59
7.4.110.0090.00916.58
7.4.100.0130.00316.54
7.4.90.0060.01216.44
7.4.80.0140.00319.39
7.4.70.0070.01116.89
7.4.60.0100.00716.38
7.4.50.0080.00016.52
7.4.40.0070.00722.77
7.4.30.0040.01216.47
7.4.00.0110.00315.14
7.3.330.0030.00313.15
7.3.320.0050.00013.04
7.3.310.0000.00716.28
7.3.300.0030.00316.29
7.3.290.0040.00916.29
7.3.280.0110.00516.33
7.3.270.0140.00317.40
7.3.260.0180.00416.37
7.3.250.0120.00716.50
7.3.240.0080.01216.51
7.3.230.0120.00616.39
7.3.210.0100.00616.52
7.3.200.0190.00619.39
7.3.190.0070.01716.21
7.3.180.0060.01316.35
7.3.170.0060.00916.27
7.3.160.0000.01616.15
7.3.120.0100.00614.90
7.2.330.0090.00916.44
7.2.320.0000.01816.54
7.2.310.0160.00716.39
7.2.300.0160.00016.64
7.2.290.0160.00616.41
7.2.60.0000.01516.88
7.2.00.0040.01419.25
7.1.200.0060.00615.93
7.1.100.0140.00916.19
7.1.70.0000.00717.25
7.1.60.0070.01619.20
7.1.50.0270.01034.90
7.1.00.0000.06322.47
7.0.200.0210.00714.75
7.0.140.0000.07022.15
7.0.60.0070.03719.89
7.0.50.0130.07717.89
7.0.40.0070.07320.14
7.0.30.0300.04020.21
7.0.20.0300.06720.18
7.0.10.0000.08720.20
7.0.00.0030.04020.18
5.6.280.0070.07021.08
5.6.210.0230.06320.62
5.6.200.0130.07318.19
5.6.190.0130.08020.77
5.6.180.2970.04320.41
5.6.170.0230.08020.48
5.6.160.0070.08020.41
5.6.150.0130.03318.22
5.6.140.0100.03718.21
5.6.130.0070.08318.11
5.6.120.0030.07320.95
5.6.110.0070.07020.97
5.6.100.0030.04321.09
5.6.90.0100.04721.10
5.6.80.0130.06320.36
5.5.350.0100.04020.43
5.5.340.0100.03317.97
5.5.330.0100.07720.40
5.5.320.0170.06720.13
5.5.310.0300.07020.29
5.5.300.0100.05717.98
5.5.290.0070.05717.95
5.5.280.0070.03720.64
5.5.270.0030.05720.76
5.5.260.0100.06720.87
5.5.250.0170.04020.58
5.5.240.0170.06720.23
5.4.450.0030.04719.24
5.4.440.0070.05319.21
5.4.430.0070.03319.41
5.4.420.0100.03719.57
5.4.410.0000.05719.35
5.4.400.0000.05018.93
5.4.390.0100.07319.09
5.4.380.0000.07019.22
5.4.370.0000.06718.79
5.4.360.0000.07719.14
5.4.350.0030.05318.88
5.4.340.0070.07019.13
5.4.320.0030.05718.95
5.4.310.0030.04719.15
5.4.300.0030.06318.80
5.4.290.0030.06319.09
5.4.280.0000.05319.07
5.4.270.0000.06318.93
5.4.260.0030.07319.06
5.4.250.0200.04319.05
5.4.240.0070.07019.07
5.4.230.0030.07319.23
5.4.220.0070.07318.91
5.4.210.0000.04318.78
5.4.200.0070.06019.08
5.4.190.0070.07319.08
5.4.180.0130.07018.91
5.4.170.0000.04718.91
5.4.160.0030.04719.13
5.4.150.0000.05318.77
5.4.140.0000.04316.55
5.4.130.0000.05316.27
5.4.120.0030.04316.26
5.4.110.0070.07316.34
5.4.100.0000.06716.06
5.4.90.0030.08016.39
5.4.80.0030.07016.37
5.4.70.0000.05316.39
5.4.60.0030.05316.33
5.4.50.0000.06716.45
5.4.40.0000.04316.37
5.4.30.0000.04016.13
5.4.20.0070.06716.27
5.4.10.0070.07716.43
5.4.00.0030.03715.90
5.3.290.0100.03014.71
5.3.280.0070.07014.43
5.3.270.0030.04714.55
5.3.260.0030.05714.53
5.3.250.0030.05014.46
5.3.240.0170.06314.46
5.3.230.0070.07314.46
5.3.220.0130.07014.47
5.3.210.0100.06314.50
5.3.200.0030.04314.49
5.3.190.0000.05714.42
5.3.180.0070.04014.41
5.3.170.0030.08014.51
5.3.160.0030.05314.64
5.3.150.0000.05014.43
5.3.140.0070.04014.60
5.3.130.0030.07714.39
5.3.120.0030.07314.37
5.3.110.0030.05314.48
5.3.100.0030.04313.87
5.3.90.0130.04713.86
5.3.80.0030.06313.88
5.3.70.0030.05313.86
5.3.60.0070.06713.91
5.3.50.0030.04713.74
5.3.40.0070.07014.00
5.3.30.0030.07713.68
5.3.20.0030.05013.52
5.3.10.0030.04313.49
5.3.00.0170.06013.54
5.2.170.0030.06312.44
5.2.160.0070.06312.44
5.2.150.0000.06312.44
5.2.140.0030.06012.44
5.2.130.0030.05712.44
5.2.120.0030.05712.44
5.2.110.0030.03712.44
5.2.100.0030.03012.44
5.2.90.0030.06012.44
5.2.80.0130.02312.44
5.2.70.0000.04312.44
5.2.60.0070.06312.44
5.2.50.0000.05312.44
5.2.40.0030.06012.44
5.2.30.0000.05712.44
5.2.20.0130.04712.44
5.2.10.0070.05712.44
5.2.00.0070.06012.44
5.1.60.0070.05012.44
5.1.50.0070.02712.44
5.1.40.0000.02312.44
5.1.30.0000.05712.44
5.1.20.0030.03312.44
5.1.10.0030.05012.44
5.1.00.0030.04312.44
5.0.50.0000.03312.44
5.0.40.0000.03012.44
5.0.30.0070.05712.44
5.0.20.0070.04012.44
5.0.10.0000.03712.44
5.0.00.0030.04012.44
4.4.90.0000.03312.44
4.4.80.0030.03312.44
4.4.70.0030.02012.44
4.4.60.0000.03312.44
4.4.50.0030.02712.44
4.4.40.0030.04012.44
4.4.30.0000.01712.44
4.4.20.0030.02012.44
4.4.10.0030.03712.44
4.4.00.0000.05012.44
4.3.110.0000.02012.44
4.3.100.0000.03712.44
4.3.90.0000.03712.44
4.3.80.0030.04312.44
4.3.70.0030.03312.44
4.3.60.0000.03712.44
4.3.50.0030.02712.44
4.3.40.0070.03312.44
4.3.30.0030.02712.44
4.3.20.0000.03312.44
4.3.10.0000.04012.44
4.3.00.0030.03012.44

preferences:
44.79 ms | 401 KiB | 5 Q