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.0130.00920.32
8.3.50.0110.00418.22
8.3.40.0080.00818.95
8.3.30.0150.00018.92
8.3.20.0040.00421.77
8.3.10.0030.00523.66
8.3.00.0040.00421.81
8.2.180.0120.00618.79
8.2.170.0040.01422.96
8.2.160.0110.00419.15
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0040.00419.82
8.2.120.0070.00026.35
8.2.110.0070.00422.43
8.2.100.0080.00417.83
8.2.90.0080.00018.00
8.2.80.0030.00617.97
8.2.70.0000.00917.89
8.2.60.0030.00617.95
8.2.50.0030.00618.10
8.2.40.0030.00621.25
8.2.30.0040.00419.25
8.2.20.0000.00818.20
8.2.10.0070.00020.71
8.2.00.0080.00019.54
8.1.280.0150.00025.92
8.1.270.0090.00018.75
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0040.00422.23
8.1.230.0040.00718.95
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0050.00517.48
8.1.190.0040.00417.35
8.1.180.0030.00618.10
8.1.170.0050.00518.65
8.1.160.0050.00218.76
8.1.150.0030.00618.76
8.1.140.0000.00823.82
8.1.130.0000.00720.15
8.1.120.0030.00517.45
8.1.110.0000.00717.44
8.1.100.0040.00417.57
8.1.90.0060.00317.52
8.1.80.0040.00417.42
8.1.70.0000.00717.45
8.1.60.0030.00617.65
8.1.50.0040.00417.50
8.1.40.0000.00817.70
8.1.30.0000.01017.66
8.1.20.0050.00217.70
8.1.10.0040.00417.80
8.1.00.0050.00317.52
8.0.300.0030.00518.77
8.0.290.0040.00416.63
8.0.280.0030.00518.28
8.0.270.0000.00717.13
8.0.260.0000.00618.28
8.0.250.0040.00417.11
8.0.240.0070.00017.00
8.0.230.0030.00316.99
8.0.220.0040.00417.03
8.0.210.0070.00017.01
8.0.200.0040.00416.99
8.0.190.0000.00817.01
8.0.180.0080.00016.95
8.0.170.0040.00416.98
8.0.160.0000.00716.98
8.0.150.0030.00617.03
8.0.140.0000.00716.91
8.0.130.0030.00313.44
8.0.120.0000.00816.99
8.0.110.0070.00016.93
8.0.100.0000.00817.10
8.0.90.0040.00416.89
8.0.80.0080.01017.02
8.0.70.0080.00317.02
8.0.60.0040.00416.91
8.0.50.0040.00417.02
8.0.30.0130.00717.33
8.0.20.0080.01217.40
8.0.10.0000.00817.16
8.0.00.0090.00816.67
7.4.330.0000.00516.72
7.4.320.0060.00016.66
7.4.300.0030.00416.71
7.4.290.0000.00716.70
7.4.280.0050.00316.76
7.4.270.0000.00716.68
7.4.260.0000.00716.70
7.4.250.0030.00316.69
7.4.240.0070.00016.72
7.4.230.0030.00316.63
7.4.220.0050.00316.91
7.4.210.0090.00816.86
7.4.200.0040.00416.79
7.4.160.0090.00716.63
7.4.140.0090.00917.86
7.4.130.0030.02016.68
7.4.120.0090.01016.70
7.4.110.0030.01416.59
7.4.100.0070.01316.89
7.4.90.0060.01216.63
7.4.80.0130.01019.39
7.4.70.0000.01816.70
7.4.60.0060.00916.59
7.4.50.0090.00616.61
7.4.40.0060.00916.70
7.4.00.0030.01015.03
7.3.330.0030.00313.34
7.3.320.0000.00513.32
7.3.310.0000.00716.37
7.3.300.0000.00716.47
7.3.290.0070.00016.47
7.3.280.0100.00416.38
7.3.260.0100.01016.57
7.3.240.0110.00716.52
7.3.230.0170.00016.48
7.3.210.0100.00716.46
7.3.200.0140.00316.59
7.3.190.0070.01016.58
7.3.180.0100.00716.63
7.3.170.0120.00616.48
7.3.160.0030.01316.63
7.3.10.0200.00316.43
7.3.00.0310.00615.63
7.2.330.0170.00016.61
7.2.320.0130.01016.70
7.2.310.0120.00616.66
7.2.300.0100.00616.44
7.2.290.0110.00816.74
7.2.130.0200.01215.77
7.2.120.0190.00615.78
7.2.110.0160.00815.77
7.2.100.0150.01515.90
7.2.90.0570.00315.68
7.2.80.0190.00915.66
7.2.70.0220.01015.87
7.2.60.0230.00615.83
7.2.50.0250.00515.91
7.2.40.0240.01216.00
7.2.30.0230.00715.93
7.2.20.0210.00915.93
7.2.10.0210.01015.89
7.2.00.0130.00915.97
7.1.250.0180.00815.05
7.0.330.0180.00613.38
5.6.380.0060.00614.20

preferences:
60.15 ms | 401 KiB | 5 Q