3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = "<br><img src='files/bagel.png'><br><br>"; $pattern = '/<img src=.*?>/'; preg_match($pattern, $subject, $matches); print_r($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.0030.01718.43
8.3.50.0110.00922.04
8.3.40.0120.00918.84
8.3.30.0070.01119.02
8.3.20.0080.00018.90
8.3.10.0050.00320.89
8.3.00.0040.00423.54
8.2.180.0070.01016.88
8.2.170.0120.00622.96
8.2.160.0070.01020.21
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00821.02
8.2.110.0060.00320.27
8.2.100.0110.00017.91
8.2.90.0040.00419.08
8.2.80.0000.00917.97
8.2.70.0000.00817.88
8.2.60.0080.00017.89
8.2.50.0040.00418.07
8.2.40.0030.00618.09
8.2.30.0070.00021.30
8.2.20.0070.00017.84
8.2.10.0000.00717.71
8.2.00.0030.00617.68
8.1.280.0110.00725.92
8.1.270.0040.00424.66
8.1.260.0030.00526.35
8.1.250.0070.00028.09
8.1.240.0060.00322.32
8.1.230.0080.00320.95
8.1.220.0040.00418.77
8.1.210.0000.00718.77
8.1.200.0030.00617.35
8.1.190.0050.00317.41
8.1.180.0000.00818.10
8.1.170.0000.00918.59
8.1.160.0060.00318.77
8.1.150.0080.00018.78
8.1.140.0040.00417.57
8.1.130.0000.00717.85
8.1.120.0040.00417.54
8.1.110.0000.00817.43
8.1.100.0000.00817.55
8.1.90.0050.00217.59
8.1.80.0040.00417.55
8.1.70.0000.00717.47
8.1.60.0030.00517.61
8.1.50.0040.00417.43
8.1.40.0030.00517.59
8.1.30.0030.00517.81
8.1.20.0040.00417.77
8.1.10.0040.00417.63
8.1.00.0070.00017.58
8.0.300.0070.00319.98
8.0.290.0040.00417.16
8.0.280.0030.00318.39
8.0.270.0020.00517.20
8.0.260.0000.00616.85
8.0.250.0040.00417.02
8.0.240.0060.00317.01
8.0.230.0000.00816.98
8.0.220.0000.00717.00
8.0.210.0070.00016.97
8.0.200.0000.01017.01
8.0.190.0000.00717.02
8.0.180.0000.00816.97
8.0.170.0030.00517.03
8.0.160.0000.00817.05
8.0.150.0030.00516.86
8.0.140.0080.00016.89
8.0.130.0030.00313.36
8.0.120.0040.00416.93
8.0.110.0040.00417.07
8.0.100.0050.00216.88
8.0.90.0040.00416.82
8.0.80.0100.01016.91
8.0.70.0060.00316.95
8.0.60.0000.00717.08
8.0.50.0030.00316.75
8.0.30.0080.01017.13
8.0.20.0130.01017.40
8.0.10.0050.00217.05
8.0.00.0110.00716.90
7.4.330.0030.00314.84
7.4.320.0030.00316.67
7.4.300.0000.00616.74
7.4.290.0030.00316.58
7.4.280.0070.00016.73
7.4.270.0030.00316.56
7.4.260.0050.00013.40
7.4.250.0040.00416.58
7.4.240.0030.00316.76
7.4.230.0000.00716.54
7.4.220.0100.00616.65
7.4.210.0070.01016.65
7.4.200.0070.00016.46
7.4.190.0030.00316.71
7.4.160.0040.01216.59
7.4.150.0030.02017.40
7.4.140.0120.01217.86
7.4.130.0110.01116.58
7.4.120.0140.00516.43
7.4.110.0100.00716.57
7.4.100.0120.00816.52
7.4.90.0120.00616.87
7.4.80.0070.01419.39
7.4.70.0060.01716.64
7.4.60.0160.00016.53
7.4.50.0030.00316.32
7.4.40.0090.00422.52
7.4.30.0080.00916.63
7.4.00.0040.01414.82
7.3.330.0020.00213.11
7.3.320.0030.00313.00
7.3.310.0030.00316.15
7.3.300.0000.00616.19
7.3.290.0100.00716.32
7.3.280.0050.01216.31
7.3.270.0100.00717.40
7.3.260.0090.01018.24
7.3.250.0070.01216.39
7.3.240.0060.01016.32
7.3.230.0100.00716.39
7.3.210.0070.01016.38
7.3.200.0090.00819.39
7.3.190.0130.00916.18
7.3.180.0110.00416.50
7.3.170.0070.01416.36
7.3.160.0120.00316.69
7.3.120.0120.00414.86
7.2.330.0150.00916.57
7.2.320.0120.00916.50
7.2.310.0160.00716.64
7.2.300.0190.00316.60
7.2.290.0150.00316.73
7.2.00.0040.01119.52
7.1.200.0030.01215.64
7.1.100.0040.00818.30
7.1.70.0100.00017.15
7.1.60.0140.01019.40
7.1.50.0090.00916.90
7.1.00.0030.04022.37
7.0.200.0040.00416.82
7.0.140.0070.07022.12
7.0.70.0070.08021.76
7.0.60.0070.08021.87
7.0.50.0070.08722.00
7.0.40.0130.07319.98
7.0.30.0000.08720.13
7.0.20.0070.07720.16
7.0.10.0070.08320.13
7.0.00.0030.08019.98
5.6.280.0100.07020.83
5.6.220.0030.08020.73
5.6.210.0000.08020.55
5.6.200.0030.08320.98
5.6.190.0030.07321.09
5.6.180.0100.05721.01
5.6.170.0070.08021.11
5.6.160.0070.07721.07
5.6.150.0030.04321.02
5.6.140.0100.06320.91
5.6.130.0030.06721.09
5.6.120.0070.07720.97
5.6.110.0100.08021.01
5.6.100.0100.07721.07
5.6.90.0030.07020.99
5.6.80.0030.08020.40
5.6.70.0100.07720.38
5.6.60.0070.07720.28
5.6.50.0000.05720.38
5.6.40.0070.07720.37
5.6.30.0070.07320.40
5.6.20.0100.07320.39
5.6.10.0030.08020.47
5.6.00.0030.06020.27
5.5.360.0130.06020.43
5.5.350.0070.07720.37
5.5.340.0030.08320.90
5.5.330.0130.07020.83
5.5.320.0030.09020.85
5.5.310.0070.08020.72
5.5.300.0100.08020.90
5.5.290.0070.08320.88
5.5.280.0000.08020.71
5.5.270.0100.07320.90
5.5.260.0100.07720.71
5.5.250.0130.06320.52
5.5.240.0000.08020.19
5.5.230.0100.07020.24
5.5.220.0070.07320.26
5.5.210.0100.07320.00
5.5.200.0030.07020.22
5.5.190.0030.07720.23
5.5.180.0030.07020.12
5.5.160.0000.08320.23
5.5.150.0030.07020.15
5.5.140.0000.06320.23
5.5.130.0000.08720.12
5.5.120.0070.07720.23
5.5.110.0070.06720.10
5.5.100.0100.07720.11
5.5.90.0070.07320.05
5.5.80.0030.07320.06
5.5.70.0130.07020.04
5.5.60.0100.06020.03
5.5.50.0070.05319.98
5.5.40.0030.07720.00
5.5.30.0130.06719.98
5.5.20.0070.06719.93
5.5.10.0030.06020.01
5.5.00.0030.08020.05
5.4.450.0030.07319.49
5.4.440.0030.08019.25
5.4.430.0000.07319.40
5.4.420.0030.08019.25
5.4.410.0070.07319.39
5.4.400.0100.07319.13
5.4.390.0100.07019.12
5.4.380.0070.07018.89
5.4.370.0030.06719.05
5.4.360.0130.06019.03
5.4.350.0070.07319.12
5.4.340.0000.06319.02
5.4.320.0000.06019.14
5.4.310.0070.06319.14
5.4.300.0070.07319.02
5.4.290.0130.06719.01
5.4.280.0030.08019.19
5.4.270.0030.07719.01
5.4.260.0000.08018.83
5.4.250.0070.07019.07
5.4.240.0070.05719.19
5.4.230.0070.04718.88
5.4.220.0030.08018.86
5.4.210.0070.06719.01
5.4.200.0070.07319.16
5.4.190.0100.07019.07
5.4.180.0030.07018.82
5.4.170.0070.07019.14
5.4.160.0000.04719.02
5.4.150.0000.07019.09
5.4.140.0030.07016.20
5.4.130.0000.08016.23
5.4.120.0030.05016.39
5.4.110.0000.06716.45
5.4.100.0070.07316.45
5.4.90.0000.06716.32
5.4.80.0030.07716.44
5.4.70.0070.06316.33
5.4.60.0000.07016.31
5.4.50.0000.06716.23
5.4.40.0030.07316.40
5.4.30.0070.06716.45
5.4.20.0000.05716.43
5.4.10.0030.06016.46
5.4.00.0000.06715.98
5.3.290.0000.06314.74
5.3.280.0000.07014.69
5.3.270.0030.05014.70
5.3.260.0100.05014.68
5.3.250.0030.05714.60
5.3.240.0000.06314.71
5.3.230.0030.07314.64
5.3.220.0070.07314.62
5.3.210.0070.05014.66
5.3.200.0030.08014.48
5.3.190.0070.03014.48
5.3.180.0000.07014.52
5.3.170.0000.06014.64
5.3.160.0000.07314.67
5.3.150.0000.07314.58
5.3.140.0000.06714.55
5.3.130.0000.07314.52
5.3.120.0000.06314.59
5.3.110.0030.07014.54
5.3.100.0000.06314.15
5.3.90.0000.06314.07
5.3.80.0070.06314.02
5.3.70.0000.05714.03
5.3.60.0070.07014.01
5.3.50.0030.07713.94
5.3.40.0030.05313.99
5.3.30.0070.06713.95
5.3.20.0030.05313.71
5.3.10.0000.07013.53
5.3.00.0000.06713.69
5.2.170.0000.06312.20
5.2.160.0030.05312.20
5.2.150.0030.06012.20
5.2.140.0000.05312.20
5.2.130.0030.05712.20
5.2.120.0070.05312.20
5.2.110.0030.05312.20
5.2.100.0070.05312.20
5.2.90.0070.05312.20
5.2.80.0070.06012.20
5.2.70.0030.05312.20
5.2.60.0030.06012.20
5.2.50.0000.06312.20
5.2.40.0100.05712.20
5.2.30.0030.06312.20
5.2.20.0070.04312.20
5.2.10.0000.06012.20
5.2.00.0030.06012.20
5.1.60.0030.05312.20
5.1.50.0000.05312.20
5.1.40.0070.05012.20
5.1.30.0030.04712.20
5.1.20.0070.04712.20
5.1.10.0130.05012.20
5.1.00.0100.04312.20
5.0.50.0000.04712.20
5.0.40.0030.04312.20
5.0.30.0030.05312.20
5.0.20.0000.04712.20
5.0.10.0030.04312.20
5.0.00.0030.06012.20
4.4.90.0000.03712.20
4.4.80.0000.04012.20
4.4.70.0000.03012.20
4.4.60.0000.03312.20
4.4.50.0030.02012.20
4.4.40.0000.05312.20
4.4.30.0000.03012.20
4.4.20.0000.03312.20
4.4.10.0000.03712.20
4.4.00.0030.04712.20
4.3.110.0000.04012.20
4.3.100.0000.03312.20
4.3.90.0000.03712.20
4.3.80.0000.05712.20
4.3.70.0030.03312.20
4.3.60.0100.02712.20
4.3.50.0030.03712.20
4.3.40.0000.05312.20
4.3.30.0070.03312.20
4.3.20.0000.03312.20
4.3.10.0030.03312.20
4.3.00.0000.03712.20

preferences:
43.95 ms | 401 KiB | 5 Q