3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/\d+(?= Sek)/'; $str = 'aaa ~120 Sek. 53 Sek. ~~ bbb asdfasf aasdf asdfasdf ~600 Sek. ~~ ccc ~60 Sek. 43 Sek. ~~ ddd ~240 Sek. 55 Sek. ~~'; preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0); // Print the entire match result #print_r($matches); $sum = 0; foreach ($matches as $item) { $sum += $item[0]; } echo $sum;

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.5.00.0110.01119.84
8.4.150.0020.00014.05
8.4.140.0070.01417.79
8.4.130.0130.00817.98
8.4.120.0090.00720.61
8.4.110.0080.00022.41
8.4.100.0070.00917.94
8.4.90.0130.00622.44
8.4.80.0130.00518.75
8.4.70.0100.00618.87
8.4.60.0060.00318.88
8.4.50.0110.01018.86
8.4.40.0160.00418.48
8.4.30.0190.00018.71
8.4.20.0130.00720.79
8.4.10.0090.00019.60
8.3.280.0010.00114.05
8.3.270.0120.00816.82
8.3.260.0090.00916.98
8.3.250.0110.00719.00
8.3.240.0100.01016.66
8.3.230.0100.00616.81
8.3.220.0100.00918.61
8.3.210.0110.01016.88
8.3.200.0050.00416.80
8.3.190.0050.00417.13
8.3.180.0130.00518.83
8.3.170.0090.00917.21
8.3.160.0100.00719.18
8.3.150.0120.00618.76
8.3.140.0070.01118.80
8.3.130.0040.00416.73
8.3.120.0040.00419.13
8.3.110.0090.00320.94
8.3.100.0030.00616.88
8.3.90.0000.01526.77
8.3.80.0080.00316.75
8.3.70.0110.00416.71
8.3.60.0180.00018.31
8.3.50.0090.01024.50
8.3.40.0070.00720.15
8.3.30.0090.00618.92
8.3.20.0080.00021.90
8.3.10.0040.00422.09
8.3.00.0040.00422.30
8.2.290.0060.00316.74
8.2.280.0100.01020.29
8.2.270.0130.00616.73
8.2.260.0030.00617.54
8.2.250.0040.00416.74
8.2.240.0060.00920.73
8.2.230.0030.00722.58
8.2.220.0060.00937.54
8.2.210.0040.00426.77
8.2.200.0060.00316.88
8.2.190.0150.00418.64
8.2.180.0130.00616.88
8.2.170.0090.00919.22
8.2.160.0100.00322.96
8.2.150.0000.00924.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0000.00726.16
8.2.110.0060.00320.13
8.2.100.0050.00517.97
8.2.90.0040.00418.34
8.2.80.0080.00019.02
8.2.70.0000.00817.88
8.2.60.0040.00417.93
8.2.50.0040.00418.05
8.2.40.0080.00021.13
8.2.30.0040.00418.23
8.2.20.0020.00518.08
8.2.10.0000.00819.15
8.2.00.0040.00419.42
8.1.330.0150.00416.10
8.1.320.0090.00918.02
8.1.310.0150.00016.62
8.1.300.0110.00719.74
8.1.290.0030.00730.84
8.1.280.0150.00025.92
8.1.270.0080.00022.05
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00322.07
8.1.230.0040.00823.81
8.1.220.0000.00917.78
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0000.00817.35
8.1.180.0090.00018.10
8.1.170.0000.00917.62
8.1.160.0070.00018.84
8.1.150.0040.00418.85
8.1.140.0000.00818.94
8.1.130.0000.00821.91
8.1.120.0050.00317.70
8.1.110.0030.00517.53
8.1.100.0030.00917.65
8.1.90.0030.00317.56
8.1.80.0000.00717.64
8.1.70.0040.00417.60
8.1.60.0040.00417.71
8.1.50.0090.00017.71
8.1.40.0080.00017.72
8.1.30.0050.00317.72
8.1.20.0030.00617.80
8.1.10.0070.00017.73
8.1.00.0040.00417.69
8.0.300.0070.00020.21
8.0.290.0000.00716.88
8.0.280.0000.00718.48
8.0.270.0070.00018.09
8.0.260.0050.00321.91
8.0.250.0080.00017.19
8.0.240.0030.00317.13
8.0.230.0000.00717.03
8.0.220.0070.00017.02
8.0.210.0000.00717.07
8.0.200.0030.00317.03
8.0.190.0040.00417.11
8.0.180.0030.00517.09
8.0.170.0080.00017.13
8.0.160.0070.00017.01
8.0.150.0030.00616.95
8.0.140.0050.00216.91
8.0.130.0000.00513.58
8.0.120.0030.00517.02
8.0.110.0030.00516.88
8.0.100.0030.00617.05
8.0.90.0030.00616.94
8.0.80.0090.00616.96
8.0.70.0050.00316.91
8.0.60.0030.00517.06
8.0.50.0000.00717.17
8.0.30.0070.01117.06
8.0.20.0060.01217.26
8.0.10.0040.00417.03
8.0.00.0200.00317.01
7.4.330.0000.00515.55
7.4.320.0000.00716.73
7.4.300.0030.00316.84
7.4.290.0050.00516.82
7.4.280.0040.00416.81
7.4.270.0000.01116.80
7.4.260.0000.00513.46
7.4.250.0000.00716.60
7.4.240.0060.00216.78
7.4.230.0030.00516.91
7.4.220.0040.00316.83
7.4.210.0040.01016.82
7.4.200.0030.00316.76
7.4.130.0090.01216.75
7.4.120.0090.01316.87
7.4.110.0070.01016.59
7.4.100.0100.00716.64
7.4.90.0090.00916.82
7.4.80.0110.00819.39
7.4.70.0140.00316.68
7.4.60.0100.00716.66
7.4.50.0060.00916.53
7.4.40.0120.00916.73
7.4.30.0100.00716.63
7.4.20.0030.01316.73
7.4.10.0100.00616.74
7.4.00.0040.01216.64
7.3.330.0030.00316.61
7.3.320.0060.00013.28
7.3.310.0020.00516.55
7.3.300.0000.00616.51
7.3.290.0090.01016.42
7.3.260.0080.01016.64
7.3.230.0090.02016.59
7.3.210.0040.01316.48
7.3.200.0130.01016.48
7.3.190.0060.00916.55
7.3.180.0070.01016.45
7.3.170.0060.01216.86
7.3.160.0180.00316.57
7.3.150.0070.01016.51
7.3.140.0100.00616.63
7.3.130.0040.01216.56
7.3.120.0080.00816.78
7.3.110.0130.00416.81
7.3.100.0100.01316.61
7.3.90.0110.00916.69
7.3.80.0150.00516.79
7.3.70.0130.00316.46
7.3.60.0130.00316.61
7.3.50.0060.01216.64
7.3.40.0140.00316.55
7.3.30.0060.00916.49
7.3.20.0060.01216.41
7.3.10.0070.01016.66
7.3.00.0130.00316.57
7.2.330.0070.01016.68
7.2.320.0030.01316.88
7.2.310.0120.01216.88
7.2.300.0060.01616.76
7.2.290.0070.01016.60
7.2.280.0100.01016.77
7.2.270.0100.00616.69
7.2.260.0060.01216.75
7.2.250.0030.01216.75
7.2.240.0070.01116.73
7.2.230.0100.00716.59
7.2.220.0110.00716.71
7.2.210.0100.01016.81
7.2.200.0090.01516.68
7.2.190.0070.01116.62
7.2.180.0080.00816.76
7.2.170.0130.00316.84
7.2.160.0140.00316.77
7.2.150.0100.00716.83
7.2.140.0030.01516.80
7.2.130.0070.01016.84
7.2.120.0070.01116.68
7.2.110.0100.00716.76
7.2.100.0100.00616.79
7.2.90.0160.00616.94
7.2.80.0070.01016.68
7.2.70.0080.00816.83
7.2.60.0090.00916.74
7.2.50.0040.01616.76
7.2.40.0080.01116.87
7.2.30.0050.01416.85
7.2.20.0140.00416.80
7.2.10.0140.00416.73
7.2.00.0040.01916.95

preferences:
163.28 ms | 403 KiB | 5 Q