3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = "O'Connor, Doris B. - 09-01-2014 - a00005213.exe"; preg_match("/^[\w']+/", $name, $matches); if (strlen($matches[0]) >= 4) $searchstr = substr($matches[0], 0 ,4); else $searchstr = $matches[0]; print($searchstr);

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.0000.01518.30
8.3.50.0090.01221.99
8.3.40.0110.00418.92
8.3.30.0040.01219.09
8.3.20.0000.00820.29
8.3.10.0040.00420.46
8.3.00.0080.00417.22
8.2.180.0120.00318.66
8.2.170.0030.01422.96
8.2.160.0100.00320.52
8.2.150.0000.00824.18
8.2.140.0090.00924.66
8.2.130.0030.01026.16
8.2.120.0040.00422.31
8.2.110.0060.00322.17
8.2.100.0110.00019.32
8.2.90.0050.00519.36
8.2.80.0040.00417.97
8.2.70.0000.00817.75
8.2.60.0040.00717.92
8.2.50.0000.00818.07
8.2.40.0070.00318.22
8.2.30.0050.00219.45
8.2.20.0040.00417.77
8.2.10.0000.00818.21
8.2.00.0000.00717.94
8.1.280.0110.00425.92
8.1.270.0080.00023.96
8.1.260.0030.00526.35
8.1.250.0030.00528.09
8.1.240.0000.00923.84
8.1.230.0070.00419.04
8.1.220.0060.00317.74
8.1.210.0060.00318.77
8.1.200.0040.00417.23
8.1.190.0040.00417.35
8.1.180.0030.00618.10
8.1.170.0080.00018.78
8.1.160.0040.00422.03
8.1.150.0040.00418.85
8.1.140.0020.00517.41
8.1.130.0050.00217.80
8.1.120.0000.00717.56
8.1.110.0050.00317.42
8.1.100.0080.00017.51
8.1.90.0000.00717.43
8.1.80.0070.00017.52
8.1.70.0000.00717.55
8.1.60.0030.00617.67
8.1.50.0040.00417.60
8.1.40.0030.00617.52
8.1.30.0030.00517.64
8.1.20.0040.00417.70
8.1.10.0020.00517.75
8.1.00.0000.00917.51
8.0.300.0070.00018.77
8.0.290.0070.00016.88
8.0.280.0070.00018.47
8.0.270.0040.00417.28
8.0.260.0030.00317.26
8.0.250.0000.00717.16
8.0.240.0040.00417.06
8.0.230.0000.00716.99
8.0.220.0030.00316.87
8.0.210.0040.00417.01
8.0.200.0040.00417.00
8.0.190.0040.00417.02
8.0.180.0080.00017.00
8.0.170.0000.00716.98
8.0.160.0070.00016.96
8.0.150.0000.00716.94
8.0.140.0040.00416.87
8.0.130.0000.00513.28
8.0.120.0000.00816.94
8.0.110.0070.00017.01
8.0.100.0000.00716.91
8.0.90.0050.00316.94
8.0.80.0080.01116.96
8.0.70.0050.00316.79
8.0.60.0070.00016.91
8.0.50.0000.00917.00
8.0.30.0080.01017.33
8.0.20.0100.00917.40
8.0.10.0000.00817.10
8.0.00.0070.01117.07
7.4.330.0020.00215.00
7.4.320.0030.00316.57
7.4.300.0030.00316.70
7.4.290.0030.00316.55
7.4.280.0030.00616.72
7.4.270.0000.00816.75
7.4.260.0000.00716.67
7.4.250.0060.00316.56
7.4.240.0040.00416.76
7.4.230.0070.00016.74
7.4.220.0130.00616.60
7.4.210.0080.00516.71
7.4.200.0030.00316.65
7.4.160.0090.00916.51
7.4.150.0170.00017.40
7.4.140.0160.00517.86
7.4.130.0090.00816.64
7.4.120.0140.00316.77
7.4.110.0060.01616.70
7.4.100.0070.01116.75
7.4.90.0120.00616.49
7.4.80.0000.02519.39
7.4.70.0180.00716.65
7.4.60.0070.00916.59
7.4.50.0040.00416.64
7.4.40.0060.01016.58
7.4.30.0100.01016.77
7.4.00.0070.01014.96
7.3.330.0030.00313.36
7.3.320.0050.00213.24
7.3.310.0070.00016.55
7.3.300.0000.00716.48
7.3.290.0060.01416.41
7.3.280.0140.00416.39
7.3.270.0070.01017.40
7.3.260.0120.01216.45
7.3.250.0090.00816.64
7.3.240.0170.01416.83
7.3.230.0150.00616.62
7.3.210.0130.00316.73
7.3.200.0080.00819.39
7.3.190.0030.01316.51
7.3.180.0030.01316.48
7.3.170.0060.01616.69
7.3.160.0060.01116.45
7.3.120.0130.00314.88
7.3.110.0030.01315.09
7.3.100.0050.00515.02
7.3.90.0030.01214.98
7.3.80.0040.01115.27
7.3.70.0000.01815.06
7.3.60.0080.00415.04
7.3.50.0120.00315.14
7.3.40.0100.00715.04
7.3.30.0030.01314.80
7.3.20.0090.00616.92
7.3.10.0090.00616.72
7.3.00.0030.01016.83
7.2.330.0070.01016.82
7.2.320.0070.01016.59
7.2.310.0070.01516.93
7.2.300.0110.00716.75
7.2.290.0120.00616.80
7.2.250.0100.01015.29
7.2.240.0100.01015.16
7.2.230.0070.01015.18
7.2.220.0040.00915.15
7.2.210.0100.00715.30
7.2.200.0090.00615.13
7.2.190.0030.01515.24
7.2.180.0090.00615.39
7.2.170.0100.00615.34
7.2.130.0100.00316.91
7.2.120.0110.00417.18
7.2.110.0070.00716.89
7.2.100.0000.00817.03
7.2.90.0070.00416.73
7.2.80.0030.01017.00
7.2.70.0060.00617.11
7.2.60.0050.00917.01
7.2.50.0070.00717.27
7.2.40.0040.00817.00
7.2.30.0030.01017.18
7.2.20.0070.01017.24
7.2.10.0100.00716.69
7.2.00.0110.00618.31
7.1.330.0070.00716.00
7.1.320.0030.00915.85
7.1.310.0030.01016.06
7.1.300.0090.00615.93
7.1.290.0060.00615.91
7.1.280.0030.01315.91
7.1.270.0060.01015.61
7.1.260.0000.01416.16
7.1.250.0030.00616.16
7.1.200.0030.01015.87
7.1.100.0030.00718.32
7.1.70.0000.00817.18
7.1.60.0110.01419.61
7.1.50.0060.02217.05
7.1.00.0070.07022.59
7.0.200.0000.00716.96
7.0.140.0030.07021.95
7.0.60.0100.07319.93
7.0.50.0070.03717.68
7.0.40.0030.05020.20
7.0.30.0230.08020.18
7.0.20.0300.05320.07
7.0.10.0030.05720.18
7.0.00.0100.09020.13
5.6.210.0030.08320.43
5.6.200.0030.08318.10
5.6.190.0070.07720.39
5.6.180.0200.04320.62
5.6.170.0230.05320.64
5.6.160.0000.09320.71
5.6.150.0100.07718.18
5.6.140.0130.06718.11
5.6.130.0130.07318.21
5.6.120.0070.04021.01
5.6.110.0330.06321.11
5.6.100.0170.06020.95
5.6.90.0000.06721.13
5.6.80.0070.04320.37
5.6.70.4730.03320.36
5.5.350.0330.07320.38
5.5.340.0100.04317.92
5.5.330.0100.08020.38
5.5.320.0130.04720.50
5.5.310.0100.05020.29
5.5.300.0130.07317.88
5.5.290.0030.06318.02
5.5.280.0130.07720.97
5.5.270.0030.08320.95
5.5.260.0130.07720.76
5.5.250.0100.07720.67
5.5.240.0270.08020.18
5.4.450.0170.04019.21
5.4.440.0630.03719.58
5.4.430.0230.04719.57
5.4.420.0400.04019.14
5.4.410.0230.04719.35
5.4.400.0000.04019.16
5.4.390.0130.05718.91
5.4.380.0370.08318.70
5.4.370.0400.07718.72
5.4.360.0330.06318.50
5.4.350.0270.06018.75
5.4.340.0500.05318.61
5.4.320.0070.03512.45
5.4.310.0050.03812.45
5.4.300.0040.03812.45
5.4.290.0060.03712.45
5.4.280.0030.03812.34
5.4.270.0030.04212.35
5.4.260.0090.03512.34
5.4.250.0060.03712.35
5.4.240.0070.03512.35
5.4.230.0060.03712.34
5.4.220.0020.03812.34
5.4.210.0080.03212.34
5.4.200.0050.03712.34
5.4.190.0060.04112.34
5.4.180.0070.03912.34
5.4.170.0040.03612.35
5.4.160.0070.03312.34
5.4.150.0040.04012.34
5.4.140.0050.03812.02
5.4.130.0050.04012.01
5.4.120.0050.03511.97
5.4.110.0090.03111.96
5.4.100.0080.03211.96
5.4.90.0040.03811.96
5.4.80.0060.03511.96
5.4.70.0060.03311.96
5.4.60.0070.03411.96
5.4.50.0120.03211.96
5.4.40.0070.03711.95
5.4.30.0050.03511.95
5.4.20.0040.03811.95
5.4.10.0060.04011.95
5.4.00.0060.04011.44
5.3.290.0070.03812.80
5.3.280.0080.03512.71
5.3.270.0040.04112.72
5.3.260.0060.03912.72
5.3.250.0100.03312.71
5.3.240.0080.03512.72
5.3.230.0090.03412.71
5.3.220.0040.03912.68
5.3.210.0050.03912.68
5.3.200.0080.03312.68
5.3.190.0040.03912.68
5.3.180.0060.04312.67
5.3.170.0030.03812.67
5.3.160.0090.04112.68
5.3.150.0050.03712.67
5.3.140.0080.03312.66
5.3.130.0050.03912.66
5.3.120.0050.03812.66
5.3.110.0060.03812.66
5.3.100.0070.03512.12
5.3.90.0070.03612.08
5.3.80.0050.03512.08
5.3.70.0040.03612.07
5.3.60.0040.03612.07
5.3.50.0040.03612.00
5.3.40.0060.04312.00
5.3.30.0060.04511.95
5.3.20.0070.04111.72
5.3.10.0020.04311.69
5.3.00.0060.03411.68
5.2.170.0030.0319.18
5.2.160.0040.0289.18
5.2.150.0070.0279.18
5.2.140.0070.0299.18
5.2.130.0060.0349.13
5.2.120.0080.0279.13
5.2.110.0030.0389.14
5.2.100.0070.0299.14
5.2.90.0040.0309.14
5.2.80.0060.0339.14
5.2.70.0070.0319.14
5.2.60.0070.0279.09
5.2.50.0020.0329.05
5.2.40.0030.0309.04
5.2.30.0030.0329.01
5.2.20.0060.0279.00
5.2.10.0050.0338.92
5.2.00.0040.0338.77
5.1.60.0040.0258.06
5.1.50.0030.0248.05
5.1.40.0040.0258.04
5.1.30.0010.0298.39
5.1.20.0050.0258.41
5.1.10.0030.0268.14
5.1.00.0040.0248.14
5.0.50.0070.0166.61
5.0.40.0070.0216.47
5.0.30.0030.0316.29
5.0.20.0020.0216.26
5.0.10.0040.0186.23
5.0.00.0050.0396.23
4.4.90.0030.0154.77
4.4.80.0030.0144.75
4.4.70.0010.0164.75
4.4.60.0040.0134.75
4.4.50.0030.0144.77
4.4.40.0010.0264.71
4.4.30.0020.0154.76
4.4.20.0030.0154.84
4.4.10.0000.0174.85
4.4.00.0040.0234.76
4.3.110.0030.0154.67
4.3.100.0030.0154.67
4.3.90.0020.0154.63
4.3.80.0040.0264.58
4.3.70.0020.0164.63
4.3.60.0020.0154.62
4.3.50.0020.0164.63
4.3.40.0030.0234.54
4.3.30.0010.0173.28
4.3.20.0010.0173.26
4.3.10.0030.0143.22
4.3.00.0030.01716.72

preferences:
40.68 ms | 401 KiB | 5 Q