3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array("stati3on8", "2ndExit", "block9a", "floor5"); var_dump(minMaxNum($arr)); die(); function minMaxNum ($arr = array()) { $min = $max = null;$all_nums = array(); foreach ($arr as $value) { $value = preg_split('/(?<=\d)(?=[a-zA-Z])|(?<=[a-zA-Z])(?=\d)/i', $value); $value = array_filter($value, function ($n){ if(!is_numeric($n)) { unset($n); }else { return $n; } }); array_push($all_nums, $value); } return $all_nums; }

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.0140.00416.87
8.3.60.0060.01218.93
8.3.50.0090.00616.38
8.3.40.0150.00318.95
8.3.30.0100.01019.14
8.3.20.0040.00421.95
8.3.10.0040.00423.43
8.3.00.0060.00317.80
8.2.190.0070.00718.66
8.2.180.0080.00816.50
8.2.170.0120.00922.96
8.2.160.0170.00019.41
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00420.26
8.2.120.0030.00526.35
8.2.110.0050.00521.16
8.2.100.0040.00817.84
8.2.90.0030.00518.09
8.2.80.0030.00518.03
8.2.70.0030.00518.02
8.2.60.0040.00417.88
8.2.50.0030.00518.11
8.2.40.0050.00322.36
8.2.30.0040.00419.36
8.2.20.0000.00818.10
8.2.10.0000.00817.93
8.2.00.0000.00718.09
8.1.280.0110.01125.92
8.1.270.0000.00823.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0100.00022.62
8.1.230.0120.00020.88
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.48
8.1.190.0040.00417.47
8.1.180.0040.00418.10
8.1.170.0040.00419.02
8.1.160.0000.00718.92
8.1.150.0000.00720.25
8.1.140.0000.00817.70
8.1.130.0000.00719.05
8.1.120.0000.00717.61
8.1.110.0000.00717.66
8.1.100.0000.01017.64
8.1.90.0040.00417.53
8.1.80.0000.00817.55
8.1.70.0050.00317.66
8.1.60.0060.00317.64
8.1.50.0040.00417.73
8.1.40.0080.00017.70
8.1.30.0080.00017.72
8.1.20.0000.00817.67
8.1.10.0060.00317.61
8.1.00.0000.00917.66
8.0.300.0040.00420.09
8.0.290.0040.00417.00
8.0.280.0070.00018.54
8.0.270.0030.00317.28
8.0.260.0050.00217.10
8.0.250.0030.00317.24
8.0.240.0070.00017.24
8.0.230.0070.00017.22
8.0.220.0070.00017.07
8.0.210.0070.00017.14
8.0.200.0030.00317.07
8.0.190.0040.00417.20
8.0.180.0050.00217.12
8.0.170.0030.00517.16
8.0.160.0030.00517.26
8.0.150.0030.00617.18
8.0.140.0000.00717.03
8.0.130.0000.00613.56
8.0.120.0000.00717.20
8.0.110.0040.00417.09
8.0.100.0040.00417.07
8.0.90.0050.00317.08
8.0.80.0120.00317.16
8.0.70.0000.00717.23
8.0.60.0050.00317.25
8.0.50.0020.00516.97
8.0.30.0090.00817.46
8.0.20.0110.00817.40
8.0.10.0050.00317.02
8.0.00.0100.00916.98
7.4.330.0000.00515.55
7.4.320.0030.00316.74
7.4.300.0000.00616.87
7.4.290.0030.00316.72
7.4.280.0040.00416.76
7.4.270.0000.00716.84
7.4.260.0000.00716.70
7.4.250.0070.00016.78
7.4.240.0040.00416.82
7.4.230.0040.00416.61
7.4.220.0000.00816.58
7.4.210.0030.01216.83
7.4.200.0070.00016.89
7.4.160.0090.00716.73
7.4.140.0110.01117.86
7.4.130.0080.01216.68
7.4.120.0080.01116.79
7.4.110.0080.01316.77
7.4.100.0110.00716.97
7.4.90.0150.00316.77
7.4.80.0100.01319.39
7.4.70.0090.00916.62
7.4.60.0060.01116.75
7.4.50.0040.01116.61
7.4.40.0060.01716.75
7.4.00.0100.00615.19
7.3.330.0000.00513.37
7.3.320.0060.00013.57
7.3.310.0000.00716.62
7.3.300.0070.00016.64
7.3.290.0030.00316.57
7.3.280.0060.01016.54
7.3.260.0120.00916.61
7.3.240.0080.00816.55
7.3.230.0130.00916.59
7.3.210.0070.01016.61
7.3.200.0030.01316.62
7.3.190.0130.01016.80
7.3.180.0110.00516.61
7.3.170.0090.00616.79
7.3.160.0040.01216.76
7.3.120.0080.00915.08
7.3.110.0070.01215.21
7.3.100.0080.01115.17
7.3.90.0030.00915.09
7.3.80.0070.00714.97
7.3.70.0100.00615.12
7.3.60.0050.00715.01
7.3.50.0090.00515.08
7.3.40.0040.00514.78
7.3.30.0040.00715.05
7.3.20.0030.00716.97
7.3.10.0110.00616.73
7.3.00.0090.00716.63
7.2.330.0030.02116.68
7.2.320.0070.01716.90
7.2.310.0060.01016.78
7.2.300.0170.00016.91
7.2.290.0080.01116.78
7.2.250.0090.00815.25
7.2.240.0080.01315.23
7.2.230.0100.00815.38
7.2.220.0090.00915.07
7.2.210.0100.00515.23
7.2.200.0060.00915.25
7.2.190.0050.00915.20
7.2.180.0030.01115.12
7.2.170.0050.00815.13
7.2.160.0100.00315.38
7.2.150.0070.01116.86
7.2.140.0070.00716.92
7.2.130.0120.00617.09
7.2.120.0080.00916.95
7.2.110.0100.00916.96
7.2.100.0080.00916.96
7.2.90.0120.00716.99
7.2.80.0160.00917.18
7.2.70.0130.00516.86
7.2.60.0080.01017.14
7.2.50.0110.01116.85
7.2.40.0120.00517.18
7.2.30.0100.01117.34
7.2.20.0150.01117.32
7.2.10.0150.01117.27
7.2.00.0120.00817.45
7.1.330.0050.01015.92
7.1.320.0020.01216.02
7.1.310.0060.00515.70
7.1.300.0040.01015.71
7.1.290.0050.00915.78
7.1.280.0060.00515.84
7.1.270.0080.00516.02
7.1.260.0000.01415.84
7.1.250.0070.01015.92
7.1.240.0070.01116.13
7.1.230.0000.01115.79
7.1.220.0000.00915.99
7.1.210.0070.01116.13
7.1.200.0030.01015.81
7.1.190.0090.00615.98
7.1.180.0030.01415.67
7.1.170.0100.00715.95
7.1.160.0060.00615.79
7.1.150.0090.01316.49
7.1.140.0110.00816.40
7.1.130.0100.01116.42
7.1.120.0080.01116.52
7.1.110.0100.01616.23
7.1.100.0100.01416.15
7.1.90.0130.00815.85
7.1.80.0130.00715.87
7.1.70.0130.01015.72
7.1.60.0180.00924.89
7.1.50.0250.01024.55
7.1.40.0230.01024.37
7.1.30.0230.01024.39
7.1.20.0220.01124.47
7.1.10.0130.00815.49
7.1.00.0080.01115.41
7.0.330.0100.00315.58
7.0.320.0060.00615.32
7.0.310.0090.00315.64
7.0.300.0070.00315.39
7.0.290.0030.01015.43
7.0.280.0030.00615.70
7.0.270.0000.01515.79
7.0.260.0100.00715.40
7.0.250.0070.00715.83
7.0.240.0000.01315.39
7.0.230.0000.01315.54
7.0.220.0070.00715.73
7.0.210.0060.00615.34
7.0.200.0100.00315.77
7.0.190.0060.00815.57
7.0.180.0000.01015.29
7.0.170.0060.00615.79
7.0.160.0090.00615.57
7.0.150.0070.00715.65
7.0.140.0070.00315.49
7.0.130.0070.00715.39
7.0.120.0060.00615.75
7.0.110.0030.00715.75
7.0.100.0030.00615.66
7.0.90.0070.00715.54
7.0.80.0030.01415.30
7.0.70.0070.00715.45
7.0.60.0070.01015.42
7.0.50.0050.00515.75
7.0.40.0060.00613.83
7.0.30.0000.01313.69
7.0.20.0000.01213.49
7.0.10.0030.00613.95
7.0.00.0060.00613.75
5.6.400.0030.00614.30
5.6.390.0060.01014.52
5.6.380.0040.01114.75
5.6.370.0090.00614.72
5.6.360.0030.00914.70
5.6.350.0030.01414.52
5.6.340.0030.00614.65
5.6.330.0080.00014.24
5.6.320.0040.01213.99
5.6.310.0030.01014.48
5.6.300.0090.00314.45
5.6.290.0000.01614.04
5.6.280.0030.00913.97
5.6.270.0060.00614.57
5.6.260.0030.01014.03
5.6.250.0060.00614.71
5.6.240.0070.01114.54
5.6.230.0030.01414.38
5.6.220.0120.00414.39
5.6.210.0030.01214.15
5.6.200.0030.00714.25
5.6.190.0080.00414.23
5.6.180.0070.00714.45
5.6.170.0120.00614.29
5.6.160.0040.01414.56
5.6.150.0030.00614.42
5.6.140.0060.00314.18
5.6.130.0000.00914.46
5.6.120.0100.00314.33
5.6.110.0030.01014.25
5.6.100.0000.01414.60
5.6.90.0090.00314.40
5.6.80.0000.00914.24
5.6.70.0000.00814.22
5.6.60.0070.00714.04
5.6.50.0000.01514.41
5.6.40.0060.00914.36
5.6.30.0030.00614.29
5.6.20.0090.00014.19
5.6.10.0090.00314.25
5.6.00.0000.01114.32

preferences:
63.47 ms | 401 KiB | 5 Q