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]*)(.*)\/>/i'; $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.60.0130.00718.07
8.3.50.0110.01221.03
8.3.40.0110.00418.52
8.3.30.0030.01018.85
8.3.20.0030.00620.07
8.3.10.0000.00821.91
8.3.00.0080.00019.67
8.2.180.0130.00725.92
8.2.170.0150.00019.08
8.2.160.0070.01022.96
8.2.150.0040.00425.66
8.2.140.0070.00024.66
8.2.130.0050.00326.16
8.2.120.0040.00417.75
8.2.110.0050.00520.43
8.2.100.0080.00417.91
8.2.90.0090.00018.22
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0050.00517.89
8.2.50.0060.00318.07
8.2.40.0040.00719.37
8.2.30.0040.00420.64
8.2.20.0030.00517.82
8.2.10.0070.00018.11
8.2.00.0040.00418.14
8.1.280.0070.00725.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0060.00628.09
8.1.240.0050.00522.06
8.1.230.0080.00420.88
8.1.220.0060.00317.74
8.1.210.0030.00618.77
8.1.200.0060.00617.38
8.1.190.0080.00017.35
8.1.180.0040.00418.10
8.1.170.0080.00018.63
8.1.160.0030.00521.96
8.1.150.0070.00018.80
8.1.140.0040.00417.43
8.1.130.0060.00317.70
8.1.120.0030.00317.56
8.1.110.0050.00217.57
8.1.100.0090.00017.57
8.1.90.0050.00217.55
8.1.80.0000.00817.40
8.1.70.0020.00517.54
8.1.60.0040.00417.52
8.1.50.0040.00417.60
8.1.40.0090.00017.57
8.1.30.0040.00417.58
8.1.20.0050.00317.64
8.1.10.0030.00517.72
8.1.00.0040.00417.60
8.0.300.0070.00020.11
8.0.290.0040.00416.75
8.0.280.0080.00018.39
8.0.270.0030.00317.20
8.0.260.0000.00717.13
8.0.250.0000.00817.07
8.0.240.0070.00016.94
8.0.230.0040.00417.02
8.0.220.0000.00616.97
8.0.210.0080.00016.95
8.0.200.0000.00817.02
8.0.190.0040.00417.04
8.0.180.0000.00716.92
8.0.170.0080.00016.96
8.0.160.0030.00416.87
8.0.150.0000.00816.82
8.0.140.0000.00716.82
8.0.130.0040.00413.48
8.0.120.0050.00316.99
8.0.110.0040.00416.95
8.0.100.0030.00516.84
8.0.90.0040.00416.98
8.0.80.0030.01317.01
8.0.70.0000.00716.80
8.0.60.0000.00716.82
8.0.50.0070.00016.95
8.0.30.0110.00817.15
8.0.20.0090.00917.40
8.0.10.0040.00416.94
8.0.00.0080.01116.87
7.4.330.0000.00615.10
7.4.320.0070.00016.74
7.4.300.0000.00716.65
7.4.290.0000.00716.75
7.4.280.0030.00616.49
7.4.270.0070.00016.56
7.4.260.0070.00016.74
7.4.250.0000.00716.62
7.4.240.0000.00716.69
7.4.230.0040.00416.86
7.4.220.0160.00916.68
7.4.210.0120.00316.76
7.4.200.0040.00416.78
7.4.160.0110.00616.42
7.4.150.0100.00717.40
7.4.140.0120.01017.86
7.4.130.0100.01016.50
7.4.120.0080.00916.63
7.4.110.0100.00716.66
7.4.100.0120.01216.63
7.4.90.0100.00616.60
7.4.80.0110.00619.39
7.4.70.0110.00616.79
7.4.60.0030.01216.60
7.4.50.0000.00916.62
7.4.40.0110.00716.54
7.4.30.0030.01416.50
7.4.00.0040.01115.24
7.3.330.0060.00013.15
7.3.320.0000.00613.09
7.3.310.0030.00316.21
7.3.300.0000.00616.20
7.3.290.0080.00816.26
7.3.280.0120.00716.27
7.3.270.0080.00817.40
7.3.260.0100.00716.55
7.3.250.0140.00516.50
7.3.240.0070.01316.68
7.3.230.0120.00616.67
7.3.210.0130.00316.52
7.3.200.0140.00316.45
7.3.190.0090.01116.34
7.3.180.0080.00816.23
7.3.170.0140.01716.49
7.3.160.0140.00516.34
7.3.10.0160.00516.31
7.3.00.0140.00915.78
7.2.330.0090.00916.72
7.2.320.0150.00316.57
7.2.310.0060.01016.49
7.2.300.0030.01416.75
7.2.290.0070.01016.51
7.2.130.0150.00616.74
7.2.120.0100.00716.62
7.2.110.0110.00716.73
7.2.100.0100.01816.34
7.2.90.0080.01116.77
7.2.80.0130.01016.42
7.2.70.0110.01416.68
7.2.60.0090.00616.97
7.2.50.0140.00716.67
7.2.40.0140.00716.46
7.2.30.0090.00916.51
7.2.20.0160.00016.59
7.2.10.0120.00616.77
7.2.00.0180.00416.66
7.1.250.0070.01015.71
7.1.200.0070.00315.79
7.1.70.0030.00517.01
7.1.60.0000.01219.20
7.1.50.0170.02034.80
7.1.00.0000.07722.38
7.0.200.0030.00616.53
7.0.60.0100.06019.86
7.0.50.0030.04017.89
7.0.40.0070.05020.18
7.0.30.0200.08720.22
7.0.20.0200.04320.30
7.0.10.0100.05720.11
7.0.00.0030.08720.18
5.6.280.0100.06321.12
5.6.210.0030.08720.55
5.6.200.0100.03318.29
5.6.190.0100.05720.61
5.6.180.0330.04020.62
5.6.170.0370.06720.47
5.6.160.0030.07720.46
5.6.150.0070.06718.28
5.6.140.0000.05718.28
5.6.130.0070.05318.17
5.6.120.0070.08721.11
5.6.110.0000.05321.02
5.6.100.0070.06320.97
5.6.90.0070.08020.99
5.6.80.0170.07020.40
5.5.350.0100.06720.45
5.5.340.0170.07017.94
5.5.330.0100.03720.38
5.5.320.3900.04320.34
5.5.310.0270.07720.19
5.5.300.0100.07317.95
5.5.290.0030.04317.96
5.5.280.0100.08020.73
5.5.270.0070.04020.74
5.5.260.0100.08020.85
5.5.250.0130.07020.57
5.5.240.0070.06720.27
5.4.450.0330.06319.68
5.4.440.0700.05719.44
5.4.430.0600.06019.42
5.4.420.0600.05719.54
5.4.410.0670.05019.25
5.4.400.0730.06019.27
5.4.390.0730.06718.97
5.4.380.0470.06019.14
5.4.370.0700.05319.27
5.4.360.0730.05019.14
5.4.350.0800.04019.31
5.4.340.0600.05319.31
5.4.320.0700.05319.32
5.4.310.0730.04718.97
5.4.300.0670.05319.28
5.4.290.0600.06319.05
5.4.280.0770.04319.07
5.4.270.0800.03719.11
5.4.260.0700.04719.29
5.4.250.0700.07019.26
5.4.240.0630.05719.27
5.4.230.0770.04319.00
5.4.220.0730.05019.13
5.4.210.0700.06718.86
5.4.200.0730.05019.23
5.4.190.0670.06318.99
5.4.180.0630.06318.84
5.4.170.0500.06019.11
5.4.160.0670.06019.02
5.4.150.0800.04319.09
5.4.140.0700.05016.53
5.4.130.0770.04316.53
5.4.120.0770.04316.42
5.4.110.0470.06316.42
5.4.100.0670.05016.41
5.4.90.0770.04016.41
5.4.80.0630.04716.26
5.4.70.0270.04016.52
5.4.60.0000.05716.38
5.4.50.0030.03716.51
5.4.40.0230.02716.22
5.4.30.0230.07016.51
5.4.20.0030.03716.18

preferences:
54.32 ms | 401 KiB | 5 Q