3v4l.org

run code in 300+ PHP versions simultaneously
<?php $HTTP_USER_AGENT = "afeaetestasdf"; $INSTALLED_STYLES = array("desktop","mobile","topifySeo"); $seo_agents = "test1,test2,test3"; $custom1agents = str_replace(",","|",$seo_agents);//explode(",",$seo_agents); //echo $custom1agents; if(preg_match('/('.$custom1agents.')/i', $HTTP_USER_AGENT, $match)) { echo "matched"; } else { echo "did not match"; }

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.0040.01118.82
8.3.30.0130.00719.00
8.3.20.0070.00020.16
8.3.10.0080.00023.71
8.3.00.0080.00019.50
8.2.170.0070.01122.96
8.2.160.0080.00520.33
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00422.38
8.2.110.0030.00622.41
8.2.100.0090.00317.84
8.2.90.0040.00419.04
8.2.80.0000.00917.97
8.2.70.0040.00417.75
8.2.60.0080.00017.79
8.2.50.0040.00418.07
8.2.40.0040.00419.98
8.2.30.0040.00418.26
8.2.20.0030.00617.71
8.2.10.0050.00318.20
8.2.00.0000.00717.91
8.1.270.0040.00423.96
8.1.260.0040.00426.35
8.1.250.0030.00728.09
8.1.240.0100.00022.19
8.1.230.0070.00319.16
8.1.220.0050.00317.78
8.1.210.0030.00518.77
8.1.200.0070.00317.48
8.1.190.0050.00317.35
8.1.180.0050.00319.14
8.1.170.0000.00818.65
8.1.160.0060.00322.08
8.1.150.0040.00418.67
8.1.140.0000.00717.51
8.1.130.0000.00817.77
8.1.120.0070.00017.52
8.1.110.0000.00717.62
8.1.100.0000.00717.62
8.1.90.0000.00717.48
8.1.80.0000.00817.61
8.1.70.0030.00317.58
8.1.60.0050.00317.77
8.1.50.0000.00817.49
8.1.40.0060.00317.66
8.1.30.0000.00917.79
8.1.20.0060.00317.73
8.1.10.0030.00617.72
8.1.00.0020.00517.49
8.0.300.0030.00618.77
8.0.290.0060.00317.05
8.0.280.0030.00318.48
8.0.270.0000.00717.20
8.0.260.0000.00617.15
8.0.250.0000.00717.09
8.0.240.0000.00717.05
8.0.230.0000.00717.17
8.0.220.0000.00716.97
8.0.210.0080.00016.92
8.0.200.0070.00016.99
8.0.190.0030.00517.09
8.0.180.0040.00417.09
8.0.170.0000.00717.06
8.0.160.0030.00316.96
8.0.150.0050.00216.88
8.0.140.0030.00316.91
8.0.130.0000.00713.47
8.0.120.0030.00616.98
8.0.110.0040.00417.06
8.0.100.0040.00416.94
8.0.90.0050.00216.93
8.0.80.0140.00717.07
8.0.70.0000.00816.84
8.0.60.0040.00416.86
8.0.50.0040.00416.96
8.0.30.0100.01117.12
8.0.20.0090.00917.40
8.0.10.0040.00417.10
8.0.00.0140.00516.90
7.4.330.0030.00315.00
7.4.320.0030.00316.64
7.4.300.0040.00416.64
7.4.290.0000.00716.54
7.4.280.0040.00416.60
7.4.270.0070.00016.55
7.4.260.0000.00716.65
7.4.250.0050.00316.66
7.4.240.0020.00516.69
7.4.230.0000.00716.78
7.4.220.0060.01116.85
7.4.210.0070.00716.72
7.4.200.0000.00816.71
7.4.190.0070.00016.86
7.4.160.0000.01516.40
7.4.150.0120.01117.40
7.4.140.0100.00817.86
7.4.130.0070.01016.63
7.4.120.0120.00516.76
7.4.110.0120.00916.47
7.4.100.0130.01016.51
7.4.90.0110.01116.78
7.4.80.0060.01619.39
7.4.70.0100.00716.67
7.4.60.0030.01316.83
7.4.50.0050.00316.68
7.4.40.0140.00316.73
7.4.30.0160.00016.57
7.4.00.0100.00715.31
7.3.330.0020.00313.36
7.3.320.0060.00013.09
7.3.310.0050.00216.35
7.3.300.0030.00316.29
7.3.290.0110.00316.45
7.3.280.0060.01116.44
7.3.270.0070.01017.40
7.3.260.0140.00416.47
7.3.250.0100.01116.54
7.3.240.0180.00016.37
7.3.230.0170.00616.64
7.3.210.0030.01616.76
7.3.200.0100.00719.39
7.3.190.0090.01316.77
7.3.180.0060.00916.61
7.3.170.0110.01016.37
7.3.160.0090.00616.77
7.3.120.0040.01414.82
7.2.330.0090.00916.64
7.2.320.0120.01216.57
7.2.310.0040.01416.85
7.2.300.0100.00616.82
7.2.290.0160.01016.76
7.2.00.0000.01219.59
7.1.100.0040.00818.36
7.1.70.0080.00817.03
7.1.60.0030.02019.46
7.1.50.0140.01017.08
7.1.00.0070.07322.37
7.0.200.0040.00416.96
7.0.140.0070.09022.18
7.0.60.0030.05720.06
7.0.50.0070.08317.90
7.0.40.0000.04720.42
7.0.30.0200.04320.22
7.0.20.0370.07720.18
7.0.10.0070.08320.33
7.0.00.0070.04020.14
5.6.280.0000.07720.91
5.6.210.0070.08320.56
5.6.200.0070.08318.23
5.6.190.0030.04720.47
5.6.180.0100.04720.41
5.6.170.0200.08020.54
5.6.160.0200.05320.72
5.6.150.0030.04018.15
5.6.140.0030.08318.07
5.6.130.0170.06718.09
5.6.120.0000.05321.00
5.6.110.0100.08320.96
5.6.100.0070.07020.95
5.6.90.0070.08320.98
5.6.80.0030.04020.37
5.5.350.4000.04320.38
5.5.340.0130.07317.98
5.5.330.0070.08720.19
5.5.320.0300.07320.51
5.5.310.0270.06720.17
5.5.300.0000.08017.95
5.5.290.0030.04018.02
5.5.280.0000.04320.96
5.5.270.0100.07720.96
5.5.260.0070.05020.97
5.5.250.0070.08020.68
5.5.240.0000.04320.36
5.4.450.0200.05019.45
5.4.440.0100.04719.56
5.4.430.0130.06019.09
5.4.420.0130.05319.54
5.4.410.0200.03719.11
5.4.400.0170.03719.06
5.4.390.0130.05318.93
5.4.380.0170.03719.06
5.4.370.0100.04319.21
5.4.360.0200.03319.22
5.4.350.0170.03719.08
5.4.340.0200.04719.25
5.4.320.0070.05018.77
5.4.310.0070.04718.90
5.4.300.0030.04719.09
5.4.290.1600.03719.15
5.4.280.1830.03718.93
5.4.270.2200.04319.21
5.4.260.1930.03019.13
5.4.250.1970.03319.12
5.4.240.2130.03719.23
5.4.230.1900.04018.92
5.4.220.1870.03719.08
5.4.210.1870.03718.82
5.4.200.2100.04019.21
5.4.190.1200.04018.79
5.4.180.0030.03718.91
5.4.170.0000.04719.22
5.4.160.1470.03019.04
5.4.150.1900.03718.86
5.4.140.2030.03716.16
5.4.130.1770.03716.36
5.4.120.1730.03716.21
5.4.110.2000.03716.21
5.4.100.2200.04716.23
5.4.90.2100.04716.06
5.4.80.1830.04016.43
5.4.70.2070.04316.38
5.4.60.1070.04716.15
5.4.50.0070.03716.16
5.4.40.0170.06016.35
5.4.30.1330.03716.35
5.4.20.2100.04316.40
5.4.10.2300.04016.39
5.4.00.2030.04315.81
5.3.290.1900.04314.62
5.3.280.1900.03714.45
5.3.270.2030.05014.45
5.3.260.0070.05314.70
5.3.250.0130.06014.55
5.3.240.0030.05314.59
5.3.230.1170.03314.54
5.3.220.2300.03314.51
5.3.210.1070.05014.55
5.3.200.0100.03014.41
5.3.190.0070.03314.42
5.3.180.1630.04014.51
5.3.170.1830.04014.44
5.3.160.2330.03314.51
5.3.150.1930.04014.51
5.3.140.1830.04014.51
5.3.130.0800.04714.41
5.3.120.0030.04014.50
5.3.110.0030.07014.37
5.3.100.1600.04013.87
5.3.90.2100.04014.11
5.3.80.1870.03313.81
5.3.70.1800.03713.92
5.3.60.1130.03713.91
5.3.50.0100.03313.99
5.3.40.0030.06713.80
5.3.30.1570.04013.95
5.3.20.1870.03713.64
5.3.10.1970.03713.50
5.3.00.1970.03713.60
5.2.170.1730.03011.09
5.2.160.1630.03010.99
5.2.150.1530.03011.01
5.2.140.1630.02710.98
5.2.130.1830.02711.04
5.2.120.1700.02311.02
5.2.110.2030.02311.04
5.2.100.1330.03310.94
5.2.90.0070.03711.26
5.2.80.0000.03711.11
5.2.70.0000.03710.98
5.2.60.1530.02710.91
5.2.50.1800.03310.93
5.2.40.1270.03011.07
5.2.30.1470.03311.04
5.2.20.1270.03010.81
5.2.10.1370.02010.80
5.2.00.1330.02310.61
5.1.60.1300.02310.00
5.1.50.1330.0239.96
5.1.40.1130.0279.88
5.1.30.1400.02310.30
5.1.20.1670.02710.29
5.1.10.1270.02710.14
5.1.00.1330.03010.00
5.0.50.0070.0478.63
5.0.40.0000.0208.28
5.0.30.0000.0378.19
5.0.20.0030.0208.17
5.0.10.0070.0338.14
5.0.00.0000.0338.03
4.4.90.0030.0177.84
4.4.80.0330.0277.84
4.4.70.0630.0177.84
4.4.60.0830.0207.84
4.4.50.0800.0207.84
4.4.40.0830.0407.84
4.4.30.0800.0207.84
4.4.20.0870.0207.84
4.4.10.0730.0207.84
4.4.00.0730.0207.84
4.3.110.0600.0177.84
4.3.100.0600.0177.84
4.3.90.0670.0177.84
4.3.80.0600.0277.84
4.3.70.0730.0207.84
4.3.60.0570.0207.84
4.3.50.0600.0177.84
4.3.40.0830.0337.84
4.3.30.0330.0137.84
4.3.20.0300.0177.84
4.3.10.0330.0177.84
4.3.00.0330.0137.84

preferences:
43.44 ms | 400 KiB | 5 Q