3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = '<iframe ><embed boo width=222>fdgwidth=700dfg</embed>sfsdfsdf</iframe>'; $matches = array(); var_dump( preg_replace('~(.*<[^>]+\swidth=["\']?)(\d+)(["\']?[^>]*>.*)~', '${1}---${3}', $s) );

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.0080.00818.40
8.3.50.0110.00921.11
8.3.40.0080.00818.83
8.3.30.0110.00419.08
8.3.20.0040.00420.16
8.3.10.0060.00321.61
8.3.00.0040.00419.51
8.2.180.0110.00418.50
8.2.170.0080.00622.96
8.2.160.0070.00720.35
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0000.00722.18
8.2.110.0000.00920.41
8.2.100.0040.00718.03
8.2.90.0030.00519.22
8.2.80.0090.00017.97
8.2.70.0000.00817.63
8.2.60.0050.00317.93
8.2.50.0060.00318.07
8.2.40.0030.00620.00
8.2.30.0000.00718.09
8.2.20.0040.00417.82
8.2.10.0070.00018.01
8.2.00.0000.00817.72
8.1.280.0100.00725.92
8.1.270.0000.00822.14
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0070.00323.82
8.1.230.0030.00719.11
8.1.220.0050.00317.76
8.1.210.0000.00918.77
8.1.200.0060.00317.22
8.1.190.0080.00017.35
8.1.180.0080.00018.10
8.1.170.0060.00318.68
8.1.160.0040.00421.85
8.1.150.0040.00418.91
8.1.140.0040.00417.45
8.1.130.0040.00417.92
8.1.120.0040.00417.45
8.1.110.0040.00417.61
8.1.100.0050.00217.41
8.1.90.0050.00217.53
8.1.80.0000.00717.56
8.1.70.0040.00417.39
8.1.60.0060.00317.72
8.1.50.0040.00417.49
8.1.40.0040.00417.65
8.1.30.0030.00517.78
8.1.20.0080.00017.63
8.1.10.0070.00017.58
8.1.00.0080.00017.43
8.0.300.0030.00518.77
8.0.290.0070.00016.75
8.0.280.0000.00818.40
8.0.270.0070.00017.28
8.0.260.0000.00717.27
8.0.250.0030.00317.08
8.0.240.0040.00417.04
8.0.230.0040.00417.04
8.0.220.0030.00317.08
8.0.210.0000.00716.93
8.0.200.0030.00317.03
8.0.190.0070.00017.02
8.0.180.0050.00217.00
8.0.170.0030.00516.97
8.0.160.0050.00516.96
8.0.150.0050.00316.92
8.0.140.0040.00416.94
8.0.130.0030.00313.36
8.0.120.0030.00616.91
8.0.110.0000.00716.95
8.0.100.0040.00417.11
8.0.90.0050.00217.03
8.0.80.0060.01516.98
8.0.70.0030.00616.91
8.0.60.0000.00716.91
8.0.50.0070.00016.98
8.0.30.0110.00817.21
8.0.20.0100.01117.40
8.0.10.0050.00216.98
8.0.00.0090.00916.90
7.4.330.0000.00515.00
7.4.320.0000.00616.72
7.4.300.0000.00716.66
7.4.290.0030.00316.85
7.4.280.0050.00316.71
7.4.270.0000.00716.87
7.4.260.0080.00016.86
7.4.250.0000.00816.80
7.4.240.0030.00416.79
7.4.230.0030.00316.82
7.4.220.0120.00616.79
7.4.210.0040.01716.85
7.4.200.0040.00416.90
7.4.160.0060.00916.62
7.4.150.0140.00317.40
7.4.140.0130.00817.86
7.4.130.0130.00616.58
7.4.120.0110.00816.76
7.4.110.0070.01016.75
7.4.100.0030.01516.83
7.4.90.0170.00016.87
7.4.80.0090.00919.39
7.4.70.0100.00716.69
7.4.60.0130.00316.60
7.4.50.0020.00216.67
7.4.40.0070.01416.39
7.4.30.0030.01416.70
7.4.00.0070.01215.19
7.3.330.0070.00013.21
7.3.320.0000.00513.20
7.3.310.0040.00416.14
7.3.300.0050.00216.33
7.3.290.0070.00716.32
7.3.280.0040.01116.24
7.3.270.0150.00317.40
7.3.260.0100.00716.32
7.3.240.0190.00516.70
7.3.230.0140.00416.39
7.3.210.0120.00416.33
7.3.200.0130.00619.39
7.3.190.0100.01116.23
7.3.180.0130.00316.36
7.3.170.0060.01316.27
7.3.160.0030.01316.44
7.3.120.0090.00514.75
7.3.110.0130.00414.72
7.3.100.0100.00515.09
7.3.90.0080.00915.01
7.3.80.0050.01114.67
7.3.70.0100.00314.87
7.3.60.0090.00814.91
7.3.50.0100.00314.99
7.3.40.0080.00714.85
7.3.30.0050.00814.85
7.3.20.0040.00816.65
7.3.10.0060.00616.58
7.3.00.0080.00616.55
7.2.330.0070.01016.57
7.2.320.0100.00716.61
7.2.310.0070.01016.49
7.2.300.0120.00616.73
7.2.290.0040.01516.39
7.2.250.0070.01314.79
7.2.240.0060.01215.11
7.2.230.0110.00415.10
7.2.220.0100.00614.93
7.2.210.0030.01115.05
7.2.200.0030.00914.98
7.2.190.0070.00815.12
7.2.180.0050.01215.07
7.2.170.0020.00914.78
7.2.160.0040.01115.07
7.2.150.0060.01017.11
7.2.140.0070.01116.86
7.2.130.0080.00716.72
7.2.120.0120.00716.81
7.2.110.0130.00716.70
7.2.100.0120.01116.65
7.2.90.0070.01416.83
7.2.80.0090.01116.76
7.2.70.0130.00316.82
7.2.60.0070.01316.51
7.2.50.0140.00916.79
7.2.40.0090.01016.88
7.2.30.0140.00916.98
7.2.20.0070.01616.84
7.2.10.0070.01216.74
7.2.00.0150.00316.89
7.1.330.0060.00615.85
7.1.320.0070.00815.88
7.1.310.0050.00915.89
7.1.300.0090.00915.97
7.1.290.0030.00815.86
7.1.280.0080.00715.82
7.1.270.0010.01115.82
7.1.260.0100.00315.94
7.1.250.0040.00915.86
7.1.100.0040.00818.41
7.1.70.0000.00817.21
7.1.60.0030.02019.32
7.1.50.0280.00635.01
7.1.00.0070.07322.33
7.0.200.0070.00316.60
7.0.140.0100.07022.15
7.0.60.0070.06020.03
7.0.50.0000.05017.84
7.0.40.0100.07320.07
7.0.30.0370.08020.14
7.0.20.0370.05020.18
7.0.10.0030.06020.16
7.0.00.0100.06720.01
5.6.280.0030.07321.04
5.6.210.0000.04320.72
5.6.200.0000.04318.16
5.6.190.0170.04720.41
5.6.180.0130.06320.32
5.6.170.0370.05720.35
5.6.160.0100.09720.37
5.6.150.0100.06018.09
5.6.140.0070.03718.20
5.6.130.0030.06018.20
5.6.120.0070.07320.91
5.6.110.0100.08020.88
5.6.100.0070.06721.07
5.6.90.0130.04020.94
5.6.80.0070.08020.35
5.5.350.0130.08320.38
5.5.340.0100.06317.98
5.5.330.0070.08320.25
5.5.320.0400.07020.29
5.5.310.0170.07720.33
5.5.300.0100.06718.01
5.5.290.0030.04717.87
5.5.280.0030.04320.76
5.5.270.0170.07720.74
5.5.260.0130.08020.87
5.5.250.0030.08320.45
5.5.240.0200.07320.32
5.4.450.0770.04319.51
5.4.440.0770.06719.54
5.4.430.0630.05719.62
5.4.420.0870.00019.45
5.4.410.0670.00019.52
5.4.400.0700.00019.15
5.4.390.0630.00019.07
5.4.380.0630.00018.95
5.4.370.0670.00019.02
5.4.360.0630.00019.00
5.4.350.0670.00019.16
5.4.340.0110.03511.97
5.4.320.0040.04312.45
5.4.310.0050.03912.45
5.4.300.0050.03812.45
5.4.290.0060.04012.45
5.4.280.0030.03812.34
5.4.270.0060.03812.34
5.4.260.0080.03412.35
5.4.250.0070.03412.34
5.4.240.0090.03712.34
5.4.230.0090.03612.34
5.4.220.0070.03512.34
5.4.210.0050.04112.34
5.4.200.0050.03712.34
5.4.190.0030.03712.33
5.4.180.0060.03812.34
5.4.170.0080.03612.34
5.4.160.0090.04312.34
5.4.150.0070.04212.34
5.4.140.0030.04312.02
5.4.130.0050.04412.01
5.4.120.0060.04111.97
5.4.110.0060.03411.96
5.4.100.0090.03611.96
5.4.90.0050.04211.96
5.4.80.0060.03711.96
5.4.70.0050.03511.96
5.4.60.0040.04011.96
5.4.50.0070.03411.96
5.4.40.0050.03811.95
5.4.30.0070.03411.95
5.4.20.0070.04011.95
5.4.10.0050.04011.95
5.4.00.0070.04111.44
5.3.290.0060.03812.80
5.3.280.0080.04012.71
5.3.270.0070.03912.72
5.3.260.0070.04012.72
5.3.250.0070.03512.72
5.3.240.0070.03512.72
5.3.230.0090.03312.71
5.3.220.0080.03412.68
5.3.210.0060.03912.68
5.3.200.0050.03912.68
5.3.190.0090.03312.68
5.3.180.0040.03812.68
5.3.170.0050.03712.66
5.3.160.0040.03812.67
5.3.150.0100.04112.68
5.3.140.0060.03812.66
5.3.130.0060.03812.66
5.3.120.0090.03412.66
5.3.110.0060.03712.66
5.3.100.0060.04212.12
5.3.90.0060.03612.08
5.3.80.0050.03512.08
5.3.70.0040.03812.08
5.3.60.0030.03812.07
5.3.50.0030.03812.00
5.3.40.0070.03512.00
5.3.30.0070.03511.95
5.3.20.0080.03411.73
5.3.10.0120.03911.70
5.3.00.0070.03711.69
5.2.170.0050.0359.19
5.2.160.0090.0249.19
5.2.150.0030.0319.19
5.2.140.0040.0329.18
5.2.130.0070.0269.15
5.2.120.0060.0279.14
5.2.110.0050.0299.15
5.2.100.0050.0289.15
5.2.90.0070.0269.15
5.2.80.0040.0379.15
5.2.70.0050.0309.14
5.2.60.0060.0319.09
5.2.50.0050.0299.07
5.2.40.0020.0309.05
5.2.30.0060.0289.03
5.2.20.0070.0269.02
5.2.10.0060.0268.92
5.2.00.0050.0328.78
5.1.60.0070.0218.06
5.1.50.0040.0258.05
5.1.40.0050.0248.04
5.1.30.0040.0278.39
5.1.20.0060.0258.41
5.1.10.0060.0248.14
5.1.00.0050.0248.14
5.0.50.0040.0206.61
5.0.40.0040.0186.47
5.0.30.0030.0316.29
5.0.20.0050.0186.25
5.0.10.0030.0206.23
5.0.00.0050.0286.22
4.4.90.0040.0154.78
4.4.80.0060.0224.75
4.4.70.0070.0214.76
4.4.60.0060.0204.75
4.4.50.0020.0194.77
4.4.40.0030.0294.71
4.4.30.0020.0184.76
4.4.20.0030.0164.84
4.4.10.0030.0224.85
4.4.00.0020.0254.76
4.3.110.0020.0164.67
4.3.100.0010.0164.66
4.3.90.0010.0184.64
4.3.80.0030.0244.59
4.3.70.0020.0154.63
4.3.60.0040.0144.63
4.3.50.0030.0154.63
4.3.40.0030.0244.54
4.3.30.0030.0153.28
4.3.20.0020.0163.26
4.3.10.0010.0173.21
4.3.00.0170.0237.19

preferences:
42.5 ms | 401 KiB | 5 Q