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('/('.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.70.0160.00616.63
8.3.60.0130.00616.48
8.3.50.0100.00721.87
8.3.40.0140.00718.63
8.3.30.0100.00719.02
8.3.20.0040.00420.24
8.3.10.0060.00323.57
8.3.00.0060.00319.25
8.2.180.0060.01016.50
8.2.170.0140.00322.96
8.2.160.0070.00720.37
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00821.87
8.2.110.0140.01021.04
8.2.100.0090.00317.72
8.2.90.0030.00618.89
8.2.80.0060.00317.97
8.2.70.0040.00417.47
8.2.60.0000.00817.80
8.2.50.0080.00018.10
8.2.40.0040.00420.53
8.2.30.0000.00718.25
8.2.20.0040.00417.73
8.2.10.0040.00418.16
8.2.00.0050.00317.62
8.1.280.0110.00625.92
8.1.270.0090.00623.97
8.1.260.0000.00726.35
8.1.250.0060.00328.09
8.1.240.0140.00322.75
8.1.230.0040.00717.70
8.1.220.0000.00817.74
8.1.210.0100.00018.77
8.1.200.0000.00817.23
8.1.190.0040.00417.11
8.1.180.0000.00818.10
8.1.170.0080.00018.66
8.1.160.0040.00422.03
8.1.150.0090.00018.56
8.1.140.0020.00517.37
8.1.130.0000.00717.82
8.1.120.0020.00517.36
8.1.110.0040.00417.37
8.1.100.0080.00017.30
8.1.90.0000.00717.30
8.1.80.0000.00817.39
8.1.70.0040.00417.31
8.1.60.0000.00817.54
8.1.50.0050.00317.36
8.1.40.0080.00017.46
8.1.30.0050.00317.57
8.1.20.0040.00417.47
8.1.10.0030.00617.49
8.1.00.0030.00617.32
8.0.300.0040.00418.77
8.0.290.0000.00816.63
8.0.280.0020.00518.51
8.0.270.0070.00017.16
8.0.260.0000.00617.23
8.0.250.0000.00816.96
8.0.240.0000.00716.89
8.0.230.0060.00016.84
8.0.220.0000.00716.86
8.0.210.0000.00716.70
8.0.200.0040.00416.88
8.0.190.0030.00516.90
8.0.180.0050.00216.90
8.0.170.0000.00716.73
8.0.160.0030.00516.84
8.0.150.0000.00816.68
8.0.140.0040.00416.84
8.0.130.0030.00313.22
8.0.120.0030.00516.68
8.0.110.0050.00316.86
8.0.100.0000.00816.83
8.0.90.0080.00016.86
8.0.80.0000.01816.82
8.0.70.0040.00416.78
8.0.60.0050.00216.71
8.0.50.0000.00716.62
8.0.30.0190.00217.21
8.0.20.0080.01117.40
8.0.10.0000.00816.82
8.0.00.0140.00516.66
7.4.330.0060.00015.00
7.4.320.0000.00716.46
7.4.300.0040.00416.43
7.4.290.0060.00016.45
7.4.280.0040.00416.48
7.4.270.0000.00816.37
7.4.260.0060.00316.43
7.4.250.0050.00316.41
7.4.240.0030.00316.38
7.4.230.0030.00316.60
7.4.220.0060.01216.45
7.4.210.0060.00916.53
7.4.200.0000.00716.43
7.4.190.0000.00716.33
7.4.160.0060.01016.48
7.4.150.0140.01017.40
7.4.140.0120.00717.86
7.4.130.0050.01116.51
7.4.120.0130.00416.47
7.4.110.0120.00616.33
7.4.100.0070.01016.24
7.4.90.0040.01516.42
7.4.80.0090.01419.39
7.4.70.0060.00916.49
7.4.60.0030.01316.40
7.4.50.0060.00316.52
7.4.40.0130.00316.38
7.4.30.0060.01016.53
7.4.00.0000.01615.07
7.3.330.0000.00612.93
7.3.320.0000.00513.05
7.3.310.0060.00316.05
7.3.300.0030.00316.02
7.3.290.0070.00716.20
7.3.280.0120.00616.20
7.3.270.0060.01117.40
7.3.260.0200.00416.21
7.3.250.0050.01316.17
7.3.240.0100.01016.49
7.3.230.0060.00916.39
7.3.210.0120.00616.24
7.3.200.0130.00319.39
7.3.190.0040.01216.30
7.3.180.0070.01016.59
7.3.170.0130.00316.29
7.3.160.0170.00016.32
7.3.120.0000.01514.88
7.3.10.0060.00716.41
7.3.00.0040.00816.59
7.2.330.0080.00916.51
7.2.320.0130.00616.38
7.2.310.0070.01016.30
7.2.300.0030.01416.32
7.2.290.0090.00916.39
7.2.130.0130.00316.89
7.2.120.0000.01116.77
7.2.110.0030.00816.62
7.2.100.0060.00616.75
7.2.90.0070.00716.73
7.2.80.0110.00416.76
7.2.70.0070.00716.87
7.2.60.0090.00716.65
7.2.50.0060.00716.91
7.2.40.0000.01416.80
7.2.30.0060.00616.69
7.2.20.0060.00916.92
7.2.10.0000.01416.93
7.2.00.0030.00718.21
7.1.250.0060.00615.71
7.1.200.0040.01115.56
7.1.100.0040.00818.11
7.1.70.0000.00817.25
7.1.60.0120.01219.46
7.1.50.0120.00916.96
7.1.00.0100.07022.50
7.0.200.0030.00516.41
7.0.140.0070.06721.94
7.0.60.0130.03720.04
7.0.50.0130.08017.80
7.0.40.0130.08020.07
7.0.30.0230.05020.17
7.0.20.0200.04020.33
7.0.10.0030.07720.20
7.0.00.0000.04720.09
5.6.280.0030.07021.06
5.6.210.0130.07320.75
5.6.200.0070.04018.12
5.6.190.0030.09020.49
5.6.180.0230.04320.27
5.6.170.0270.04020.54
5.6.160.0170.07320.54
5.6.150.0030.05318.15
5.6.140.0030.06018.21
5.6.130.0030.04718.11
5.6.120.0100.04320.96
5.6.110.0130.05721.07
5.6.100.0070.08321.18
5.6.90.0070.07720.99
5.6.80.0030.04320.27
5.5.350.4300.03320.39
5.5.340.0030.05717.96
5.5.330.0130.07320.57
5.5.320.0200.05020.41
5.5.310.0370.05020.17
5.5.300.0130.07317.98
5.5.290.0000.09018.00
5.5.280.0070.08320.72
5.5.270.0100.05320.63
5.5.260.0130.04720.82
5.5.250.0070.03720.74
5.5.240.0030.08320.25
5.4.450.0800.05719.45
5.4.440.0730.06719.34
5.4.430.0730.05719.32
5.4.420.0700.06719.23
5.4.410.0730.06319.39
5.4.400.0800.05318.81
5.4.390.0770.04719.14
5.4.380.0130.06718.58
5.4.370.0270.05318.50
5.4.360.0300.05018.49
5.4.350.0430.03718.53
5.4.340.0330.05018.52
5.4.320.0040.03912.45
5.4.310.0070.03712.45
5.4.300.0070.03412.45
5.4.290.0060.05512.45
5.4.280.0080.05312.35
5.4.270.0110.07712.35
5.4.260.0110.05212.35
5.4.250.0120.03612.34
5.4.240.0100.03612.34
5.4.230.0070.04012.34
5.4.220.0070.04012.34
5.4.210.0080.05212.34
5.4.200.0080.04012.34
5.4.190.0080.05312.33
5.4.180.0070.03912.33
5.4.170.0110.03412.35
5.4.160.0080.03712.34
5.4.150.0060.03512.34
5.4.140.0060.03612.02
5.4.130.0040.03712.01
5.4.120.0080.03311.97
5.4.110.0060.03611.96
5.4.100.0050.03611.96
5.4.90.0050.03811.96
5.4.80.0100.03211.96
5.4.70.0070.03211.96
5.4.60.0080.03311.96
5.4.50.0040.03811.96
5.4.40.0060.04711.95
5.4.30.0080.03311.95
5.4.20.0050.04011.94
5.4.10.0040.03711.94
5.4.00.0080.04911.43
5.3.290.0050.03912.80
5.3.280.0090.05712.71
5.3.270.0060.04112.73
5.3.260.0110.03812.72
5.3.250.0070.03712.72
5.3.240.0060.03812.72
5.3.230.0060.03912.71
5.3.220.0110.03612.68
5.3.210.0070.03812.68
5.3.200.0080.03812.68
5.3.190.0170.05812.68
5.3.180.0120.05812.67
5.3.170.0120.05512.67
5.3.160.0180.07112.67
5.3.150.0080.06512.68
5.3.140.0110.04012.66
5.3.130.0100.04912.66
5.3.120.0100.05212.66
5.3.110.0120.04412.65
5.3.100.0080.03612.12
5.3.90.0070.03812.08
5.3.80.0050.03812.08
5.3.70.0060.03812.07
5.3.60.0090.03512.06
5.3.50.0060.03812.00
5.3.40.0060.03912.00
5.3.30.0080.03411.95
5.3.20.0090.04611.72
5.3.10.0120.06111.69
5.3.00.0090.03711.68
5.2.170.0060.0449.18
5.2.160.0060.0429.18
5.2.150.0080.0429.18
5.2.140.0110.0489.18
5.2.130.0070.0319.14
5.2.120.0070.0289.13
5.2.110.0030.0349.14
5.2.100.0060.0319.14
5.2.90.0150.0499.14
5.2.80.0070.0419.13
5.2.70.0040.0429.13
5.2.60.0060.0289.09
5.2.50.0040.0309.06
5.2.40.0040.0309.03
5.2.30.0040.0339.01
5.2.20.0040.0319.00
5.2.10.0070.0408.91
5.2.00.0050.0308.78
5.1.60.0040.0378.05
5.1.50.0070.0338.05
5.1.40.0040.0368.04
5.1.30.0050.0388.39
5.1.20.0040.0318.41
5.1.10.0080.0228.14
5.1.00.0070.0228.13
5.0.50.0050.0196.61
5.0.40.0040.0186.47
5.0.30.0060.0286.29
5.0.20.0030.0206.26
5.0.10.0050.0206.24
5.0.00.0060.0326.23
4.4.90.0010.0204.78
4.4.80.0040.0154.76
4.4.70.0030.0164.75
4.4.60.0030.0154.75
4.4.50.0030.0154.77
4.4.40.0030.0304.71
4.4.30.0050.0204.76
4.4.20.0020.0244.84
4.4.10.0040.0224.85
4.4.00.0030.0254.76
4.3.110.0020.0264.67
4.3.100.0050.0234.67
4.3.90.0070.0204.63
4.3.80.0070.0314.59
4.3.70.0100.0144.63
4.3.60.0050.0194.63
4.3.50.0050.0174.63
4.3.40.0050.0244.53
4.3.30.0040.0153.28
4.3.20.0040.0143.26
4.3.10.0040.0143.22
4.3.00.0030.0279.00

preferences:
38.56 ms | 401 KiB | 5 Q