3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match('#^((http:|https:)?//(.+\.)?klm\.com|/[^/]).*$#i', 'http://klm.com/smth', $m); var_dump($m); preg_match('#^((http:|https:)?//(.+\.)?klm\.com|/[^/]).*$#i', '/RU/ru/local/air-france/monde/index.htm', $m); var_dump($m);

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.0140.00016.50
8.3.50.0120.00522.83
8.3.40.0070.01418.69
8.3.30.0110.00419.04
8.3.20.0030.00620.21
8.3.10.0050.00323.66
8.3.00.0050.00317.63
8.2.180.0040.01216.63
8.2.170.0110.00422.96
8.2.160.0110.00420.36
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00420.96
8.2.110.0070.00321.09
8.2.100.0090.00317.72
8.2.90.0080.00017.90
8.2.80.0030.00617.97
8.2.70.0050.00317.75
8.2.60.0030.00617.80
8.2.50.0060.00318.07
8.2.40.0000.00818.09
8.2.30.0120.00017.88
8.2.20.0050.00217.68
8.2.10.0030.00518.02
8.2.00.0070.00017.78
8.1.280.0140.00025.92
8.1.270.0090.00023.89
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0000.00922.53
8.1.230.0070.00421.03
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0130.00017.23
8.1.190.0040.00417.38
8.1.180.0000.00818.10
8.1.170.0040.00418.64
8.1.160.0040.00422.04
8.1.150.0080.00018.79
8.1.140.0050.00317.49
8.1.130.0000.00717.85
8.1.120.0070.00017.39
8.1.110.0000.00817.39
8.1.100.0040.00417.46
8.1.90.0000.00717.39
8.1.80.0000.00717.48
8.1.70.0050.00217.50
8.1.60.0000.01017.64
8.1.50.0040.00417.48
8.1.40.0000.00817.60
8.1.30.0080.00017.71
8.1.20.0000.00717.60
8.1.10.0000.00817.57
8.1.00.0040.00417.52
8.0.300.0070.00019.73
8.0.290.0040.00416.63
8.0.280.0040.00418.36
8.0.270.0000.00717.13
8.0.260.0000.00817.09
8.0.250.0030.00317.02
8.0.240.0040.00417.02
8.0.230.0040.00416.97
8.0.220.0080.00016.89
8.0.210.0030.00716.93
8.0.200.0000.00716.96
8.0.190.0030.00716.85
8.0.180.0000.00716.83
8.0.170.0030.00516.88
8.0.160.0060.00316.95
8.0.150.0060.00316.77
8.0.140.0000.00716.92
8.0.130.0000.00613.34
8.0.120.0050.00316.79
8.0.110.0000.00716.85
8.0.100.0040.00416.70
8.0.90.0000.00716.97
8.0.80.0150.00316.89
8.0.70.0040.00416.96
8.0.60.0080.00016.75
8.0.50.0050.00316.79
8.0.30.0130.00917.19
8.0.20.0090.01217.40
8.0.10.0000.00816.96
8.0.00.0100.01116.85
7.4.330.0040.00415.00
7.4.320.0000.00616.59
7.4.300.0030.00316.73
7.4.290.0000.00616.52
7.4.280.0000.00716.59
7.4.270.0000.00716.74
7.4.260.0030.00416.63
7.4.250.0050.00216.58
7.4.240.0020.00516.63
7.4.230.0040.00416.80
7.4.220.0070.01016.46
7.4.210.0030.01116.64
7.4.200.0050.00216.48
7.4.160.0080.00816.44
7.4.150.0130.00617.40
7.4.140.0110.00917.86
7.4.130.0140.00316.66
7.4.120.0130.00816.47
7.4.110.0160.00616.68
7.4.100.0080.00816.49
7.4.90.0120.00616.52
7.4.80.0040.01619.39
7.4.70.0090.00916.44
7.4.60.0090.00916.70
7.4.50.0040.00416.63
7.4.40.0030.01316.60
7.4.30.0160.00016.36
7.4.00.0090.00615.09
7.3.330.0000.00813.02
7.3.320.0000.00513.03
7.3.310.0070.00016.40
7.3.300.0040.00416.35
7.3.290.0120.00916.30
7.3.280.0060.01316.33
7.3.270.0110.00817.40
7.3.260.0110.00716.61
7.3.250.0090.00816.45
7.3.240.0080.01416.31
7.3.230.0140.00416.39
7.3.210.0100.00716.26
7.3.200.0060.01419.39
7.3.190.0090.01216.55
7.3.180.0030.01216.48
7.3.170.0090.01216.34
7.3.160.0030.01316.54
7.2.330.0050.01416.74
7.2.320.0030.01616.59
7.2.310.0070.01016.67
7.2.300.0040.01216.53
7.2.290.0150.00316.50
7.1.70.0050.00317.35
7.1.60.0110.01119.40
7.1.50.0150.00617.07
7.1.00.0000.08022.33
7.0.200.0100.00016.49
7.0.140.0000.08022.09
7.0.60.0100.03719.77
7.0.50.0030.06717.80
7.0.40.0130.06020.26
7.0.30.0270.09020.36
7.0.20.0370.07020.02
7.0.10.0070.06020.04
7.0.00.0070.04320.01
5.6.280.0070.07021.10
5.6.210.0130.07720.46
5.6.200.0070.08018.19
5.6.190.0030.07320.73
5.6.180.0370.07020.49
5.6.170.0270.05320.38
5.6.160.0030.08320.40
5.6.150.0070.06718.19
5.6.140.0030.06018.18
5.6.130.0100.07718.13
5.6.120.0030.06321.11
5.6.110.0130.07320.88
5.6.100.0070.07721.02
5.6.90.0070.08020.87
5.6.80.0000.06720.50
5.5.350.0070.07020.42
5.5.340.0100.04017.92
5.5.330.0030.10020.44
5.5.320.0030.05320.26
5.5.310.0330.06020.32
5.5.300.0030.05317.99
5.5.290.0000.06318.02
5.5.280.0070.08720.79
5.5.270.0200.04020.79
5.5.260.0130.06720.76
5.5.250.0070.04020.70
5.5.240.0200.06320.25
5.4.450.0230.05019.41
5.4.440.0470.04719.57
5.4.430.0470.03719.57
5.4.420.0130.03319.38
5.4.410.1000.02719.33
5.4.400.0800.04019.09
5.4.390.0630.04019.10
5.4.380.0870.06318.60
5.4.370.0970.05718.48
5.4.360.1070.04718.53
5.4.350.1000.04318.59
5.4.340.0800.05018.50
5.4.320.0060.04412.45
5.4.310.0060.03712.45
5.4.300.0030.04012.45
5.4.290.0050.03812.45
5.4.280.0050.03612.34
5.4.270.0090.03212.35
5.4.260.0100.03612.34
5.4.250.0090.04012.34
5.4.240.0050.03712.34
5.4.230.0050.03912.34
5.4.220.0080.03812.34
5.4.210.0070.03612.34
5.4.200.0090.03412.34
5.4.190.0040.03812.33
5.4.180.0050.03612.33
5.4.170.0040.03812.34
5.4.160.0030.03812.34
5.4.150.0020.04012.34
5.4.140.0100.03512.02
5.4.130.0060.03412.01
5.4.120.0070.03611.97
5.4.110.0040.03611.96
5.4.100.0060.03711.96
5.4.90.0090.03311.96
5.4.80.0060.03711.96
5.4.70.0050.03511.96
5.4.60.0060.03311.96
5.4.50.0030.03811.96
5.4.40.0050.03811.95
5.4.30.0050.03611.95
5.4.20.0020.03811.95
5.4.10.0070.03411.95
5.4.00.0030.03811.44
5.3.290.0070.03712.80
5.3.280.0080.03512.71
5.3.270.0050.03912.73
5.3.260.0070.03812.72
5.3.250.0060.03812.72
5.3.240.0050.03912.72
5.3.230.0110.03312.71
5.3.220.0060.03712.68
5.3.210.0090.03912.68
5.3.200.0070.03612.68
5.3.190.0050.04112.68
5.3.180.0030.03912.67
5.3.170.0060.03512.67
5.3.160.0050.03612.67
5.3.150.0070.03612.68
5.3.140.0060.03612.66
5.3.130.0060.04712.66
5.3.120.0050.04112.66
5.3.110.0090.03612.66
5.3.100.0010.04112.12
5.3.90.0050.03612.08
5.3.80.0070.03412.07
5.3.70.0040.03712.07
5.3.60.0070.03412.07
5.3.50.0070.03412.00
5.3.40.0080.03312.00
5.3.30.0080.03311.96
5.3.20.0050.03511.73
5.3.10.0060.03411.71
5.3.00.0060.03511.69
5.2.170.0030.0329.19
5.2.160.0050.0299.20
5.2.150.0020.0339.19
5.2.140.0050.0309.19
5.2.130.0060.0279.14
5.2.120.0050.0419.15
5.2.110.0030.0339.16
5.2.100.0020.0319.15
5.2.90.0020.0319.16
5.2.80.0030.0329.14
5.2.70.0070.0279.15
5.2.60.0070.0279.10
5.2.50.0050.0299.07
5.2.40.0090.0329.06
5.2.30.0050.0299.03
5.2.20.0040.0299.02
5.2.10.0080.0258.93
5.2.00.0050.0298.79
5.1.60.0020.0258.07
5.1.50.0050.0238.07
5.1.40.0030.0258.05
5.1.30.0050.0248.41
5.1.20.0040.0318.42
5.1.10.0060.0258.14
5.1.00.0040.0258.15
5.0.50.0020.0216.63
5.0.40.0040.0186.48
5.0.30.0040.0306.30
5.0.20.0040.0186.27
5.0.10.0030.0196.25
5.0.00.0030.0306.24
4.4.90.0030.0154.78
4.4.80.0040.0144.75
4.4.70.0020.0164.76
4.4.60.0010.0174.75
4.4.50.0020.0154.77
4.4.40.0020.0254.70
4.4.30.0020.0154.76
4.4.20.0020.0154.84
4.4.10.0030.0154.85
4.4.00.0050.0224.76
4.3.110.0020.0164.67
4.3.100.0020.0154.67
4.3.90.0030.0144.63
4.3.80.0030.0244.59
4.3.70.0040.0124.63
4.3.60.0030.0134.63
4.3.50.0030.0154.63
4.3.40.0050.0244.54
4.3.30.0040.0133.30
4.3.20.0020.0153.27
4.3.10.0010.0163.23
4.3.00.0200.01315.96

preferences:
43.57 ms | 401 KiB | 5 Q