3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'This is my test string with an <img test /> image. <test />'; $pattern = '/<([a-zA-Z0-9]*)(.*)\/>/iU'; $count = preg_match_all($pattern, $string, $matches, PREG_SET_ORDER); 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.40.0070.01118.83
8.3.30.0060.00918.70
8.3.20.0040.00420.26
8.3.10.0030.00521.69
8.3.00.0040.00419.56
8.2.170.0130.00322.96
8.2.160.0030.01020.41
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0090.00017.72
8.2.110.0070.00322.37
8.2.100.0060.00617.63
8.2.90.0030.00519.09
8.2.80.0050.00917.97
8.2.70.0030.00717.75
8.2.60.0030.00717.80
8.2.50.0050.00318.07
8.2.40.0030.00619.50
8.2.30.0030.00420.66
8.2.20.0040.00417.69
8.2.10.0040.00418.05
8.2.00.0000.00718.13
8.1.270.0040.00422.10
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00022.65
8.1.230.0090.00317.42
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0030.00617.13
8.1.190.0060.00317.23
8.1.180.0080.00018.10
8.1.170.0040.00418.65
8.1.160.0000.00721.96
8.1.150.0000.00718.78
8.1.140.0060.00317.52
8.1.130.0070.00317.58
8.1.120.0080.00017.45
8.1.110.0000.00717.54
8.1.100.0000.00817.54
8.1.90.0000.00717.53
8.1.80.0000.00717.45
8.1.70.0000.00717.45
8.1.60.0000.00717.55
8.1.50.0040.00417.55
8.1.40.0100.00017.50
8.1.30.0030.00517.62
8.1.20.0040.00417.57
8.1.10.0000.00817.70
8.1.00.0040.00417.60
8.0.300.0000.00718.77
8.0.290.0020.00516.63
8.0.280.0000.00718.41
8.0.270.0050.00317.21
8.0.260.0030.00317.10
8.0.250.0040.00416.91
8.0.240.0040.00416.87
8.0.230.0030.00517.01
8.0.220.0000.00716.84
8.0.210.0080.00016.95
8.0.200.0000.00717.04
8.0.190.0000.00917.05
8.0.180.0040.00416.96
8.0.170.0000.00716.91
8.0.160.0000.00816.88
8.0.150.0070.00017.02
8.0.140.0000.00716.94
8.0.130.0030.00313.38
8.0.120.0040.00416.91
8.0.110.0000.00716.93
8.0.100.0000.00816.88
8.0.90.0040.00417.04
8.0.80.0120.00916.98
8.0.70.0000.00716.87
8.0.60.0030.00516.84
8.0.50.0070.00016.89
8.0.30.0120.00617.07
8.0.20.0110.01117.40
8.0.10.0040.00417.21
8.0.00.0090.01116.80
7.4.330.0050.00015.08
7.4.320.0040.00416.64
7.4.300.0030.00316.72
7.4.290.0040.00416.64
7.4.280.0000.00916.59
7.4.270.0070.00016.66
7.4.260.0030.00316.70
7.4.250.0020.00516.64
7.4.240.0000.00716.65
7.4.230.0070.00016.77
7.4.220.0130.01316.69
7.4.210.0170.00316.60
7.4.200.0030.00316.85
7.4.160.0100.00716.59
7.4.150.0060.01017.40
7.4.140.0090.01217.86
7.4.130.0080.01216.64
7.4.120.0100.00816.58
7.4.110.0060.01016.74
7.4.100.0130.00616.52
7.4.90.0090.00916.61
7.4.80.0170.00319.39
7.4.70.0070.01016.37
7.4.60.0030.01916.50
7.4.50.0000.00416.46
7.4.40.0100.01016.53
7.4.30.0030.01416.50
7.4.00.0000.01614.88
7.3.330.0030.00313.21
7.3.320.0040.00413.04
7.3.310.0030.00316.20
7.3.300.0020.00516.15
7.3.290.0110.00316.25
7.3.280.0080.00616.30
7.3.270.0130.00317.40
7.3.260.0110.00616.23
7.3.250.0100.00716.41
7.3.240.0170.00316.27
7.3.230.0120.00616.50
7.3.210.0070.01016.75
7.3.200.0100.00716.66
7.3.190.0030.01316.29
7.3.180.0220.00016.34
7.3.170.0090.00916.32
7.3.160.0030.01416.23
7.3.10.0080.00516.48
7.3.00.0100.01016.29
7.2.330.0110.00816.80
7.2.320.0060.01316.71
7.2.310.0070.01016.65
7.2.300.0160.00416.68
7.2.290.0030.01516.62
7.2.130.0130.00316.71
7.2.120.0060.00916.60
7.2.110.0110.00316.73
7.2.100.0070.00416.73
7.2.90.0100.00316.63
7.2.80.0030.00716.95
7.2.70.0080.00016.70
7.2.60.0040.00716.93
7.2.50.0000.01416.78
7.2.40.0000.00916.87
7.2.30.0110.00417.00
7.2.20.0060.00616.95
7.2.10.0000.00916.63
7.2.00.0130.00518.24
7.1.250.0040.01115.52
7.1.100.0100.00518.06
7.1.70.0000.00817.27
7.1.60.0060.00619.20
7.1.50.0200.01734.80
7.1.00.0070.07322.37
7.0.200.0040.00416.91
7.0.60.0130.07720.03
7.0.50.0100.08017.99
7.0.40.0100.03720.25
7.0.30.0500.05020.21
7.0.20.0270.07720.25
7.0.10.0170.06020.21
7.0.00.0100.08320.09
5.6.280.0030.06320.92
5.6.210.0200.07020.46
5.6.200.0030.08318.18
5.6.190.0100.08020.57
5.6.180.0270.05020.63
5.6.170.0270.07020.57
5.6.160.0030.07320.55
5.6.150.0030.07718.21
5.6.140.0000.04318.16
5.6.130.0100.08318.14
5.6.120.0100.08020.93
5.6.110.0170.08020.96
5.6.100.0070.06320.95
5.6.90.0100.06721.13
5.6.80.0030.08720.50
5.5.350.0100.04720.32
5.5.340.0070.08017.95
5.5.330.0100.06720.40
5.5.320.3670.04020.23
5.5.310.0200.03720.29
5.5.300.0170.07318.04
5.5.290.0100.07717.96
5.5.280.0070.04320.72
5.5.270.0070.06020.72
5.5.260.0030.08720.64
5.5.250.0030.08020.65
5.5.240.0030.07020.14
5.4.450.0670.05719.33
5.4.440.0730.06019.59
5.4.430.0600.06319.54
5.4.420.0700.05319.56
5.4.410.0830.08019.55
5.4.400.0700.06018.96
5.4.390.0570.05719.21
5.4.380.0730.05019.29
5.4.370.0600.05318.88
5.4.360.0670.06019.27
5.4.350.0800.06319.13
5.4.340.0630.06319.26
5.4.320.0600.06319.05
5.4.310.0730.06319.11
5.4.300.0830.05019.20
5.4.290.0700.05318.83
5.4.280.0700.05719.14
5.4.270.0870.06019.02
5.4.260.0730.07019.16
5.4.250.0730.05019.26
5.4.240.0570.06019.29
5.4.230.0670.05719.11
5.4.220.0700.06319.13
5.4.210.0700.05019.11
5.4.200.0700.06019.23
5.4.190.0530.06719.27
5.4.180.0830.07319.28
5.4.170.0600.06019.10
5.4.160.0770.06019.25
5.4.150.0630.05318.84
5.4.140.0730.05316.44
5.4.130.0830.04316.42
5.4.120.0600.06016.48
5.4.110.0700.05016.52
5.4.100.0500.06316.60
5.4.90.0630.05016.52
5.4.80.0670.05016.26
5.4.70.0370.06316.26
5.4.60.0030.07316.43
5.4.50.0030.05716.38
5.4.40.0130.04316.16
5.4.30.0200.04316.51
5.4.20.0070.06716.32

preferences:
41.73 ms | 400 KiB | 5 Q