3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = 'Aenean lacinia bibendum <a href="/life">life</a> sed consectetur. <a href="/work">Work</a> quis risus eget urna mollis ornare <a href="/about">about</a> leo. <h1> attribute="whatever">asiponfpweg ihnasegio</h1>asd <p>whatever</p> <img src=""></img> <h3> attribute="whatever">asiponfpweg ihnasegio</h3> <p>whatever</p> <p>whatever</p> <h1><span> attribute="whatever">asiponfpweg ihnasegio</span></h3> <p>whatever</p> <h3> attribute="whatever">asiponfpweg ihnasegio</h3>'; preg_match_all('/<h\d.+?(?=<h\d|$)/s', $html, $matches); print_r($matches[0]);

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.4.140.0120.01017.91
8.4.130.0140.00618.05
8.4.120.0030.00620.60
8.4.110.0100.01120.34
8.4.100.0140.00717.81
8.4.90.0150.00718.05
8.4.80.0110.00820.43
8.4.70.0050.00318.01
8.4.60.0060.00318.79
8.4.50.0110.00919.73
8.4.40.0160.00317.95
8.4.30.0060.01318.87
8.4.20.0120.00820.64
8.4.10.0040.00417.93
8.3.270.0130.00716.77
8.3.260.0100.00916.53
8.3.250.0080.00718.95
8.3.240.0040.00520.74
8.3.230.0090.01016.73
8.3.220.0090.01019.04
8.3.210.0030.00516.69
8.3.200.0030.00516.71
8.3.190.0080.00816.74
8.3.180.0150.00416.50
8.3.170.0070.01116.47
8.3.160.0070.01118.60
8.3.150.0120.00616.82
8.3.140.0060.00317.11
8.3.130.0030.00618.45
8.3.120.0050.00316.62
8.3.110.0040.00416.63
8.3.100.0060.00316.57
8.3.90.0080.00026.77
8.3.80.0030.00619.36
8.3.70.0070.01116.63
8.3.60.0110.00318.43
8.3.50.0140.00324.48
8.3.40.0140.00718.84
8.3.30.0090.00619.16
8.3.20.0050.00324.18
8.3.10.0040.00424.66
8.3.00.0000.00726.16
8.2.290.0100.00820.71
8.2.280.0080.01218.50
8.2.270.0120.00816.69
8.2.260.0150.00316.86
8.2.250.0090.00616.93
8.2.240.0040.00417.11
8.2.230.0090.00020.94
8.2.220.0040.00416.73
8.2.210.0080.00026.77
8.2.200.0090.00318.88
8.2.190.0150.00016.75
8.2.180.0030.01225.92
8.2.170.0080.00822.96
8.2.160.0080.00522.25
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0030.00526.35
8.2.110.0080.00321.12
8.2.100.0120.00017.91
8.2.90.0040.00418.21
8.2.80.0000.00817.97
8.2.70.0030.00617.63
8.2.60.0040.00417.38
8.2.50.0030.00518.05
8.2.40.0000.00820.07
8.2.30.0000.00718.11
8.2.20.0000.00718.00
8.2.10.0020.00519.09
8.2.00.0070.00019.11
8.1.330.0100.00921.90
8.1.320.0110.00816.25
8.1.310.0060.01216.40
8.1.300.0000.01018.56
8.1.290.0060.00330.84
8.1.280.0070.01025.92
8.1.270.0000.00823.99
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0030.00622.47
8.1.230.0080.00420.91
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0060.00317.48
8.1.190.0080.00017.35
8.1.180.0000.00818.10
8.1.170.0000.00818.77
8.1.160.0050.00218.75
8.1.150.0000.00818.82
8.1.140.0040.00418.85
8.1.130.0040.00420.04
8.1.120.0000.00717.55
8.1.110.0040.00417.52
8.1.100.0040.00417.50
8.1.90.0050.00317.47
8.1.80.0040.00417.53
8.1.70.0000.00817.46
8.1.60.0060.00317.59
8.1.50.0040.00417.62
8.1.40.0030.00917.57
8.1.30.0040.00417.69
8.1.20.0050.00317.78
8.1.10.0040.00417.75
8.1.00.0040.00417.64
8.0.300.0070.00019.83
8.0.290.0040.00416.75
8.0.280.0030.00318.38
8.0.270.0030.00318.09
8.0.260.0070.00018.32
8.0.250.0030.00316.99
8.0.240.0070.00016.93
8.0.230.0050.00216.95
8.0.220.0060.00016.93
8.0.210.0000.00816.92
8.0.200.0030.00317.03
8.0.190.0040.00417.06
8.0.180.0080.00016.96
8.0.170.0030.00616.95
8.0.160.0040.00416.96
8.0.150.0040.00416.92
8.0.140.0060.00316.88
8.0.130.0030.00313.36
8.0.120.0030.00416.84
8.0.110.0070.00016.79
8.0.100.0000.00716.97
8.0.90.0060.00316.77
8.0.80.0110.00816.93
8.0.70.0070.00017.04
8.0.60.0040.00416.80
8.0.50.0000.00716.86
8.0.30.0100.00817.37
8.0.20.0090.00917.25
8.0.10.0000.00817.09
8.0.00.0030.01616.91
7.4.330.0000.00615.55
7.4.320.0040.00416.75
7.4.300.0060.00016.79
7.4.290.0040.00416.73
7.4.280.0000.00716.61
7.4.270.0080.00016.50
7.4.260.0030.00313.44
7.4.250.0030.00316.73
7.4.240.0020.00516.71
7.4.230.0040.00416.84
7.4.220.0000.00716.60
7.4.210.0070.00916.74
7.4.200.0070.00016.57
7.4.130.0130.00716.63
7.4.120.0090.01216.75
7.4.110.0100.00716.84
7.4.100.0120.00416.46
7.4.90.0070.01416.61
7.4.80.0090.00919.39
7.4.70.0060.01016.57
7.4.60.0090.00616.71
7.4.50.0060.00816.61
7.4.40.0110.01416.34
7.4.30.0090.01516.56
7.4.20.0130.00916.76
7.4.10.0090.01616.57
7.4.00.0110.01316.63
7.3.330.0000.00816.43
7.3.320.0030.00313.27
7.3.310.0040.00416.36
7.3.300.0000.00816.37
7.3.290.0110.00816.33
7.3.260.0130.00316.34
7.3.230.0170.00016.68
7.3.210.0120.00616.36
7.3.200.0030.01316.60
7.3.190.0070.01016.77
7.3.180.0030.01316.47
7.3.170.0040.01416.38
7.3.160.0100.01316.50
7.3.150.0060.00816.42
7.3.140.0130.00716.36
7.3.130.0090.01316.46
7.3.120.0090.01316.50
7.3.110.0070.01516.47
7.3.100.0180.00316.38
7.3.90.0120.00916.24
7.3.80.0120.01116.70
7.3.70.0060.01716.35
7.3.60.0150.00416.49
7.3.50.0140.00816.45
7.3.40.0060.01316.43
7.3.30.0140.01116.50
7.3.20.0170.00318.34
7.3.10.0090.01318.34
7.3.00.0190.00318.20
7.2.330.0130.01016.73
7.2.320.0090.00616.67
7.2.310.0070.01016.63
7.2.300.0100.01316.70
7.2.290.0120.01116.48
7.2.280.0130.00716.64
7.2.270.0100.00416.83
7.2.260.0070.01516.54
7.2.250.0170.00816.50
7.2.240.0110.01616.55
7.2.230.0090.01316.48
7.2.220.0110.00916.36
7.2.210.0170.00716.64
7.2.200.0070.01416.54
7.2.190.0060.01216.48
7.2.180.0060.01316.42
7.2.170.0060.01616.52
7.2.160.0080.01516.48
7.2.150.0130.01018.38
7.2.140.0160.00318.60
7.2.130.0070.01918.35
7.2.120.0070.01418.48
7.2.110.0080.01618.38
7.2.100.0180.00818.42
7.2.90.0090.01518.41
7.2.80.0140.01118.55
7.2.70.0120.01518.34
7.2.60.0170.00718.52
7.2.50.0120.01218.33
7.2.40.0100.01118.55
7.2.30.0100.01018.40
7.2.20.0060.01718.34
7.2.10.0140.01118.44
7.2.00.0050.00618.35

preferences:
34.81 ms | 403 KiB | 5 Q