3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = "Avalone, Doris B. - 09-01-2014 - a00005213.exe"; $searcharr = 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.70.0040.01118.43
8.3.60.0090.00618.43
8.3.50.0120.00821.93
8.3.40.0090.00618.92
8.3.30.0030.01219.07
8.3.20.0040.00420.20
8.3.10.0060.00320.65
8.3.00.0070.00317.63
8.2.180.0080.00818.63
8.2.170.0040.01122.96
8.2.160.0100.00320.35
8.2.150.0040.00424.18
8.2.140.0030.00724.66
8.2.130.0080.00026.16
8.2.120.0000.00822.06
8.2.110.0060.00320.54
8.2.100.0080.00419.39
8.2.90.0080.00019.21
8.2.80.0000.00818.00
8.2.70.0040.00417.75
8.2.60.0060.00317.93
8.2.50.0030.00518.07
8.2.40.0040.00418.28
8.2.30.0020.00519.31
8.2.20.0080.00017.77
8.2.10.0000.00818.19
8.2.00.0040.00417.86
8.1.280.0120.00425.92
8.1.270.0060.00324.02
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0100.00723.90
8.1.230.0030.00918.94
8.1.220.0040.00417.78
8.1.210.0030.00618.77
8.1.200.0030.00617.35
8.1.190.0050.00317.23
8.1.180.0060.00318.10
8.1.170.0080.00018.57
8.1.160.0080.00021.85
8.1.150.0080.00018.79
8.1.140.0040.00417.57
8.1.130.0030.00317.76
8.1.120.0030.00317.55
8.1.110.0000.00717.49
8.1.100.0040.00417.43
8.1.90.0070.00017.59
8.1.80.0040.00417.52
8.1.70.0080.00017.50
8.1.60.0040.00417.50
8.1.50.0000.00817.52
8.1.40.0030.00517.54
8.1.30.0000.00817.71
8.1.20.0030.00517.63
8.1.10.0000.00817.69
8.1.00.0000.00717.52
8.0.300.0000.00818.77
8.0.290.0000.00816.88
8.0.280.0000.00818.46
8.0.270.0030.00317.27
8.0.260.0040.00417.29
8.0.250.0080.00017.15
8.0.240.0030.00617.06
8.0.230.0030.00317.02
8.0.220.0040.00416.91
8.0.210.0070.00017.02
8.0.200.0040.00416.90
8.0.190.0040.00416.95
8.0.180.0070.00016.91
8.0.170.0060.00316.98
8.0.160.0030.00316.84
8.0.150.0000.00716.83
8.0.140.0040.00416.93
8.0.130.0030.00313.49
8.0.120.0030.00616.84
8.0.110.0000.00716.82
8.0.100.0000.00816.98
8.0.90.0030.00316.82
8.0.80.0040.01016.86
8.0.70.0070.00017.01
8.0.60.0050.00216.82
8.0.50.0000.00816.92
8.0.30.0120.00617.15
8.0.20.0110.00817.46
8.0.10.0000.00716.97
8.0.00.0060.01116.96
7.4.330.0000.00515.00
7.4.320.0070.00016.72
7.4.300.0060.00016.79
7.4.290.0030.00316.73
7.4.280.0040.00716.71
7.4.270.0070.00016.69
7.4.260.0070.00016.62
7.4.250.0040.00416.60
7.4.240.0080.00016.68
7.4.230.0000.00816.75
7.4.220.0090.01216.71
7.4.210.0100.00716.82
7.4.200.0030.00316.45
7.4.160.0110.01116.63
7.4.150.0090.00917.40
7.4.140.0120.00717.86
7.4.130.0070.01116.58
7.4.120.0050.01416.70
7.4.110.0120.00616.71
7.4.100.0200.00016.63
7.4.90.0030.01316.49
7.4.80.0100.00719.39
7.4.70.0110.00616.63
7.4.60.0060.00916.68
7.4.50.0030.00316.68
7.4.40.0070.01016.58
7.4.30.0070.01316.73
7.4.00.0030.01414.78
7.3.330.0040.00413.26
7.3.320.0040.00213.26
7.3.310.0000.00716.41
7.3.300.0030.00316.37
7.3.290.0110.00416.45
7.3.280.0100.00616.38
7.3.270.0140.00517.40
7.3.260.0100.00716.79
7.3.250.0090.00716.59
7.3.240.0130.01216.51
7.3.230.0170.00016.84
7.3.210.0030.01316.59
7.3.200.0160.00019.39
7.3.190.0040.01316.42
7.3.180.0080.00816.59
7.3.170.0150.00816.89
7.3.160.0090.00616.62
7.3.10.0000.01316.72
7.3.00.0090.00316.75
7.2.330.0100.00716.91
7.2.320.0140.00716.63
7.2.310.0150.00316.99
7.2.300.0070.01316.71
7.2.290.0030.01816.63
7.2.130.0060.00917.12
7.2.120.0130.00317.22
7.2.110.0060.00916.78
7.2.100.0140.00016.89
7.2.90.0060.00916.93
7.2.80.0070.01116.99
7.2.70.0060.00916.89
7.2.60.0080.00316.99
7.2.50.0090.00617.14
7.2.40.0030.01316.80
7.2.30.0060.00717.20
7.2.20.0040.00817.28
7.2.10.0110.00317.14
7.2.00.0040.01018.18
7.1.250.0030.01315.97
7.1.200.0030.01015.87
7.1.100.0060.00618.09
7.1.70.0000.01017.24
7.1.60.0000.02519.61
7.1.50.0070.01516.90
7.1.00.0030.07722.46
7.0.200.0030.00717.14
7.0.140.0070.07021.95
7.0.60.0170.04020.04
7.0.50.0030.07717.82
7.0.40.0070.07319.98
7.0.30.0230.05720.04
7.0.20.0270.08320.01
7.0.10.0200.07720.01
7.0.00.0100.08720.19
5.6.280.0100.06721.12
5.6.210.0070.07020.51
5.6.200.0030.04318.16
5.6.190.0030.04720.60
5.6.180.0300.03320.35
5.6.170.0200.04720.43
5.6.160.0030.04320.61
5.6.150.0100.07718.10
5.6.140.0130.07318.16
5.6.130.0030.05318.12
5.6.120.0030.06020.94
5.6.110.0030.04320.98
5.6.100.0170.07320.97
5.6.90.0170.07720.96
5.6.80.0100.06320.43
5.6.70.4730.04020.39
5.5.350.0100.07720.37
5.5.340.0100.06017.88
5.5.330.0030.04320.44
5.5.320.0230.08720.31
5.5.310.0230.08320.21
5.5.300.0100.04717.90
5.5.290.0130.03318.02
5.5.280.0030.08320.96
5.5.270.0130.06320.96
5.5.260.0200.08320.66
5.5.250.0130.07320.57
5.5.240.0100.07720.06
5.4.450.0300.04719.49
5.4.440.0270.03719.43
5.4.430.0170.04719.48
5.4.420.0400.03719.42
5.4.410.0430.04019.30
5.4.400.0730.03719.23
5.4.390.0370.04018.93
5.4.380.0300.06018.70
5.4.370.0300.08018.44
5.4.360.0400.04718.66
5.4.350.0330.05318.63
5.4.340.0470.05318.68
5.4.320.0080.03412.45
5.4.310.0050.03812.45
5.4.300.0030.03912.45
5.4.290.0060.03712.45
5.4.280.0050.03512.35
5.4.270.0060.03512.34
5.4.260.0050.04712.35
5.4.250.0070.03512.34
5.4.240.0070.03312.34
5.4.230.0040.03812.34
5.4.220.0070.03312.34
5.4.210.0050.03612.34
5.4.200.0070.03612.34
5.4.190.0020.03912.33
5.4.180.0060.03512.33
5.4.170.0020.03912.35
5.4.160.0060.03412.34
5.4.150.0060.03512.34
5.4.140.0070.03412.02
5.4.130.0060.03312.01
5.4.120.0060.03311.97
5.4.110.0100.03211.96
5.4.100.0060.03311.96
5.4.90.0060.03511.96
5.4.80.0050.04911.96
5.4.70.0060.03911.96
5.4.60.0030.03711.96
5.4.50.0030.03711.96
5.4.40.0050.03911.95
5.4.30.0070.03711.95
5.4.20.0100.03711.94
5.4.10.0080.03511.95
5.4.00.0030.04211.43
5.3.290.0030.04112.80
5.3.280.0050.04212.71
5.3.270.0020.04312.72
5.3.260.0020.04312.72
5.3.250.0080.03512.72
5.3.240.0100.03212.72
5.3.230.0080.03912.71
5.3.220.0060.04312.68
5.3.210.0060.04412.68
5.3.200.0050.03912.68
5.3.190.0100.03612.68
5.3.180.0020.04012.68
5.3.170.0070.03412.67
5.3.160.0040.03812.67
5.3.150.0040.03812.68
5.3.140.0030.03912.66
5.3.130.0060.03712.66
5.3.120.0050.03812.66
5.3.110.0050.03812.66
5.3.100.0050.04512.12
5.3.90.0060.03512.09
5.3.80.0100.03112.07
5.3.70.0080.03312.07
5.3.60.0090.03912.06
5.3.50.0060.03512.00
5.3.40.0060.03512.00
5.3.30.0060.03311.95
5.3.20.0070.03211.72
5.3.10.0030.03611.69
5.3.00.0080.03911.68
5.2.170.0050.0299.18
5.2.160.0040.0409.18
5.2.150.0050.0309.18
5.2.140.0050.0299.17
5.2.130.0060.0319.13
5.2.120.0040.0289.14
5.2.110.0030.0299.14
5.2.100.0080.0279.14
5.2.90.0040.0289.14
5.2.80.0040.0309.13
5.2.70.0070.0349.13
5.2.60.0080.0299.09
5.2.50.0080.0329.06
5.2.40.0020.0309.04
5.2.30.0040.0299.01
5.2.20.0000.0329.01
5.2.10.0030.0348.92
5.2.00.0030.0328.77
5.1.60.0040.0278.06
5.1.50.0030.0278.06
5.1.40.0040.0248.04
5.1.30.0030.0268.39
5.1.20.0060.0258.41
5.1.10.0080.0218.13
5.1.00.0010.0288.14
5.0.50.0030.0206.61
5.0.40.0040.0186.47
5.0.30.0020.0316.29
5.0.20.0020.0196.26
5.0.10.0020.0206.23
5.0.00.0040.0376.23
4.4.90.0040.0154.78
4.4.80.0060.0114.75
4.4.70.0030.0154.75
4.4.60.0040.0154.76
4.4.50.0040.0244.77
4.4.40.0020.0254.71
4.4.30.0020.0154.76
4.4.20.0040.0134.84
4.4.10.0010.0164.85
4.4.00.0050.0324.75
4.3.110.0050.0204.67
4.3.100.0060.0194.66
4.3.90.0020.0224.63
4.3.80.0040.0244.58
4.3.70.0020.0144.63
4.3.60.0030.0134.63
4.3.50.0030.0194.63
4.3.40.0030.0264.54
4.3.30.0010.0203.28
4.3.20.0040.0133.26
4.3.10.0020.0153.22
4.3.00.0030.01716.67

preferences:
50.04 ms | 401 KiB | 5 Q