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 implode('|', $custom1agents); /* if(preg_match('/('.implode('|', $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.0070.01116.49
8.3.50.0100.00522.07
8.3.40.0070.00718.54
8.3.30.0100.01019.01
8.3.20.0070.00020.24
8.3.10.0040.00423.38
8.3.00.0050.00519.38
8.2.180.0110.00418.39
8.2.170.0110.00722.96
8.2.160.0070.00720.39
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0050.00322.34
8.2.110.0030.00622.43
8.2.100.0070.00419.64
8.2.90.0000.00719.05
8.2.80.0030.00517.97
8.2.70.0060.00317.25
8.2.60.0000.00817.93
8.2.50.0050.00518.07
8.2.40.0060.00319.76
8.2.30.0000.00718.17
8.2.20.0050.00317.55
8.2.10.0040.00417.96
8.2.00.0060.00317.71
8.1.280.0070.01125.92
8.1.270.0120.00323.96
8.1.260.0050.00326.35
8.1.250.0060.00328.09
8.1.240.0070.01023.68
8.1.230.0060.00619.15
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.25
8.1.190.0050.00317.35
8.1.180.0000.00819.13
8.1.170.0040.00418.57
8.1.160.0050.00221.91
8.1.150.0080.00018.56
8.1.140.0030.00517.42
8.1.130.0030.00317.81
8.1.120.0080.00017.37
8.1.110.0030.00317.28
8.1.100.0040.00417.37
8.1.90.0070.00017.44
8.1.80.0040.00417.41
8.1.70.0030.00317.33
8.1.60.0030.00617.40
8.1.50.0080.00017.48
8.1.40.0030.00617.39
8.1.30.0000.00917.66
8.1.20.0000.00817.54
8.1.10.0040.00417.43
8.1.00.0000.00817.45
8.0.300.0000.00718.77
8.0.290.0040.00416.92
8.0.280.0070.00018.21
8.0.270.0030.00317.18
8.0.260.0000.00717.12
8.0.250.0040.00416.84
8.0.240.0000.00717.00
8.0.230.0070.00016.94
8.0.220.0030.00316.90
8.0.210.0070.00016.94
8.0.200.0040.00416.93
8.0.190.0080.00016.82
8.0.180.0000.00816.92
8.0.170.0000.00716.86
8.0.160.0040.00316.83
8.0.150.0000.00716.82
8.0.140.0070.00016.87
8.0.130.0030.00313.29
8.0.120.0030.00616.77
8.0.110.0000.00816.77
8.0.100.0050.00316.87
8.0.90.0030.00316.86
8.0.80.0090.01216.85
8.0.70.0000.00717.00
8.0.60.0040.00416.95
8.0.50.0030.00316.79
8.0.30.0140.00517.01
8.0.20.0080.01017.40
8.0.10.0040.00416.84
8.0.00.0090.00916.68
7.4.330.0000.00515.00
7.4.320.0030.00316.52
7.4.300.0000.00616.53
7.4.290.0030.00316.28
7.4.280.0050.00316.56
7.4.270.0000.00716.47
7.4.260.0040.00416.48
7.4.250.0050.00316.51
7.4.240.0050.00216.48
7.4.230.0070.00016.44
7.4.220.0100.00716.52
7.4.210.0080.00816.40
7.4.200.0000.00716.61
7.4.190.0040.00416.48
7.4.160.0090.00616.51
7.4.150.0090.00917.40
7.4.140.0130.00417.86
7.4.130.0160.00516.57
7.4.120.0080.00816.51
7.4.110.0100.00716.29
7.4.100.0060.01216.45
7.4.90.0070.01116.64
7.4.80.0090.01219.39
7.4.70.0090.00916.46
7.4.60.0100.00716.22
7.4.50.0030.00516.40
7.4.40.0130.00316.51
7.4.30.0070.01016.50
7.4.00.0100.00714.80
7.3.330.0030.00313.13
7.3.320.0030.00313.13
7.3.310.0000.00716.16
7.3.300.0030.00316.19
7.3.290.0120.00316.18
7.3.280.0120.00816.18
7.3.270.0080.00817.40
7.3.260.0120.00616.27
7.3.250.0080.01016.13
7.3.240.0120.00616.47
7.3.230.0070.01016.39
7.3.210.0070.01016.26
7.3.200.0030.01419.39
7.3.190.0170.00316.52
7.3.180.0040.01216.22
7.3.170.0080.01216.45
7.3.160.0040.01116.42
7.3.120.0080.00414.71
7.2.330.0060.01016.58
7.2.320.0140.00416.69
7.2.310.0090.01216.27
7.2.300.0040.01816.66
7.2.290.0070.01016.36
7.2.60.0080.00616.98
7.2.00.0060.00619.44
7.1.200.0040.00815.59
7.1.100.0060.00917.64
7.1.70.0000.00716.86
7.1.60.0130.01319.46
7.1.50.0000.01516.95
7.1.00.0070.07322.31
7.0.200.0000.00816.38
7.0.140.0030.07322.08
7.0.60.0030.08320.00
7.0.50.0100.06317.79
7.0.40.0100.04020.19
7.0.30.0270.08020.04
7.0.20.0170.05719.99
7.0.10.0070.08720.18
7.0.00.0130.07720.11
5.6.280.0000.07721.04
5.6.210.0130.07020.66
5.6.200.0100.05018.12
5.6.190.0100.05720.40
5.6.180.0430.08320.35
5.6.170.0370.05320.59
5.6.160.0070.08020.38
5.6.150.0070.07718.09
5.6.140.0170.06018.20
5.6.130.0170.07018.07
5.6.120.0000.04720.80
5.6.110.0170.07721.04
5.6.100.0100.05721.16
5.6.90.0100.07721.00
5.6.80.0100.04320.53
5.5.350.0170.08320.37
5.5.340.0030.04317.91
5.5.330.0070.04720.21
5.5.320.0370.05320.53
5.5.310.0130.04020.21
5.5.300.0100.07717.93
5.5.290.0130.04717.89
5.5.280.0100.07020.87
5.5.270.0030.08720.77
5.5.260.0030.06720.95
5.5.250.0100.07720.67
5.5.240.0170.07720.25
5.4.450.0770.07319.52
5.4.440.1070.07319.46
5.4.430.0230.06019.09
5.4.420.0370.06319.13
5.4.410.0830.05319.36
5.4.400.0830.04719.00
5.4.390.0870.06019.13
5.4.380.0400.04718.50
5.4.370.0270.05318.49
5.4.360.0170.06318.58
5.4.350.0200.06018.46
5.4.340.0270.05018.70
5.4.320.0070.03712.45
5.4.310.0080.03812.45
5.4.300.0050.04112.45
5.4.290.0150.05312.45
5.4.280.0110.06112.35
5.4.270.0110.05712.34
5.4.260.0060.04112.34
5.4.250.0030.04512.34
5.4.240.0060.04012.34
5.4.230.0080.03712.34
5.4.220.0060.04112.34
5.4.210.0070.03712.34
5.4.200.0120.03612.34
5.4.190.0070.05112.33
5.4.180.0090.04212.33
5.4.170.0080.04512.34
5.4.160.0080.04612.34
5.4.150.0050.03712.34
5.4.140.0090.03312.02
5.4.130.0050.04012.01
5.4.120.0060.03511.97
5.4.110.0080.03311.96
5.4.100.0070.03811.97
5.4.90.0060.04411.96
5.4.80.0080.04111.96
5.4.70.0050.04911.96
5.4.60.0100.03411.96
5.4.50.0110.03011.96
5.4.40.0110.03011.95
5.4.30.0030.03911.95
5.4.20.0050.03711.95
5.4.10.0070.03611.95
5.4.00.0050.04311.43
5.3.290.0060.04212.80
5.3.280.0080.05212.71
5.3.270.0100.04512.72
5.3.260.0080.04512.72
5.3.250.0090.04212.72
5.3.240.0090.03712.72
5.3.230.0070.03812.71
5.3.220.0060.04012.68
5.3.210.0060.04312.68
5.3.200.0070.04612.68
5.3.190.0080.04112.68
5.3.180.0090.04112.67
5.3.170.0090.04012.67
5.3.160.0090.04612.68
5.3.150.0050.04812.67
5.3.140.0160.04412.66
5.3.130.0090.06012.66
5.3.120.0130.06512.66
5.3.110.0110.04912.66
5.3.100.0180.05712.12
5.3.90.0100.05912.08
5.3.80.0230.05912.07
5.3.70.0160.04512.07
5.3.60.0150.05012.06
5.3.50.0050.04112.00
5.3.40.0100.03712.00
5.3.30.0080.03911.94
5.3.20.0070.04011.72
5.3.10.0100.04711.69
5.3.00.0080.03711.68
5.2.170.0080.0449.18
5.2.160.0060.0469.18
5.2.150.0080.0639.18
5.2.140.0120.0659.17
5.2.130.0090.0619.13
5.2.120.0080.0429.13
5.2.110.0110.0619.14
5.2.100.0060.0489.14
5.2.90.0100.0439.14
5.2.80.0060.0439.13
5.2.70.0040.0349.13
5.2.60.0050.0329.09
5.2.50.0040.0329.05
5.2.40.0070.0309.04
5.2.30.0040.0319.01
5.2.20.0070.0299.00
5.2.10.0020.0328.91
5.2.00.0070.0298.78
5.1.60.0080.0238.06
5.1.50.0080.0338.06
5.1.40.0080.0328.04
5.1.30.0120.0318.39
5.1.20.0080.0398.41
5.1.10.0090.0258.13
5.1.00.0060.0288.13
5.0.50.0020.0246.61
5.0.40.0040.0226.47
5.0.30.0040.0336.29
5.0.20.0030.0236.26
5.0.10.0040.0286.24
5.0.00.0070.0296.23
4.4.90.0020.0274.78
4.4.80.0040.0154.75
4.4.70.0020.0244.76
4.4.60.0040.0154.75
4.4.50.0040.0194.77
4.4.40.0040.0314.71
4.4.30.0060.0184.76
4.4.20.0070.0284.84
4.4.10.0060.0374.84
4.4.00.0050.0374.76
4.3.110.0050.0244.67
4.3.100.0030.0164.66
4.3.90.0030.0154.63
4.3.80.0050.0234.59
4.3.70.0000.0184.63
4.3.60.0040.0214.63
4.3.50.0080.0144.63
4.3.40.0040.0314.54
4.3.30.0020.0183.29
4.3.20.0030.0163.25
4.3.10.0050.0243.22
4.3.00.0130.0279.00

preferences:
40.09 ms | 401 KiB | 5 Q