3v4l.org

run code in 300+ PHP versions simultaneously
<?php function get_numerics ($str) { preg_match_all('/\d+/', $str, $matches); return $matches[0]; } $one = 'APP eco 1 - 50'; print_r(get_numerics($four));

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.0100.01020.37
8.3.50.0040.01118.11
8.3.40.0060.00919.07
8.3.30.0140.00018.83
8.3.20.0050.00321.73
8.3.10.0080.00023.48
8.3.00.0040.00421.89
8.2.180.0130.01018.91
8.2.170.0110.00422.96
8.2.160.0070.00719.16
8.2.150.0000.00924.18
8.2.140.0030.00624.66
8.2.130.0080.00019.79
8.2.120.0040.00426.35
8.2.110.0050.00522.21
8.2.100.0080.00418.04
8.2.90.0040.00418.00
8.2.80.0090.00017.97
8.2.70.0050.00317.80
8.2.60.0040.00418.02
8.2.50.0000.00818.10
8.2.40.0030.00621.06
8.2.30.0070.00019.18
8.2.20.0040.00418.02
8.2.10.0040.00420.73
8.2.00.0000.00819.43
8.1.280.0040.01125.92
8.1.270.0050.00318.95
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0040.00422.06
8.1.230.0070.00419.01
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0070.00317.35
8.1.190.0000.00817.35
8.1.180.0050.00318.10
8.1.170.0000.00920.43
8.1.160.0050.00218.81
8.1.150.0090.00018.86
8.1.140.0060.00323.94
8.1.130.0030.00320.10
8.1.120.0050.00217.47
8.1.110.0000.00717.43
8.1.100.0000.00817.50
8.1.90.0050.00317.43
8.1.80.0040.00417.55
8.1.70.0000.00717.45
8.1.60.0030.00617.76
8.1.50.0080.00017.55
8.1.40.0000.00717.71
8.1.30.0090.00017.70
8.1.20.0000.00817.82
8.1.10.0040.00417.75
8.1.00.0000.00817.55
8.0.300.0090.00018.77
8.0.290.0000.00716.88
8.0.280.0040.00418.36
8.0.270.0000.00717.15
8.0.260.0030.00318.28
8.0.250.0040.00417.07
8.0.240.0000.00717.02
8.0.230.0040.00417.08
8.0.220.0000.00817.00
8.0.210.0070.00017.02
8.0.200.0040.00417.14
8.0.190.0040.00417.11
8.0.180.0000.00817.09
8.0.170.0030.00517.07
8.0.160.0040.00417.16
8.0.150.0000.00916.95
8.0.140.0000.00717.04
8.0.130.0030.00313.38
8.0.120.0070.00016.98
8.0.110.0040.00417.10
8.0.100.0040.00417.10
8.0.90.0050.00216.84
8.0.80.0130.00616.98
8.0.70.0000.01016.98
8.0.60.0000.00716.86
8.0.50.0060.00316.89
8.0.30.0030.01317.34
8.0.20.0120.00617.50
8.0.10.0070.00016.98
8.0.00.0080.01017.01
7.4.330.0000.00615.55
7.4.320.0020.00516.57
7.4.300.0000.00716.80
7.4.290.0000.00716.66
7.4.280.0040.00416.85
7.4.270.0000.00716.85
7.4.260.0030.00316.81
7.4.250.0040.00416.70
7.4.240.0040.00416.71
7.4.230.0000.00716.70
7.4.220.0040.00416.89
7.4.210.0030.01216.79
7.4.200.0000.00716.84
7.4.160.0090.00616.60
7.4.140.0080.01317.86
7.4.130.0090.00916.86
7.4.120.0070.01716.78
7.4.110.0040.01216.82
7.4.100.0120.00816.65
7.4.90.0090.00916.68
7.4.80.0090.01219.39
7.4.70.0100.00716.57
7.4.60.0030.01216.69
7.4.50.0070.01016.54
7.4.40.0090.00616.66
7.4.00.0030.01415.21
7.3.330.0030.00313.58
7.3.320.0050.00013.34
7.3.310.0000.00716.40
7.3.300.0030.00316.54
7.3.290.0020.00516.42
7.3.280.0100.00616.42
7.3.260.0140.00816.48
7.3.240.0120.00516.51
7.3.230.0100.00716.77
7.3.210.0130.00616.42
7.3.200.0210.00016.79
7.3.190.0080.00916.58
7.3.180.0060.01016.75
7.3.170.0150.00316.68
7.3.160.0120.00416.46
7.3.00.0240.00714.87
7.2.330.0160.00716.59
7.2.320.0000.01716.84
7.2.310.0150.00616.79
7.2.300.0080.00816.70
7.2.290.0110.00716.80
7.2.130.0450.00414.58
7.2.120.0340.00614.86
7.2.110.0380.00314.81
7.2.100.0280.00714.97
7.2.90.0360.00314.59
7.2.80.0290.01014.77
7.2.70.0430.00715.19
7.2.60.0410.00715.07
7.2.50.0390.00714.94
7.2.40.0240.00815.34
7.2.30.0220.00615.16
7.2.20.0210.01215.25
7.2.10.0260.00315.07
7.2.00.0250.00915.05
7.1.250.0340.00314.26
7.0.330.0250.00913.77
5.6.380.0060.00914.29

preferences:
60.15 ms | 400 KiB | 5 Q