3v4l.org

run code in 300+ PHP versions simultaneously
<?php $HTTP_USER_AGENT = "afeaetest2asdf"; $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.60.0080.00816.75
8.3.50.0100.00622.13
8.3.40.0070.01418.96
8.3.30.0120.00618.88
8.3.20.0070.00020.29
8.3.10.0050.00323.65
8.3.00.0040.00419.51
8.2.180.0120.00318.52
8.2.170.0070.00722.96
8.2.160.0110.00420.22
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0030.00522.20
8.2.110.0080.00020.35
8.2.100.0070.00317.84
8.2.90.0000.00819.28
8.2.80.0060.00317.97
8.2.70.0080.00017.63
8.2.60.0050.00317.80
8.2.50.0000.01018.07
8.2.40.0080.00020.19
8.2.30.0000.00718.28
8.2.20.0040.00417.89
8.2.10.0050.00318.18
8.2.00.0030.00617.81
8.1.280.0070.00725.92
8.1.270.0030.00623.83
8.1.260.0040.00426.35
8.1.250.0000.01128.09
8.1.240.0000.00923.91
8.1.230.0090.00320.86
8.1.220.0080.00017.78
8.1.210.0080.00018.77
8.1.200.0000.01017.48
8.1.190.0040.00417.35
8.1.180.0030.00619.13
8.1.170.0000.00818.75
8.1.160.0070.00022.05
8.1.150.0070.00018.79
8.1.140.0000.00717.55
8.1.130.0040.00417.79
8.1.120.0040.00417.68
8.1.110.0000.00717.63
8.1.100.0040.00417.61
8.1.90.0030.00517.66
8.1.80.0040.00417.61
8.1.70.0040.00417.46
8.1.60.0000.00817.71
8.1.50.0080.00017.62
8.1.40.0040.00417.67
8.1.30.0030.00517.79
8.1.20.0000.00717.83
8.1.10.0000.00917.53
8.1.00.0040.00417.51
8.0.300.0040.00418.77
8.0.290.0000.00717.18
8.0.280.0030.00318.39
8.0.270.0000.00717.23
8.0.260.0030.00317.28
8.0.250.0040.00417.06
8.0.240.0030.00317.14
8.0.230.0030.00317.05
8.0.220.0070.00016.95
8.0.210.0070.00017.06
8.0.200.0040.00417.07
8.0.190.0080.00017.08
8.0.180.0040.00416.95
8.0.170.0000.00817.10
8.0.160.0000.00717.02
8.0.150.0000.00717.03
8.0.140.0070.00016.92
8.0.130.0040.00413.43
8.0.120.0040.00417.02
8.0.110.0040.00417.05
8.0.100.0000.00717.10
8.0.90.0030.00516.99
8.0.80.0080.00817.04
8.0.70.0050.00316.99
8.0.60.0030.00516.87
8.0.50.0000.00816.87
8.0.30.0120.00917.19
8.0.20.0180.00417.42
8.0.10.0040.00417.11
8.0.00.0050.01416.78
7.4.330.0020.00215.11
7.4.320.0030.00316.73
7.4.300.0000.00716.67
7.4.290.0040.00416.51
7.4.280.0000.00816.56
7.4.270.0000.00716.67
7.4.260.0050.00216.57
7.4.250.0000.00816.64
7.4.240.0070.00116.71
7.4.230.0030.00316.76
7.4.220.0060.01316.68
7.4.210.0070.00816.75
7.4.200.0000.00716.59
7.4.190.0050.00216.91
7.4.160.0050.01116.58
7.4.150.0130.00617.40
7.4.140.0110.01317.86
7.4.130.0110.00516.78
7.4.120.0120.00516.60
7.4.110.0100.00816.67
7.4.100.0090.00916.85
7.4.90.0090.01516.67
7.4.80.0120.00819.39
7.4.70.0060.01016.68
7.4.60.0060.01016.61
7.4.50.0000.00416.55
7.4.40.0000.01716.43
7.4.30.0060.00916.66
7.4.00.0170.00014.93
7.3.330.0000.00513.16
7.3.320.0030.00313.34
7.3.310.0080.00016.27
7.3.300.0070.00016.33
7.3.290.0060.00916.49
7.3.280.0090.01116.46
7.3.270.0070.01117.40
7.3.260.0070.01016.45
7.3.250.0120.01016.43
7.3.240.0110.01216.48
7.3.230.0170.00016.43
7.3.210.0160.00016.52
7.3.200.0000.01719.39
7.3.190.0090.00816.85
7.3.180.0140.01016.35
7.3.170.0120.00416.58
7.3.160.0050.01116.62
7.3.120.0030.01015.02
7.2.330.0090.01217.02
7.2.320.0040.01416.70
7.2.310.0060.01216.55
7.2.300.0070.01116.64
7.2.290.0110.01516.77
7.2.60.0060.00617.07
7.2.00.0060.00619.66
7.1.200.0000.01115.91
7.1.100.0080.00018.26
7.1.70.0000.01017.33
7.1.60.0110.01419.46
7.1.50.0040.01817.13
7.1.00.0030.07722.47
7.0.200.0070.00016.90
7.0.140.0070.07021.95
7.0.60.0030.06720.05
7.0.50.0100.07717.86
7.0.40.0070.04020.22
7.0.30.0300.06320.35
7.0.20.0230.08720.32
7.0.10.0170.08320.04
7.0.00.0100.08720.14
5.6.280.0030.07321.12
5.6.210.0100.07020.62
5.6.200.0100.04018.21
5.6.190.0170.07320.54
5.6.180.0230.08020.77
5.6.170.0300.08020.45
5.6.160.0130.07720.49
5.6.150.0030.06018.18
5.6.140.0030.04018.11
5.6.130.0130.07718.17
5.6.120.0070.09021.12
5.6.110.0030.04021.13
5.6.100.0030.08320.98
5.6.90.0030.04021.10
5.6.80.0130.06320.39
5.5.350.0300.05020.43
5.5.340.0030.07017.92
5.5.330.0000.09020.40
5.5.320.0200.08020.13
5.5.310.0200.07320.30
5.5.300.0030.06017.98
5.5.290.0030.05317.97
5.5.280.0030.04720.98
5.5.270.0030.04020.73
5.5.260.0130.07320.67
5.5.250.0070.04020.68
5.5.240.0200.03020.25
5.4.450.0230.07319.27
5.4.440.0730.06719.47
5.4.430.0200.06019.47
5.4.420.0500.05719.54
5.4.410.0670.08319.46
5.4.400.0800.04019.09
5.4.390.0800.05018.77
5.4.380.3530.06018.72
5.4.370.0330.04318.68
5.4.360.0330.04318.50
5.4.350.0330.04718.74
5.4.340.0330.04718.74
5.4.320.0040.03712.45
5.4.310.0060.03612.45
5.4.300.0100.04512.46
5.4.290.0110.05112.45
5.4.280.0140.05712.35
5.4.270.0150.05212.35
5.4.260.0170.05512.35
5.4.250.0130.04912.35
5.4.240.0160.05112.35
5.4.230.0100.05112.34
5.4.220.0170.05112.34
5.4.210.0150.06312.34
5.4.200.0100.04812.34
5.4.190.0110.04812.34
5.4.180.0140.07512.34
5.4.170.0130.05712.35
5.4.160.0120.05012.35
5.4.150.0050.05412.34
5.4.140.0040.05612.02
5.4.130.0110.04912.02
5.4.120.0060.04911.97
5.4.110.0080.04011.97
5.4.100.0070.04911.97
5.4.90.0070.05111.96
5.4.80.0110.04611.96
5.4.70.0060.04211.96
5.4.60.0070.03511.96
5.4.50.0080.04011.96
5.4.40.0090.03311.95
5.4.30.0060.03611.95
5.4.20.0120.03311.95
5.4.10.0050.03611.95
5.4.00.0040.04011.43
5.3.290.0080.03712.80
5.3.280.0100.05012.71
5.3.270.0130.06412.73
5.3.260.0120.04812.72
5.3.250.0140.05012.72
5.3.240.0090.05812.72
5.3.230.0160.04612.71
5.3.220.0140.04712.68
5.3.210.0090.04112.68
5.3.200.0070.04112.68
5.3.190.0180.06012.68
5.3.180.0110.04812.67
5.3.170.0120.07012.67
5.3.160.0140.06812.67
5.3.150.0140.05212.67
5.3.140.0080.04012.66
5.3.130.0080.04112.66
5.3.120.0080.04012.66
5.3.110.0100.04712.66
5.3.100.0090.04512.12
5.3.90.0100.03412.09
5.3.80.0050.03912.07
5.3.70.0060.03912.08
5.3.60.0080.03712.07
5.3.50.0030.04212.00
5.3.40.0060.04712.00
5.3.30.0090.04611.96
5.3.20.0130.05511.73
5.3.10.0080.04511.70
5.3.00.0130.05011.69
5.2.170.0070.0429.19
5.2.160.0100.0339.19
5.2.150.0080.0409.19
5.2.140.0090.0579.19
5.2.130.0050.0319.15
5.2.120.0050.0339.14
5.2.110.0050.0339.15
5.2.100.0190.0709.15
5.2.90.0050.0339.15
5.2.80.0070.0369.14
5.2.70.0040.0429.14
5.2.60.0120.0489.10
5.2.50.0140.0659.07
5.2.40.0090.0379.05
5.2.30.0080.0409.02
5.2.20.0130.0769.02
5.2.10.0100.0448.92
5.2.00.0070.0478.78
5.1.60.0100.0338.06
5.1.50.0050.0268.06
5.1.40.0070.0258.04
5.1.30.0070.0258.39
5.1.20.0080.0368.41
5.1.10.0110.0308.14
5.1.00.0080.0298.14
5.0.50.0060.0216.62
5.0.40.0060.0196.48
5.0.30.0100.0316.29
5.0.20.0050.0216.26
5.0.10.0050.0216.24
5.0.00.0080.0326.23
4.4.90.0030.0174.77
4.4.80.0030.0164.75
4.4.70.0050.0144.76
4.4.60.0030.0164.76
4.4.50.0020.0174.77
4.4.40.0030.0264.71
4.4.30.0040.0214.76
4.4.20.0010.0244.84
4.4.10.0020.0164.85
4.4.00.0040.0294.76
4.3.110.0050.0214.67
4.3.100.0040.0204.66
4.3.90.0050.0184.63
4.3.80.0060.0314.59
4.3.70.0040.0234.63
4.3.60.0040.0224.63
4.3.50.0060.0134.63
4.3.40.0070.0324.53
4.3.30.0190.0323.28
4.3.20.0040.0163.25
4.3.10.0000.0193.22
4.3.00.0100.0209.00

preferences:
42.41 ms | 401 KiB | 5 Q