3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = array(); $str_n = array(); $str[0] = "Shockwave Flash 14.0 r0"; //$str_n[0] = mb_strstr($str[0],[^0-9]); echo mb_ereg_replace('[^0-9]', '', $str[0]).'<br>'; echo mb_ereg_replace('[0-9]', '', $str[0]); //echo $str_n[0]; ?>

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.0130.00918.55
8.3.50.0070.00719.98
8.3.40.0110.01118.71
8.3.30.0110.00319.18
8.3.20.0040.00420.07
8.3.10.0080.00023.52
8.3.00.0040.00419.51
8.2.180.0070.00716.48
8.2.170.0100.01022.96
8.2.160.0060.00920.32
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0080.00326.16
8.2.120.0050.00321.09
8.2.110.0040.00422.43
8.2.100.0090.00318.22
8.2.90.0040.00719.23
8.2.80.0080.00017.97
8.2.70.0000.00817.63
8.2.60.0090.00018.18
8.2.50.0000.00918.07
8.2.40.0000.00818.34
8.2.30.0040.00418.12
8.2.20.0040.00417.91
8.2.10.0000.00718.18
8.2.00.0040.00417.81
8.1.280.0060.01225.92
8.1.270.0060.00323.73
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00023.95
8.1.230.0090.00319.14
8.1.220.0040.00417.88
8.1.210.0030.00618.77
8.1.200.0060.00317.22
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0070.00318.70
8.1.160.0040.00422.06
8.1.150.0080.00018.87
8.1.140.0050.00317.56
8.1.130.0030.00317.76
8.1.120.0040.00417.58
8.1.110.0040.00417.48
8.1.100.0040.00417.57
8.1.90.0030.00317.57
8.1.80.0000.00717.52
8.1.70.0030.00317.54
8.1.60.0090.00217.69
8.1.50.0000.00817.56
8.1.40.0040.00417.60
8.1.30.0080.00017.70
8.1.20.0040.00417.82
8.1.10.0050.00517.71
8.1.00.0000.00717.63
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0030.00318.60
8.0.270.0000.00717.43
8.0.260.0000.00617.30
8.0.250.0000.00717.13
8.0.240.0050.00317.13
8.0.230.0040.00417.12
8.0.220.0000.00716.90
8.0.210.0030.00317.08
8.0.200.0060.00017.12
8.0.190.0040.00417.14
8.0.180.0000.00716.96
8.0.170.0000.00816.98
8.0.160.0030.00316.98
8.0.150.0040.00417.00
8.0.140.0070.00016.87
8.0.130.0030.00313.49
8.0.120.0040.00416.93
8.0.110.0040.00416.92
8.0.100.0040.00417.09
8.0.90.0000.00916.98
8.0.80.0060.01017.03
8.0.70.0080.00017.02
8.0.60.0040.00416.77
8.0.50.0070.00016.93
8.0.30.0140.00517.14
8.0.20.0080.01017.40
8.0.10.0070.00016.88
8.0.00.0080.01016.87
7.4.330.0000.00615.00
7.4.320.0000.00616.63
7.4.300.0030.00316.63
7.4.290.0000.00616.67
7.4.280.0000.00716.51
7.4.270.0000.00716.69
7.4.260.0100.00016.50
7.4.250.0000.00716.53
7.4.240.0010.00716.58
7.4.230.0020.00516.39
7.4.220.0000.01716.68
7.4.210.0140.00316.72
7.4.200.0000.00716.72
7.4.160.0080.01116.72
7.4.150.0190.00317.40
7.4.140.0070.01217.86
7.4.130.0100.00816.56
7.4.120.0100.00916.59
7.4.110.0080.00816.34
7.4.100.0070.01016.64
7.4.90.0100.00716.59
7.4.80.0100.00719.39
7.4.70.0100.00716.49
7.4.60.0110.00716.65
7.4.50.0030.00616.79
7.4.40.0120.00316.43
7.4.30.0090.00616.63
7.4.00.0100.00715.09
7.3.330.0000.00513.14
7.3.320.0050.00013.24
7.3.310.0030.00316.31
7.3.300.0000.00716.37
7.3.290.0090.00616.39
7.3.280.0080.00716.34
7.3.270.0050.01317.40
7.3.260.0060.01316.32
7.3.250.0140.00616.45
7.3.240.0100.01216.45
7.3.230.0110.00616.39
7.3.210.0030.01416.29
7.3.200.0130.00316.52
7.3.190.0090.01216.23
7.3.180.0090.00616.33
7.3.170.0090.00616.52
7.3.160.0060.00916.50
7.2.330.0070.01016.78
7.2.320.0160.00016.70
7.2.310.0040.01916.56
7.2.300.0100.00716.58
7.2.290.0140.00316.63
7.2.60.0130.00616.84
7.1.200.0090.00315.87
7.1.100.0120.00618.23
7.1.70.0030.00717.21
7.1.60.0060.01319.46
7.1.50.0100.01017.16
7.1.00.0000.08022.40
7.0.200.0000.01216.97
7.0.140.0000.07722.14
7.0.60.0100.08719.77
7.0.50.0030.06317.88
7.0.40.0130.06720.12
7.0.30.0170.04320.13
7.0.20.0370.06720.21
7.0.10.0100.07720.24
7.0.00.0030.09320.18
5.6.210.0030.08720.61
5.6.200.0030.09318.19
5.6.190.0170.07720.67
5.6.180.0270.07320.43
5.6.170.0300.03720.41
5.6.160.0030.06020.49
5.6.150.0030.04018.11
5.6.140.0130.06018.18
5.6.130.0100.08318.14
5.6.120.0000.04721.04
5.6.110.0070.08720.98
5.6.100.0100.08020.98
5.6.90.0170.07721.12
5.6.80.0000.04320.50
5.6.70.3300.04020.49
5.5.350.0130.08320.39
5.5.340.0030.07717.92
5.5.330.0070.04020.25
5.5.320.0030.05320.29
5.5.310.0400.03720.31
5.5.300.0000.04318.00
5.5.290.0070.08017.91
5.5.280.0030.08020.95
5.5.270.0130.05020.82
5.5.260.0070.08020.83
5.5.250.0070.04720.68
5.5.240.0230.07020.26
5.4.450.0230.05019.41
5.4.440.0170.03019.41
5.4.430.0230.03319.56
5.4.420.0170.04019.48
5.4.410.0170.03019.44
5.4.400.0430.03018.81
5.4.390.0200.04319.06
5.4.380.0200.04718.56
5.4.370.0370.07718.76
5.4.360.0400.07018.71
5.4.350.0330.08018.49
5.4.340.0330.07318.70
5.4.320.0080.03412.45
5.4.310.0080.03612.45
5.4.300.0080.03812.45
5.4.290.0070.05212.45
5.4.280.0060.04212.34
5.4.270.0040.04112.35
5.4.260.0050.03812.35
5.4.250.0050.03912.35
5.4.240.0060.03812.35
5.4.230.0070.03712.34
5.4.220.0050.03712.34
5.4.210.0140.02812.34
5.4.200.0050.03812.34
5.4.190.0040.03812.34
5.4.180.0030.03912.34
5.4.170.0080.04712.35
5.4.160.0040.03712.34
5.4.150.0090.03512.34
5.4.140.0040.04012.02
5.4.130.0030.03712.01
5.4.120.0040.03611.97
5.4.110.0050.03611.96
5.4.100.0050.03611.96
5.4.90.0050.03711.96
5.4.80.0050.03811.96
5.4.70.0080.03211.96
5.4.60.0070.03311.96
5.4.50.0040.03711.96
5.4.40.0090.03211.95
5.4.30.0050.03611.95
5.4.20.0050.03611.95
5.4.10.0070.03311.95
5.4.00.0050.03711.44
5.3.290.0030.04112.80
5.3.280.0110.03312.71
5.3.270.0060.03912.72
5.3.260.0040.04112.71
5.3.250.0070.03612.72
5.3.240.0030.03912.72
5.3.230.0100.03412.71
5.3.220.0080.03412.68
5.3.210.0060.05012.68
5.3.200.0080.03712.68
5.3.190.0070.03612.68
5.3.180.0040.03812.68
5.3.170.0060.03612.67
5.3.160.0080.03412.68
5.3.150.0040.03912.68
5.3.140.0040.03912.66
5.3.130.0050.03912.65
5.3.120.0060.03912.66
5.3.110.0040.04012.66
5.3.100.0070.03512.12
5.3.90.0060.03712.08
5.3.80.0080.03512.07
5.3.70.0070.03612.08
5.3.60.0080.03512.07
5.3.50.0050.03712.00
5.3.40.0060.03712.00
5.3.30.0030.04111.94
5.3.20.0060.04011.73
5.3.10.0060.04111.69
5.3.00.0040.04811.68
5.2.170.0060.0389.18
5.2.160.0040.0369.18
5.2.150.0080.0329.18
5.2.140.0030.0369.17
5.2.130.0020.0379.14
5.2.120.0060.0359.14
5.2.110.0050.0319.14
5.2.100.0030.0339.14
5.2.90.0030.0349.15
5.2.80.0080.0359.14
5.2.70.0050.0459.13
5.2.60.0060.0379.09
5.2.50.0100.0389.06
5.2.40.0060.0399.03
5.2.30.0060.0429.01
5.2.20.0060.0419.00
5.2.10.0080.0378.92
5.2.00.0080.0398.78
5.1.60.0070.0328.06
5.1.50.0030.0328.06
5.1.40.0020.0268.04
5.1.30.0060.0308.39
5.1.20.0040.0348.41
5.1.10.0040.0318.13
5.1.00.0010.0298.14
5.0.50.0040.0256.62
5.0.40.0040.0226.47
5.0.30.0080.0276.29
5.0.20.0030.0196.26
5.0.10.0030.0206.23
5.0.00.0020.0326.23
4.4.90.0040.0164.78
4.4.80.0020.0164.76
4.4.70.0040.0144.76
4.4.60.0040.0144.76
4.4.50.0020.0164.77
4.4.40.0020.0264.71
4.4.30.0000.0194.76
4.4.20.0050.0214.84
4.4.10.0040.0224.85
4.4.00.0040.0324.76
4.3.110.0050.0214.67
4.3.100.0010.0244.66
4.3.90.0050.0204.64
4.3.80.0050.0304.58
4.3.70.0030.0144.63
4.3.60.0060.0184.63
4.3.50.0030.0214.63
4.3.40.0030.0284.54
4.3.30.0020.0193.29
4.3.20.0010.0173.26
4.3.10.0030.0153.22
4.3.00.0030.02018.41

preferences:
56.2 ms | 400 KiB | 5 Q