3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = '<iframe ><embed width=222>fdgwidth=700dfg</embed>sfsdfsdf</iframe>'; $matches = array(); var_dump( preg_match('~<[^>]+width=["\']?(\d+)["\']?~', $s, $matshes) ); var_dump($matshes);

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.0160.00418.27
8.3.50.0140.00718.02
8.3.40.0030.01418.96
8.3.30.0070.00718.96
8.3.20.0120.00620.20
8.3.10.0050.00321.63
8.3.00.0040.00419.48
8.2.180.0120.00316.63
8.2.170.0070.00722.96
8.2.160.0030.01019.04
8.2.150.0000.00724.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00420.90
8.2.110.0110.00022.29
8.2.100.0090.00317.63
8.2.90.0080.00019.05
8.2.80.0000.00817.97
8.2.70.0030.00517.75
8.2.60.0040.00417.91
8.2.50.0070.00318.07
8.2.40.0040.00420.00
8.2.30.0020.00518.08
8.2.20.0040.00417.83
8.2.10.0040.00418.07
8.2.00.0000.00817.81
8.1.280.0100.01025.92
8.1.270.0030.00522.03
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0070.01023.92
8.1.230.0060.00619.14
8.1.220.0040.00417.74
8.1.210.0090.00018.77
8.1.200.0000.00917.35
8.1.190.0040.00417.13
8.1.180.0040.00418.10
8.1.170.0040.00418.49
8.1.160.0040.00421.87
8.1.150.0040.00418.86
8.1.140.0080.00017.71
8.1.130.0000.00717.81
8.1.120.0030.00517.55
8.1.110.0040.00417.49
8.1.100.0000.00717.57
8.1.90.0000.00717.41
8.1.80.0030.00417.43
8.1.70.0070.00017.50
8.1.60.0030.00617.68
8.1.50.0030.00617.53
8.1.40.0000.00817.60
8.1.30.0040.00417.74
8.1.20.0040.00417.60
8.1.10.0040.00417.66
8.1.00.0050.00217.46
8.0.300.0000.00818.77
8.0.290.0000.00916.88
8.0.280.0000.00818.32
8.0.270.0030.00317.11
8.0.260.0060.00017.22
8.0.250.0040.00416.97
8.0.240.0040.00416.99
8.0.230.0050.00316.98
8.0.220.0080.00016.99
8.0.210.0000.00716.83
8.0.200.0070.00017.05
8.0.190.0040.00417.05
8.0.180.0000.00716.95
8.0.170.0020.00516.88
8.0.160.0030.00716.94
8.0.150.0050.00316.87
8.0.140.0070.00016.95
8.0.130.0030.00313.43
8.0.120.0040.00416.84
8.0.110.0000.00817.01
8.0.100.0080.00017.00
8.0.90.0000.00716.98
8.0.80.0090.00617.00
8.0.70.0030.00517.04
8.0.60.0070.00017.01
8.0.50.0000.00816.82
8.0.30.0180.00117.12
8.0.20.0130.00617.40
8.0.10.0000.00717.07
8.0.00.0160.00316.95
7.4.330.0000.00615.12
7.4.320.0000.00616.63
7.4.300.0000.00616.60
7.4.290.0030.00316.79
7.4.280.0080.00016.73
7.4.270.0030.00316.65
7.4.260.0080.00016.78
7.4.250.0040.00416.59
7.4.240.0040.00316.71
7.4.230.0000.00716.45
7.4.220.0110.00716.90
7.4.210.0110.00316.73
7.4.200.0070.00016.70
7.4.160.0030.01216.45
7.4.150.0030.01517.40
7.4.140.0040.01517.86
7.4.130.0030.01516.59
7.4.120.0120.00616.68
7.4.110.0130.01016.73
7.4.100.0030.01416.62
7.4.90.0150.00416.63
7.4.80.0060.01219.39
7.4.70.0060.01316.82
7.4.60.0080.00816.61
7.4.50.0030.00316.77
7.4.40.0030.01416.59
7.4.30.0060.00916.63
7.4.00.0070.00715.11
7.3.330.0050.00013.13
7.3.320.0000.00513.15
7.3.310.0000.00716.36
7.3.300.0070.00016.14
7.3.290.0030.01216.34
7.3.280.0070.00916.28
7.3.270.0080.01617.40
7.3.260.0140.00316.50
7.3.240.0030.01616.55
7.3.230.0090.00916.42
7.3.210.0040.01216.20
7.3.200.0150.00319.39
7.3.190.0100.01016.43
7.3.180.0080.00816.25
7.3.170.0060.01316.65
7.3.160.0070.01016.55
7.2.330.0150.00316.63
7.2.320.0070.01516.74
7.2.310.0090.00916.35
7.2.300.0110.00516.56
7.2.290.0130.00416.44
7.2.60.0060.00616.58
7.2.00.0040.00819.38
7.1.200.0000.01116.04
7.1.100.0060.00618.28
7.1.70.0000.00917.20
7.1.60.0040.02219.32
7.1.50.0060.01617.13
7.1.00.0100.07022.59
7.0.200.0000.00716.66
7.0.140.0070.07022.00
7.0.70.3170.03019.96
7.0.60.0170.07719.91
7.0.50.0100.07717.83
7.0.40.0130.08019.91
7.0.30.0270.07720.04
7.0.20.0230.08320.11
7.0.10.0330.08720.14
7.0.00.0130.05720.05
5.6.280.0070.07020.98
5.6.210.0030.07020.67
5.6.200.0200.06318.17
5.6.190.0130.04320.27
5.6.180.0300.03720.43
5.6.170.0430.05320.62
5.6.160.0100.04320.44
5.6.150.0170.04018.18
5.6.140.0000.04718.25
5.6.130.0070.07718.18
5.6.120.0130.07021.00
5.6.110.0030.08321.13
5.6.100.0070.04321.00
5.6.90.0100.08721.11
5.6.80.0030.08720.37
5.6.70.0270.07320.46
5.5.350.0000.05320.38
5.5.340.0100.07717.98
5.5.330.0100.03720.07
5.5.320.0000.05020.30
5.5.310.0230.08020.29
5.5.300.0070.04717.98
5.5.290.0070.08017.92
5.5.280.0070.07320.87
5.5.270.0170.08020.64
5.5.260.0000.06020.79
5.5.250.0130.04720.54
5.5.240.0030.08320.22
5.4.450.0870.05019.59
5.4.440.0670.06319.63
5.4.430.0670.07019.31
5.4.420.0870.00019.15
5.4.410.0630.00019.52
5.4.400.0830.00019.11
5.4.390.0630.00019.13
5.4.380.0670.00019.07
5.4.370.0630.00018.91
5.4.360.0670.00019.26
5.4.350.0800.00019.13
5.4.340.0050.03711.96
5.4.320.0030.04112.45
5.4.310.0040.04012.45
5.4.300.0070.03612.45
5.4.290.0070.03712.45
5.4.280.0080.03412.35
5.4.270.0080.03412.35
5.4.260.0040.04112.34
5.4.250.0060.03812.34
5.4.240.0070.04712.34
5.4.230.0060.04712.34
5.4.220.0050.04412.34
5.4.210.0050.04412.34
5.4.200.0080.03712.34
5.4.190.0070.04712.34
5.4.180.0040.03812.34
5.4.170.0080.04112.35
5.4.160.0080.04212.34
5.4.150.0070.04712.34
5.4.140.0070.04912.02
5.4.130.0120.04712.01
5.4.120.0080.04711.97
5.4.110.0080.04611.96
5.4.100.0070.03511.96
5.4.90.0080.03911.97
5.4.80.0030.04411.96
5.4.70.0080.03311.96
5.4.60.0030.03711.96
5.4.50.0080.03511.96
5.4.40.0080.03211.95
5.4.30.0070.03411.95
5.4.20.0060.03811.95
5.4.10.0100.04011.94
5.4.00.0070.04911.43
5.3.290.0050.04012.80
5.3.280.0060.03812.71
5.3.270.0070.03912.73
5.3.260.0050.04012.72
5.3.250.0050.04112.72
5.3.240.0070.05112.72
5.3.230.0040.04112.71
5.3.220.0080.03512.68
5.3.210.0080.03712.68
5.3.200.0070.03512.68
5.3.190.0070.04212.68
5.3.180.0090.03512.67
5.3.170.0070.03612.66
5.3.160.0090.03312.67
5.3.150.0070.03812.67
5.3.140.0070.03712.66
5.3.130.0050.04612.66
5.3.120.0030.04712.66
5.3.110.0060.03812.65
5.3.100.0080.03412.12
5.3.90.0100.03412.08
5.3.80.0060.03912.08
5.3.70.0040.03912.08
5.3.60.0050.03612.06
5.3.50.0070.04012.00
5.3.40.0040.04412.00
5.3.30.0080.03211.95
5.3.20.0060.03611.73
5.3.10.0030.04011.70
5.3.00.0030.03911.68
5.2.170.0030.0329.19
5.2.160.0030.0399.19
5.2.150.0060.0299.19
5.2.140.0050.0349.18
5.2.130.0060.0389.15
5.2.120.0060.0299.15
5.2.110.0070.0289.15
5.2.100.0060.0389.15
5.2.90.0050.0319.15
5.2.80.0050.0329.15
5.2.70.0030.0329.14
5.2.60.0090.0269.10
5.2.50.0040.0389.06
5.2.40.0040.0309.05
5.2.30.0020.0339.03
5.2.20.0040.0329.01
5.2.10.0090.0328.91
5.2.00.0080.0378.78
5.1.60.0050.0338.06
5.1.50.0070.0258.06
5.1.40.0060.0258.04
5.1.30.0060.0358.39
5.1.20.0070.0258.41
5.1.10.0070.0288.13
5.1.00.0060.0258.13
5.0.50.0020.0226.61
5.0.40.0040.0186.47
5.0.30.0030.0316.29
5.0.20.0070.0156.26
5.0.10.0060.0166.23
5.0.00.0040.0346.23
4.4.90.0040.0174.78
4.4.80.0010.0194.75
4.4.70.0030.0154.75
4.4.60.0040.0154.75
4.4.50.0020.0164.77
4.4.40.0050.0234.71
4.4.30.0030.0154.76
4.4.20.0020.0194.85
4.4.10.0040.0194.85
4.4.00.0020.0274.76
4.3.110.0020.0174.67
4.3.100.0020.0164.66
4.3.90.0030.0144.63
4.3.80.0040.0234.59
4.3.70.0050.0124.63
4.3.60.0050.0144.63
4.3.50.0020.0164.63
4.3.40.0030.0244.54
4.3.30.0010.0193.28
4.3.20.0010.0243.26
4.3.10.0020.0183.22
4.3.00.0170.0237.32

preferences:
36.58 ms | 400 KiB | 5 Q