3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array=array('A-C','A-E','Yes or No'); $result=array_map("showresult",$array); function showresult($a){ $case=preg_match_all('/-|or/',$a,$matches); $a_explode=explode("$matches[0]",$a); // print_r($a_explode[0]); // switch($matches[0]){ //case "-":for(); //} }

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.0040.01116.75
8.3.50.0140.00517.67
8.3.40.0000.01518.96
8.3.30.0070.01418.96
8.3.20.0050.00519.03
8.3.10.0060.00320.79
8.3.00.0110.00017.71
8.2.180.0100.01017.13
8.2.170.0030.01422.96
8.2.160.0070.00721.07
8.2.150.0090.00624.18
8.2.140.0130.00624.66
8.2.130.0030.00526.16
8.2.120.0100.00720.01
8.2.110.0030.00619.20
8.2.100.0070.00418.03
8.2.90.0040.00720.91
8.2.80.0040.00418.05
8.2.70.0050.00317.88
8.2.60.0040.00717.92
8.2.50.0060.00318.07
8.2.40.0030.00518.03
8.2.30.0000.00718.09
8.2.20.0000.00717.86
8.2.10.0000.00817.89
8.2.00.0030.00617.89
8.1.280.0030.01025.92
8.1.270.0080.00024.66
8.1.260.0050.00326.35
8.1.250.0140.00428.09
8.1.240.0060.00917.58
8.1.230.0130.00017.48
8.1.220.0060.00317.74
8.1.210.0000.00818.89
8.1.200.0060.00317.48
8.1.190.0000.00817.51
8.1.180.0000.00818.10
8.1.170.0000.00820.53
8.1.160.0000.00718.82
8.1.150.0050.00318.64
8.1.140.0060.00317.55
8.1.130.0070.00017.85
8.1.120.0070.00017.45
8.1.110.0040.00417.41
8.1.100.0070.00017.63
8.1.90.0040.00417.57
8.1.80.0070.00017.64
8.1.70.0030.00317.61
8.1.60.0000.00817.74
8.1.50.0070.00017.48
8.1.40.0040.00417.71
8.1.30.0040.00417.63
8.1.20.0030.00517.74
8.1.10.0040.00417.61
8.1.00.0000.00717.68
8.0.300.0040.00419.98
8.0.290.0040.00416.88
8.0.280.0000.00718.41
8.0.270.0040.00417.29
8.0.260.0030.00316.96
8.0.250.0040.00417.08
8.0.240.0060.00317.04
8.0.230.0000.00717.01
8.0.220.0000.00716.88
8.0.210.0040.00417.06
8.0.200.0040.00417.15
8.0.190.0040.00417.14
8.0.180.0000.00717.15
8.0.170.0040.00417.11
8.0.160.0040.00416.95
8.0.150.0060.00316.93
8.0.140.0050.00616.95
8.0.130.0060.00013.46
8.0.120.0070.00017.03
8.0.110.0070.00017.07
8.0.100.0000.00717.07
8.0.90.0000.00717.08
8.0.80.0100.00716.99
8.0.70.0070.00016.98
8.0.60.0050.00317.00
8.0.50.0000.00817.03
8.0.30.0070.01217.17
8.0.20.0090.00917.09
8.0.10.0040.00417.01
8.0.00.0050.01317.00
7.4.330.0050.00013.26
7.4.320.0040.00416.70
7.4.300.0000.00616.73
7.4.290.0000.00716.80
7.4.280.0040.00416.58
7.4.270.0000.00716.71
7.4.260.0000.00613.44
7.4.250.0080.00016.72
7.4.240.0000.00716.87
7.4.230.0050.00216.75
7.4.220.0130.00716.79
7.4.210.0100.00816.80
7.4.200.0000.00716.89
7.4.190.0070.00016.90
7.4.160.0120.00416.63
7.4.150.0100.00716.73
7.4.140.0130.00516.65
7.4.130.0100.00616.60
7.4.120.0120.00516.70
7.4.110.0130.00316.65
7.4.100.0040.01716.70
7.4.90.0190.00616.95
7.4.80.0070.01116.77
7.4.70.0060.01216.62
7.4.60.0060.01216.77
7.4.50.0060.00316.75
7.4.40.0140.00016.48
7.4.30.0160.00016.71
7.4.00.0060.00314.91
7.3.330.0000.00613.43
7.3.320.0000.00513.30
7.3.310.0070.00016.36
7.3.300.0040.00416.52
7.3.290.0040.01016.43
7.3.280.0070.00916.45
7.3.270.0070.01116.68
7.3.260.0100.00716.56
7.3.250.0110.00916.58
7.3.240.0100.00716.46
7.3.230.0090.00916.41
7.3.210.0070.01016.57
7.3.200.0070.01019.39
7.3.190.0030.01416.55
7.3.180.0050.01016.64
7.3.170.0140.00316.68
7.3.160.0150.00616.47
7.3.120.0070.00615.18
7.3.10.0000.01316.87
7.3.00.0070.00716.82
7.2.330.0070.01016.73
7.2.320.0090.00917.01
7.2.310.0120.00916.80
7.2.300.0080.01216.73
7.2.290.0150.00316.69
7.2.130.0160.00417.08
7.2.120.0000.01317.04
7.2.110.0100.00317.05
7.2.100.0040.00416.88
7.2.90.0060.00917.06
7.2.80.0120.00316.96
7.2.70.0000.01417.20
7.2.60.0020.01116.89
7.2.50.0040.00716.87
7.2.40.0030.00817.15
7.2.30.0060.00817.20
7.2.20.0060.00316.86
7.2.10.0060.00317.09
7.2.00.0000.01116.99
7.1.250.0000.01415.88
7.1.200.0070.00715.72
7.1.70.0060.00317.05
7.1.60.0140.01019.40
7.1.50.0100.02134.92
7.1.00.0100.07022.36
7.0.200.0000.01016.55
7.0.140.0170.06322.21
7.0.120.0070.07022.03
7.0.60.0030.04320.07
7.0.50.0030.04317.89
7.0.40.0200.06020.13
7.0.30.0470.07720.08
7.0.20.0230.08320.16
7.0.10.0030.08320.09
7.0.00.0170.06320.08
5.6.280.0070.07021.01
5.6.210.0030.08720.67
5.6.200.0100.06718.19
5.6.190.0200.04020.43
5.6.180.0300.07320.58
5.6.170.0270.07720.55
5.6.160.0130.05020.46
5.6.150.0030.08318.15
5.6.140.0100.04318.21
5.6.130.0100.07718.21
5.6.120.0030.06021.03
5.6.110.0100.07721.12
5.6.100.0200.07021.13
5.6.90.0130.08320.98
5.6.80.0030.08320.43
5.5.350.0000.07720.50
5.5.340.0070.08017.93
5.5.330.0070.07020.42
5.5.320.0330.07320.31
5.5.310.0330.03020.36
5.5.300.0170.07318.02
5.5.290.0100.08017.97
5.5.280.0000.06320.77
5.5.270.0070.05720.77
5.5.260.0100.08020.86
5.5.250.0070.04020.69
5.5.240.0300.06720.12
5.4.450.0030.04319.57
5.4.440.0070.04719.44
5.4.430.0000.04319.47
5.4.420.0000.08319.47
5.4.410.0030.04719.04
5.4.400.0070.03719.12
5.4.390.0100.06318.87
5.4.380.0000.07719.15
5.4.370.0000.04319.09
5.4.360.0030.08319.24
5.4.350.0030.04019.25
5.4.340.0130.04019.14
5.4.320.0070.04719.15
5.4.310.0000.06319.14
5.4.300.0030.08018.85
5.4.290.0100.07019.15
5.4.280.0070.05019.24
5.4.270.0030.05019.28
5.4.260.0100.04319.14
5.4.250.0100.04318.97
5.4.240.0100.06719.15
5.4.230.0100.03319.14
5.4.220.0030.04019.23
5.4.210.0030.07718.83
5.4.200.0030.05318.86
5.4.190.0100.06319.23
5.4.180.0030.05719.07
5.4.170.0030.07319.23
5.4.160.0030.05018.86
5.4.150.0070.04318.86
5.4.140.0030.07016.41
5.4.130.0070.04716.36
5.4.120.0100.07316.46
5.4.110.0070.03716.72
5.4.100.0070.04316.50
5.4.90.0070.06016.46
5.4.80.0100.06716.46
5.4.70.0100.06016.42
5.4.60.0000.05016.38
5.4.50.0100.03016.44
5.4.40.0070.05716.41
5.4.30.0070.04016.64
5.4.20.0030.04716.30
5.4.10.0000.05016.50
5.4.00.0070.07315.91
5.3.290.0030.08014.73
5.3.280.0030.06014.66
5.3.270.0030.04014.76
5.3.260.0070.07014.75
5.3.250.0000.06714.49
5.3.240.0030.06014.66
5.3.230.0100.07014.59
5.3.220.0030.07014.59
5.3.210.0000.04714.45
5.3.200.0030.07314.45
5.3.190.0070.07714.57
5.3.180.0030.06314.64
5.3.170.0070.07014.57
5.3.160.0070.06014.63
5.3.150.0030.05714.57
5.3.140.0100.05014.59
5.3.130.0030.08014.69
5.3.120.0030.06014.57
5.3.110.0100.07314.69
5.3.100.0070.07314.08
5.3.90.0100.07014.05
5.3.80.0130.06313.91
5.3.70.0070.06714.16
5.3.60.0100.04014.05
5.3.50.0070.07013.99
5.3.40.0000.08014.09
5.3.30.0070.05713.85
5.3.20.0030.03713.70
5.3.10.0070.07013.65
5.3.00.0100.05313.70
5.2.170.0030.04011.18
5.2.160.0030.05311.17
5.2.150.0070.02711.14
5.2.140.0030.03711.21
5.2.130.0070.02711.05
5.2.120.0030.04311.18
5.2.110.0100.05011.15
5.2.100.0000.06711.27
5.2.90.0030.06011.15
5.2.80.0070.03311.16
5.2.70.0030.03311.09
5.2.60.0000.03311.05
5.2.50.0000.04710.99
5.2.40.0130.05311.01
5.2.30.0100.04311.12
5.2.20.0030.05010.93
5.2.10.0000.04010.83
5.2.00.0070.06010.67
5.1.60.0030.0279.95
5.1.50.0000.02710.15
5.1.40.0070.0309.95
5.1.30.0070.05710.23
5.1.20.0070.05310.38
5.1.10.0070.05310.04
5.1.00.0030.05710.21
5.0.50.0100.0238.55
5.0.40.0030.0378.43
5.0.30.0130.0608.27
5.0.20.0070.0438.21
5.0.10.0030.0438.18
5.0.00.0030.0338.18
4.4.90.0030.0178.18
4.4.80.0100.0308.18
4.4.70.0030.0208.18
4.4.60.0030.0378.18
4.4.50.0000.0308.18
4.4.40.0000.0338.18
4.4.30.0000.0178.18
4.4.20.0030.0238.18
4.4.10.0070.0308.18
4.4.00.0000.0308.18
4.3.110.0000.0238.18
4.3.100.0100.0308.18
4.3.90.0070.0338.18
4.3.80.0000.0278.18
4.3.70.0030.0408.18
4.3.60.0030.0378.18
4.3.50.0100.0138.18
4.3.40.0070.0508.18
4.3.30.0000.0208.18
4.3.20.0070.0308.18
4.3.10.0070.0308.18
4.3.00.0030.0208.18

preferences:
54.81 ms | 400 KiB | 5 Q