3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array=array('A-C','A-E','Yes or No'); $result=showresult('A-C'); //$result=array_map("showresult",$array); function showresult($a){ $case=preg_match_all('/-|or/',$a,$matches); $explode_by=$matches[0][0]; //print_r($matches[0][0]);die(); $a_explode=explode($explode_by,$a); echo $a_explode[0]; for($i=$a_explode[0];$i<=$a_explode[1];$i++){ echo ++$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.0090.01318.67
8.3.50.0060.01122.14
8.3.40.0100.01018.96
8.3.30.0150.00319.27
8.3.20.0080.00020.18
8.3.10.0080.00021.84
8.3.00.0030.00622.23
8.2.180.0160.00716.88
8.2.170.0110.00422.96
8.2.160.0030.01120.93
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0050.00226.16
8.2.120.0080.00017.88
8.2.110.0060.00319.22
8.2.100.0070.00717.84
8.2.90.0000.00819.26
8.2.80.0090.00020.02
8.2.70.0030.00617.75
8.2.60.0000.00818.16
8.2.50.0000.00818.07
8.2.40.0000.00818.22
8.2.30.0060.00318.20
8.2.20.0040.00417.85
8.2.10.0040.00417.88
8.2.00.0000.00717.83
8.1.280.0170.00325.92
8.1.270.0050.00323.79
8.1.260.0030.00526.35
8.1.250.0080.00028.09
8.1.240.0060.00323.61
8.1.230.0110.00020.88
8.1.220.0030.00617.79
8.1.210.0030.00518.77
8.1.200.0060.00317.48
8.1.190.0080.00017.53
8.1.180.0030.00518.10
8.1.170.0040.00418.60
8.1.160.0030.00722.03
8.1.150.0070.00418.73
8.1.140.0000.00717.59
8.1.130.0030.00317.88
8.1.120.0000.00717.50
8.1.110.0030.00517.62
8.1.100.0040.00417.63
8.1.90.0050.00317.55
8.1.80.0080.00017.50
8.1.70.0040.00417.52
8.1.60.0040.00417.69
8.1.50.0030.00617.70
8.1.40.0060.00317.63
8.1.30.0030.00617.72
8.1.20.0000.00817.66
8.1.10.0000.00817.62
8.1.00.0040.00417.54
8.0.300.0030.00318.77
8.0.290.0050.00316.91
8.0.280.0070.00018.34
8.0.270.0030.00317.29
8.0.260.0000.00816.96
8.0.250.0030.00317.07
8.0.240.0000.00717.13
8.0.230.0000.00717.13
8.0.220.0000.00717.03
8.0.210.0000.00717.00
8.0.200.0030.00317.11
8.0.190.0070.00017.02
8.0.180.0030.00517.04
8.0.170.0040.00417.08
8.0.160.0040.00417.03
8.0.150.0000.00816.96
8.0.140.0040.00316.92
8.0.130.0040.00413.45
8.0.120.0050.00316.89
8.0.110.0040.00416.95
8.0.100.0030.00316.98
8.0.90.0000.00717.02
8.0.80.0090.00617.04
8.0.70.0040.00417.10
8.0.60.0040.00417.09
8.0.50.0000.00717.05
8.0.30.0110.00917.33
8.0.20.0060.01517.40
8.0.10.0000.00717.14
8.0.00.0080.01316.91
7.4.330.0020.00215.08
7.4.320.0000.00716.68
7.4.300.0020.00516.71
7.4.290.0030.00316.70
7.4.280.0030.00316.71
7.4.270.0030.00316.64
7.4.260.0030.00316.70
7.4.250.0000.00816.77
7.4.240.0040.00416.74
7.4.230.0030.00316.73
7.4.220.0030.01416.74
7.4.210.0060.00816.67
7.4.200.0070.00016.78
7.4.190.0030.00316.80
7.4.160.0040.01216.70
7.4.150.0110.00817.40
7.4.140.0100.01017.86
7.4.130.0100.00916.77
7.4.120.0080.01016.73
7.4.110.0090.00916.51
7.4.100.0100.01316.68
7.4.90.0120.00616.59
7.4.80.0070.01419.39
7.4.70.0030.01316.73
7.4.60.0060.00916.67
7.4.50.0030.00516.60
7.4.40.0040.01222.77
7.4.30.0060.01616.80
7.4.10.0050.01315.07
7.4.00.0080.00915.23
7.3.330.0030.00313.37
7.3.320.0030.00313.59
7.3.310.0000.00716.61
7.3.300.0020.00516.51
7.3.290.0050.01016.51
7.3.280.0080.01116.54
7.3.270.0170.00017.40
7.3.260.0070.01016.55
7.3.250.0060.01516.57
7.3.240.0030.01416.53
7.3.230.0160.00716.52
7.3.210.0110.01116.58
7.3.200.0040.01519.39
7.3.190.0060.01216.59
7.3.180.0060.00916.56
7.3.170.0060.01116.47
7.3.160.0100.01016.51
7.3.130.0100.00815.16
7.3.120.0060.01215.09
7.3.110.0050.01215.14
7.3.100.0060.00915.16
7.3.90.0090.00615.01
7.3.80.0050.00715.15
7.3.70.0070.00914.91
7.3.60.0070.00814.92
7.3.50.0060.00815.00
7.3.40.0060.00514.89
7.3.30.0060.00715.10
7.3.20.0090.00516.93
7.3.10.0050.01016.77
7.3.00.0100.00416.83
7.2.330.0070.01016.84
7.2.320.0110.00716.93
7.2.310.0110.00616.79
7.2.300.0040.01216.74
7.2.290.0060.01216.67
7.2.260.0030.01615.39
7.2.250.0110.00815.15
7.2.240.0040.01115.22
7.2.230.0060.01015.22
7.2.220.0040.01015.37
7.2.210.0060.00815.26
7.2.200.0040.01115.28
7.2.190.0060.00915.21
7.2.180.0050.00915.44
7.2.170.0040.00615.13
7.2.160.0040.01215.29
7.2.150.0040.01217.03
7.2.140.0120.00316.98
7.2.130.0060.00817.02
7.2.120.0040.01116.99
7.2.110.0020.01116.99
7.2.100.0050.00717.00
7.2.90.0060.00817.12
7.2.80.0060.00917.12
7.2.70.0070.00817.13
7.2.60.0070.00817.07
7.2.50.0070.00816.97
7.2.40.0040.01017.13
7.2.30.0030.01217.12
7.2.20.0060.00717.10
7.2.10.0080.00517.01
7.2.00.0070.00717.65
7.1.330.0060.00916.09
7.1.320.0070.00616.03
7.1.310.0010.01115.98
7.1.300.0060.00616.04
7.1.290.0020.01116.06
7.1.280.0060.00716.00
7.1.270.0080.00816.01
7.1.260.0070.00515.89
7.1.250.0080.00815.95
7.1.240.0050.00916.07
7.1.230.0060.00415.97
7.1.220.0050.00615.97
7.1.210.0060.00615.99
7.1.200.0050.00816.02
7.1.190.0030.00816.00
7.1.180.0080.00315.88
7.1.170.0030.01115.92
7.1.160.0050.00715.94
7.1.150.0050.00815.90
7.1.140.0030.00816.02
7.1.130.0060.00716.02
7.1.120.0030.00815.97
7.1.110.0040.00616.03
7.1.100.0050.01016.38
7.1.90.0060.00515.85
7.1.80.0060.00816.02
7.1.70.0040.00916.28
7.1.60.0070.00916.84
7.1.50.0070.00916.28
7.1.40.0060.00715.94
7.1.30.0070.00816.04
7.1.20.0050.00815.97
7.1.10.0020.01215.97
7.1.00.0060.02117.26
7.0.330.0070.00815.63
7.0.320.0080.00615.45
7.0.310.0050.00615.61
7.0.300.0080.00515.59
7.0.290.0050.00715.62
7.0.280.0020.00915.50
7.0.270.0070.00515.61
7.0.260.0070.00615.60
7.0.250.0050.00915.67
7.0.240.0050.00815.72
7.0.230.0060.00615.39
7.0.220.0040.00715.71
7.0.210.0050.00815.56
7.0.200.0050.00715.87
7.0.190.0030.00715.60
7.0.180.0070.00615.55
7.0.170.0040.00615.63
7.0.160.0070.00715.60
7.0.150.0060.00615.66
7.0.140.0050.02116.81
7.0.130.0070.00615.54
7.0.120.0040.00815.63
7.0.110.0020.01115.62
7.0.100.0070.02116.53
7.0.90.0080.02016.43
7.0.80.0090.01716.45
7.0.70.0070.01816.42
7.0.60.0090.02016.51
7.0.50.0150.02216.58
7.0.40.0050.02215.10
7.0.30.0060.01715.07
7.0.20.0040.02115.00
7.0.10.0060.01614.95
7.0.00.0040.02514.95
5.6.400.0030.00914.33
5.6.390.0060.00914.60
5.6.380.0070.00614.46
5.6.370.0040.00914.67
5.6.360.0080.00414.61
5.6.350.0060.00614.42
5.6.340.0060.00914.48
5.6.330.0040.00914.52
5.6.320.0050.00814.40
5.6.310.0100.00214.59
5.6.300.0050.00614.61
5.6.290.0020.01014.71
5.6.280.0070.02115.81
5.6.270.0050.00814.45
5.6.260.0100.00214.44
5.6.250.0080.01915.74
5.6.240.0070.02115.72
5.6.230.0090.02015.69
5.6.220.0060.02315.75
5.6.210.0060.02115.75
5.6.200.0090.01815.82
5.6.190.0050.01515.85
5.6.180.0080.01915.93
5.6.170.0060.02215.80
5.6.160.0070.02115.80
5.6.150.0060.02415.88
5.6.140.0050.02215.78
5.6.130.0040.01815.75
5.6.120.0050.01515.87
5.6.110.0080.02115.91
5.6.100.0060.02015.74
5.6.90.0040.02115.76
5.6.80.0060.01715.51
5.6.70.0040.02415.51
5.6.60.0070.01915.56
5.6.50.0070.02115.54
5.6.40.0050.02515.59
5.6.30.0050.02215.55
5.6.20.0080.02015.66
5.6.10.0070.01315.64
5.6.00.0070.02115.54
5.5.380.0080.02014.95
5.5.370.0060.01615.09
5.5.360.0030.02214.91
5.5.350.0100.01914.94
5.5.340.0040.02214.99
5.5.330.0080.01415.08
5.5.320.0070.02215.12
5.5.310.0060.01614.98
5.5.300.0070.02015.05
5.5.290.0030.02515.17
5.5.280.0080.02315.13
5.5.270.0060.02415.10
5.5.260.0060.01415.14
5.5.250.0080.02214.91
5.5.240.0050.01614.98
5.5.230.0070.01614.89
5.5.220.0040.02214.81
5.5.210.0070.02014.97
5.5.200.0060.01514.86
5.5.190.0040.02314.93
5.5.180.0050.01514.77
5.5.170.0090.00314.31
5.5.160.0030.02114.95
5.5.150.0050.02114.90
5.5.140.0030.02514.77
5.5.130.0060.02114.86
5.5.120.0050.02114.85
5.5.110.0080.02014.84
5.5.100.0070.02014.86
5.5.90.0060.02114.88
5.5.80.0060.02114.81
5.5.70.0030.02114.78
5.5.60.0060.02414.85
5.5.50.0090.01914.82
5.5.40.0080.01614.81
5.5.30.0050.02314.82
5.5.20.0050.02114.81
5.5.10.0040.02314.78
5.5.00.0080.01914.85
5.4.450.0050.01613.77
5.4.440.0060.01413.91
5.4.430.0050.02113.91
5.4.420.0060.01813.92
5.4.410.0070.01713.89
5.4.400.0080.01713.73
5.4.390.0070.01813.83
5.4.380.0040.01413.70
5.4.370.0010.01813.82
5.4.360.0030.02013.76
5.4.350.0030.02113.74
5.4.340.0060.01913.80
5.4.330.0050.00412.49
5.4.320.0020.02313.77
5.4.310.0040.02213.79
5.4.300.0050.02113.75
5.4.290.0040.01913.77
5.4.280.0020.02013.75
5.4.270.0070.01713.79
5.4.260.0060.02113.77
5.4.250.0050.02113.82
5.4.240.0050.01713.74
5.4.230.0080.01813.83
5.4.220.0060.02013.79
5.4.210.0070.01813.81
5.4.200.0050.02013.74
5.4.190.0040.02113.68
5.4.180.0030.01613.73
5.4.170.0090.01313.74
5.4.160.0050.02013.79
5.4.150.0050.01713.74
5.4.140.0070.01813.29
5.4.130.0030.02013.28
5.4.120.0040.02113.27
5.4.110.0040.01913.25
5.4.100.0080.01813.14
5.4.90.0040.01413.16
5.4.80.0030.01913.30
5.4.70.0070.01813.27
5.4.60.0030.02013.25
5.4.50.0040.02113.27
5.4.40.0050.02013.31
5.4.30.0070.01113.29
5.4.20.0060.01813.28
5.4.10.0050.01413.24
5.4.00.0050.01813.12
5.3.290.0040.02012.77
5.3.280.0060.01712.72
5.3.270.0050.02012.73
5.3.260.0050.02112.72
5.3.250.0090.01712.72
5.3.240.0080.01712.71
5.3.230.0060.02112.73
5.3.220.0060.02112.74
5.3.210.0050.02312.68
5.3.200.0060.01812.72
5.3.190.0070.01812.74
5.3.180.0050.01912.67
5.3.170.0070.01712.68
5.3.160.0070.01812.67
5.3.150.0060.02012.74
5.3.140.0070.02012.71
5.3.130.0030.02212.73
5.3.120.0060.01912.66
5.3.110.0080.01212.68
5.3.100.0050.02012.61
5.3.90.0050.01912.59
5.3.80.0060.01812.61
5.3.70.0060.02012.62
5.3.60.0080.01612.61
5.3.50.0050.02112.61
5.3.40.0040.02212.61
5.3.30.0070.01812.61
5.3.20.0050.02012.60
5.3.10.0040.01712.58
5.3.00.0070.01412.57
5.2.170.0050.03211.88
5.2.160.0050.02011.89
5.2.150.0020.03511.88
5.2.140.0030.03011.89
5.2.130.0080.01711.71
5.2.120.0020.03511.86
5.2.110.0060.02711.83
5.2.100.0070.02911.83
5.2.90.0060.03011.80
5.2.80.0020.02311.79
5.2.70.0060.03211.72
5.2.60.0070.02711.73
5.2.50.0020.03411.64
5.2.40.0050.03211.80
5.2.30.0020.02211.67
5.2.20.0040.03011.72
5.2.10.0050.03011.77
5.2.00.0070.03211.69
5.1.60.0050.02711.40
5.1.50.0000.03111.40
5.1.40.0080.02511.42
5.1.30.0040.03011.46
5.1.20.0040.02711.44
5.1.10.0070.02311.41
5.1.00.0050.02811.40
5.0.50.0030.02511.40
5.0.40.0050.02211.40
5.0.30.0080.02711.40
5.0.20.0010.02311.40
5.0.10.0030.01711.40
5.0.00.0020.02811.40
4.4.90.0000.01511.40
4.4.80.0020.02011.40
4.4.70.0020.01311.40
4.4.60.0000.02311.40
4.4.50.0000.01311.40
4.4.40.0070.02211.40
4.4.30.0020.02011.40
4.4.20.0020.02011.40
4.4.10.0020.02011.40
4.4.00.0030.02811.40
4.3.110.0040.01811.40
4.3.100.0030.01511.40
4.3.90.0020.01511.40
4.3.80.0060.01411.40
4.3.70.0040.01811.40
4.3.60.0020.01811.40
4.3.50.0030.02011.40
4.3.40.0030.02511.40
4.3.30.0020.01811.40
4.3.20.0020.01211.40
4.3.10.0020.01711.40
4.3.00.0050.01611.40

preferences:
44.8 ms | 401 KiB | 5 Q