3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = <<<TXT /some text/ TXT; $pattern = "/"; $pattern = preg_quote($pattern); $matches = array(); $match = preg_match_all("/" . $pattern . "/gmi", $text, $matches); var_dump($match, $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.0180.00418.68
8.3.50.0100.00821.92
8.3.40.0040.01118.72
8.3.30.0030.01318.79
8.3.20.0050.00318.67
8.3.10.0040.00420.92
8.3.00.0030.00521.60
8.2.180.0150.00016.50
8.2.170.0170.00022.96
8.2.160.0030.01720.32
8.2.150.0000.00824.18
8.2.140.0000.00724.66
8.2.130.0080.00026.16
8.2.120.0040.00419.67
8.2.110.0030.00622.30
8.2.100.0080.00417.71
8.2.90.0000.00919.28
8.2.80.0080.00017.97
8.2.70.0040.00417.50
8.2.60.0050.00317.88
8.2.50.0080.00018.07
8.2.40.0040.00718.22
8.2.30.0000.00721.10
8.2.20.0040.00417.57
8.2.10.0000.00717.74
8.2.00.0040.00417.79
8.1.280.0180.00325.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0070.00323.91
8.1.230.0070.00423.88
8.1.220.0040.00418.77
8.1.210.0040.00419.11
8.1.200.0090.00017.35
8.1.190.0070.00017.51
8.1.180.0030.00618.10
8.1.170.0040.00418.66
8.1.160.0070.00018.80
8.1.150.0000.00818.68
8.1.140.0000.00817.32
8.1.130.0000.00717.82
8.1.120.0030.00517.48
8.1.110.0090.00017.50
8.1.100.0070.00017.44
8.1.90.0000.00717.44
8.1.80.0040.00417.38
8.1.70.0070.00017.46
8.1.60.0060.00317.61
8.1.50.0000.00817.37
8.1.40.0030.00717.50
8.1.30.0080.00017.64
8.1.20.0050.00317.54
8.1.10.0040.00417.41
8.1.00.0000.00817.45
8.0.300.0050.00320.02
8.0.290.0000.00717.18
8.0.280.0000.00718.48
8.0.270.0030.00417.17
8.0.260.0040.00416.95
8.0.250.0000.00716.96
8.0.240.0000.01116.97
8.0.230.0000.00716.84
8.0.220.0040.00416.97
8.0.210.0030.00316.91
8.0.200.0040.00416.88
8.0.190.0050.00316.98
8.0.180.0020.00516.90
8.0.170.0080.00416.98
8.0.160.0050.00216.95
8.0.150.0040.00416.91
8.0.140.0040.00416.90
8.0.130.0030.00313.42
8.0.120.0040.00416.96
8.0.110.0030.00316.99
8.0.100.0020.00516.86
8.0.90.0070.00016.83
8.0.80.0090.00916.83
8.0.70.0000.00716.91
8.0.60.0040.00416.78
8.0.50.0040.00416.81
8.0.30.0060.01217.01
8.0.20.0050.01717.40
8.0.10.0000.00717.04
8.0.00.0090.00816.68
7.4.330.0030.00314.60
7.4.320.0000.00616.30
7.4.300.0000.00616.50
7.4.290.0000.00716.54
7.4.280.0030.00316.51
7.4.270.0000.00716.45
7.4.260.0060.00013.20
7.4.250.0000.00816.43
7.4.240.0000.00716.45
7.4.230.0000.00716.63
7.4.220.0120.00616.48
7.4.210.0100.00716.47
7.4.200.0060.00316.38
7.4.190.0070.00016.61
7.4.160.0110.00616.50
7.4.150.0070.01017.40
7.4.140.0130.00517.86
7.4.130.0110.00716.43
7.4.120.0070.01116.42
7.4.110.0060.01316.52
7.4.100.0130.00616.63
7.4.90.0070.01016.58
7.4.80.0090.00619.39
7.4.70.0060.01116.48
7.4.60.0090.00616.53
7.4.50.0040.00416.52
7.4.40.0070.01022.52
7.4.30.0130.00716.65
7.4.00.0090.00614.97
7.3.330.0050.00013.05
7.3.320.0060.00013.20
7.3.310.0000.00716.42
7.3.300.0030.00316.31
7.3.290.0030.01616.34
7.3.280.0080.00816.35
7.3.270.0170.00017.40
7.3.260.0110.00918.24
7.3.250.0120.00816.36
7.3.240.0040.01216.25
7.3.230.0030.01316.48
7.3.210.0030.01316.40
7.3.200.0070.01019.39
7.3.190.0160.00816.31
7.3.180.0030.01416.46
7.3.170.0110.01116.32
7.3.160.0060.00916.27
7.3.120.0120.00314.84
7.2.330.0110.00716.54
7.2.320.0030.02016.36
7.2.310.0070.01116.46
7.2.300.0140.00716.86
7.2.290.0070.01016.74
7.2.00.0060.00619.08
7.1.200.0000.01215.87
7.1.100.0040.00817.69
7.1.70.0040.00717.27
7.1.60.0070.01719.40
7.1.50.0000.01816.74
7.1.00.0100.06022.50
7.0.200.0000.00716.80
7.0.140.0070.07022.01
7.0.70.0100.06721.67
7.0.60.0030.07321.75
7.0.50.0030.07022.14
7.0.40.0070.08320.15
7.0.30.0030.08720.07
7.0.20.0130.07319.95
7.0.10.0070.08320.16
7.0.00.0030.07720.13
5.6.280.0030.07020.91
5.6.220.0030.07720.61
5.6.210.0100.07320.48
5.6.200.0000.08320.96
5.6.190.0030.07021.08
5.6.180.0000.07720.95
5.6.170.0030.07321.13
5.6.160.0100.07021.04
5.6.150.0030.08321.13
5.6.140.0070.07721.07
5.6.130.0100.07721.02
5.6.120.0000.08721.10
5.6.110.0070.08021.06
5.6.100.0100.07321.00
5.6.90.0100.04021.11
5.6.80.0100.07320.46
5.6.70.0030.08020.41
5.6.60.0030.05720.39
5.6.50.0100.07020.43
5.6.40.0070.07720.43
5.6.30.0030.08320.40
5.6.20.0000.08020.39
5.6.10.0030.06720.38
5.6.00.0030.08720.40
5.5.360.0030.05720.37
5.5.350.0030.08720.30
5.5.340.0130.06720.77
5.5.330.0070.07720.80
5.5.320.0070.08320.77
5.5.310.0030.07320.76
5.5.300.0000.07720.77
5.5.290.0130.05720.91
5.5.280.0000.08720.83
5.5.270.0070.08020.63
5.5.260.0000.07320.88
5.5.250.0100.08320.67
5.5.240.0070.07720.02
5.5.230.0170.06020.29
5.5.220.0030.07020.20
5.5.210.0030.04320.22
5.5.200.0030.05020.25
5.5.190.0070.08320.12
5.5.180.0100.07720.18
5.5.160.0030.07020.03
5.5.150.0070.07320.21
5.5.140.0030.07720.25
5.5.130.0070.07720.21
5.5.120.0100.07320.25
5.5.110.0030.08020.12
5.5.100.0070.07320.16
5.5.90.0070.07320.14
5.5.80.0030.07720.09
5.5.70.0130.06320.05
5.5.60.0070.06720.02
5.5.50.0100.06020.14
5.5.40.0070.08019.93
5.5.30.0030.08020.14
5.5.20.0030.08019.99
5.5.10.0030.08020.02
5.5.00.0000.08320.02
5.4.450.0070.07719.37
5.4.440.0030.08319.55
5.4.430.0030.07319.37
5.4.420.0070.08019.24
5.4.410.0070.04719.31
5.4.400.0030.06719.14
5.4.390.0000.05319.05
5.4.380.0170.06019.11
5.4.370.0030.03719.06
5.4.360.0000.07319.16
5.4.350.0030.06719.03
5.4.340.0100.06719.03
5.4.320.0000.05718.96
5.4.310.0070.07719.11
5.4.300.0030.08719.10
5.4.290.0000.07719.04
5.4.280.0030.07319.23
5.4.270.0070.07319.04
5.4.260.0030.06719.12
5.4.250.0070.05018.78
5.4.240.0070.07719.02
5.4.230.0130.06319.22
5.4.220.0000.06319.06
5.4.210.0070.07319.22
5.4.200.0000.07018.81
5.4.190.0070.07019.09
5.4.180.0100.06319.05
5.4.170.0000.06019.05
5.4.160.0030.06319.09
5.4.150.0070.07719.09
5.4.140.0000.07716.36
5.4.130.0030.06016.05
5.4.120.0030.05316.26
5.4.110.0030.05716.34
5.4.100.0030.06016.33
5.4.90.0100.04716.38
5.4.80.0030.06716.36
5.4.70.0100.06316.31
5.4.60.0070.06316.23
5.4.50.0030.07016.18
5.4.40.0030.06316.25
5.4.30.0100.06316.39
5.4.20.0030.07016.37
5.4.10.0100.06316.19
5.4.00.0030.07015.82
5.3.290.0030.07314.61
5.3.280.0000.05714.55
5.3.270.0030.06714.61
5.3.260.0070.06014.45
5.3.250.0000.06714.59
5.3.240.0070.07714.55
5.3.230.0100.06314.45
5.3.220.0030.06014.55
5.3.210.0030.07714.47
5.3.200.0070.07014.57
5.3.190.0070.06714.38
5.3.180.0070.07714.54
5.3.170.0030.07714.55
5.3.160.0070.05714.50
5.3.150.0030.07714.47
5.3.140.0000.07314.41
5.3.130.0070.05714.50
5.3.120.0100.05014.40
5.3.110.0030.07714.50
5.3.100.0030.06714.01
5.3.90.0030.07713.88
5.3.80.0030.07014.01
5.3.70.0070.07313.97
5.3.60.0070.06713.98
5.3.50.0000.07013.70
5.3.40.0070.07013.94
5.3.30.0000.06713.68
5.3.20.0070.07013.62
5.3.10.0030.05713.64
5.3.00.0030.03313.59
5.2.170.0030.05712.27
5.2.160.0070.05712.27
5.2.150.0000.05712.27
5.2.140.0000.04312.27
5.2.130.0000.05312.27
5.2.120.0030.06312.27
5.2.110.0030.03012.27
5.2.100.0000.03012.27
5.2.90.0100.03712.27
5.2.80.0030.03012.27
5.2.70.0030.03312.27
5.2.60.0000.04312.27
5.2.50.0000.05712.27
5.2.40.0030.05012.27
5.2.30.0000.06312.27
5.2.20.0030.05712.27
5.2.10.0030.06312.27
5.2.00.0070.05312.27
5.1.60.0100.03712.27
5.1.50.0030.04312.27
5.1.40.0030.05012.27
5.1.30.0070.05312.27
5.1.20.0030.04312.27
5.1.10.0000.04312.27
5.1.00.0000.05312.27
5.0.50.0070.03712.27
5.0.40.0030.04312.27
5.0.30.0000.05012.27
5.0.20.0030.03712.27
5.0.10.0000.03712.27
5.0.00.0030.04312.27
4.4.90.0000.01312.27
4.4.80.0030.03012.27
4.4.70.0000.03712.27
4.4.60.0030.03312.27
4.4.50.0000.03312.27
4.4.40.0030.03312.27
4.4.30.0030.02712.27
4.4.20.0000.03012.27
4.4.10.0000.03712.27
4.4.00.0030.05312.27
4.3.110.0030.02312.27
4.3.100.0000.03312.27
4.3.90.0000.03012.27
4.3.80.0000.05312.27
4.3.70.0000.02312.27
4.3.60.0000.03312.27
4.3.50.0030.03012.27
4.3.40.0000.03712.27
4.3.30.0030.02712.27
4.3.20.0000.02312.27
4.3.10.0030.03012.27
4.3.00.0030.03312.27

preferences:
41.42 ms | 400 KiB | 5 Q