3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = '1 foo 2 ba_r 3 foo bar 4 fo-o'; preg_match_all( '/(\d+)\s+(.*)/m', $input, $matches, PREG_SET_ORDER); $data = array(); foreach( $matches as $match) { list( , $num, $word) = $match; $data[] = array( $num, $word); } print_r( $data);

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.0110.00717.00
8.3.50.0100.00522.01
8.3.40.0140.00419.04
8.3.30.0070.00719.08
8.3.20.0040.00420.25
8.3.10.0080.00023.69
8.3.00.0040.00419.63
8.2.180.0140.00418.79
8.2.170.0110.00422.96
8.2.160.0030.01020.47
8.2.150.0000.00924.18
8.2.140.0000.00724.66
8.2.130.0080.00026.16
8.2.120.0180.00022.42
8.2.110.0030.00621.18
8.2.100.0090.00318.22
8.2.90.0040.00419.17
8.2.80.0030.00617.97
8.2.70.0030.00617.75
8.2.60.0060.00318.05
8.2.50.0070.00018.16
8.2.40.0050.00320.61
8.2.30.0000.00719.23
8.2.20.0000.00717.95
8.2.10.0080.00018.18
8.2.00.0030.00617.89
8.1.280.0100.00725.92
8.1.270.0090.00023.84
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0100.00022.64
8.1.230.0060.00620.31
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0040.00417.23
8.1.190.0030.00617.35
8.1.180.0060.00318.10
8.1.170.0080.00018.64
8.1.160.0000.00818.96
8.1.150.0000.00720.22
8.1.140.0040.00417.66
8.1.130.0000.00717.76
8.1.120.0020.00517.70
8.1.110.0000.00717.55
8.1.100.0040.00417.65
8.1.90.0050.00317.68
8.1.80.0000.00717.66
8.1.70.0030.00317.48
8.1.60.0030.00617.56
8.1.50.0030.00517.73
8.1.40.0040.00417.51
8.1.30.0000.00817.79
8.1.20.0030.00617.78
8.1.10.0000.00817.79
8.1.00.0000.00817.64
8.0.300.0040.00418.77
8.0.290.0070.00016.88
8.0.280.0070.00018.45
8.0.270.0030.00317.34
8.0.260.0030.00316.88
8.0.250.0030.00317.02
8.0.240.0030.00317.00
8.0.230.0000.00717.01
8.0.220.0000.00716.95
8.0.210.0050.00217.03
8.0.200.0030.00317.07
8.0.190.0030.00517.17
8.0.180.0000.00716.94
8.0.170.0000.00817.07
8.0.160.0000.00816.96
8.0.150.0000.00717.03
8.0.140.0020.00516.97
8.0.130.0030.00313.43
8.0.120.0030.00516.90
8.0.110.0070.00017.01
8.0.100.0000.00816.90
8.0.90.0000.00716.93
8.0.80.0060.00817.03
8.0.70.0000.00816.95
8.0.60.0000.00817.07
8.0.50.0000.00716.93
8.0.30.0100.00917.16
8.0.20.0150.01117.40
8.0.10.0000.00817.02
8.0.00.0090.01217.10
7.4.330.0020.00215.00
7.4.320.0000.00716.71
7.4.300.0030.00316.73
7.4.290.0000.00816.80
7.4.280.0070.00316.80
7.4.270.0040.00416.84
7.4.260.0040.00416.79
7.4.250.0040.00416.64
7.4.240.0010.00616.77
7.4.230.0000.00716.91
7.4.220.0090.00916.82
7.4.210.0080.00816.72
7.4.200.0000.00716.63
7.4.190.0040.00416.77
7.4.160.0050.01116.64
7.4.150.0120.01217.40
7.4.140.0090.00917.86
7.4.130.0130.00516.70
7.4.120.0080.00916.72
7.4.110.0110.00616.70
7.4.100.0150.00616.62
7.4.90.0130.00316.68
7.4.80.0060.01219.39
7.4.70.0070.01416.75
7.4.60.0090.00816.78
7.4.50.0000.00516.66
7.4.40.0090.00922.77
7.4.30.0060.01016.62
7.4.00.0000.01515.11
7.3.330.0050.00013.27
7.3.320.0050.00313.37
7.3.310.0030.00316.60
7.3.300.0000.00616.39
7.3.290.0070.01116.43
7.3.280.0100.00916.46
7.3.270.0090.00917.40
7.3.260.0110.00716.71
7.3.250.0090.01016.56
7.3.240.0100.00716.77
7.3.230.0100.01016.48
7.3.210.0140.00416.68
7.3.200.0060.01119.39
7.3.190.0000.01816.72
7.3.180.0070.01016.63
7.3.170.0070.01016.63
7.3.160.0110.00416.53
7.3.120.0000.01315.27
7.2.330.0110.00816.89
7.2.320.0100.01316.88
7.2.310.0110.00616.87
7.2.300.0100.01016.82
7.2.290.0090.00916.87
7.2.60.0040.00417.06
7.2.00.0050.00519.64
7.1.200.0120.00415.95
7.1.100.0100.00018.15
7.1.70.0000.01017.33
7.1.60.0160.01019.33
7.1.50.0200.01435.14
7.1.00.0070.07322.41
7.0.200.0040.00416.87
7.0.140.0070.07022.09
7.0.100.0030.05319.92
7.0.90.0070.08319.92
7.0.80.0270.07719.79
7.0.70.0170.07719.93
7.0.60.0100.08719.99
7.0.50.0100.07720.19
7.0.40.0070.06720.04
7.0.30.0100.07020.13
7.0.20.0070.08020.03
7.0.10.0030.07320.05
7.0.00.0170.07320.08
5.6.280.0030.07321.05
5.6.250.0000.08020.46
5.6.240.0170.07020.64
5.6.230.0130.07720.44
5.6.220.0100.08020.54
5.6.210.0070.08020.62
5.6.200.0070.07320.97
5.6.190.0170.07320.89
5.6.180.0030.08321.05
5.6.170.0100.04320.96
5.6.160.0130.08021.03
5.6.150.0100.08021.05
5.6.140.0200.07321.01
5.6.130.0170.07321.02
5.6.120.0100.07721.04
5.6.110.0100.05320.95
5.6.100.0170.07020.96
5.6.90.0030.08020.93
5.6.80.0170.06720.33
5.6.70.0070.07320.38
5.6.60.0200.07020.39
5.6.50.0100.08020.42
5.6.40.0070.08020.41
5.6.30.0200.04720.36
5.6.20.0130.05320.36
5.6.10.0100.08020.41
5.6.00.0100.07720.38
5.5.380.0170.07020.30
5.5.370.0100.08020.49
5.5.360.0130.07720.31
5.5.350.0000.09020.39
5.5.340.0100.08020.82
5.5.330.0100.06020.82
5.5.320.0070.08320.55
5.5.310.0000.07720.83
5.5.300.0170.05020.82
5.5.290.0100.07320.86
5.5.280.0000.08720.87
5.5.270.0130.07320.71
5.5.260.0100.04720.67
5.5.250.0100.06720.67
5.5.240.0230.07020.14
5.5.230.0070.08019.96
5.5.220.0170.07720.24
5.5.210.0200.07020.20
5.5.200.0070.07320.07
5.5.190.0030.08020.18
5.5.180.0100.07720.19
5.5.160.0230.05720.06
5.5.150.0030.07720.06
5.5.140.0130.06020.15
5.5.130.0030.07720.22
5.5.120.0130.07020.15
5.5.110.0130.07020.18
5.5.100.0070.04719.96
5.5.90.0130.06320.01
5.5.80.0100.06720.10
5.5.70.0130.07019.98
5.5.60.0070.05320.03
5.5.50.0030.07720.10
5.5.40.0070.07319.88
5.5.30.0100.08020.03
5.5.20.0100.07720.10
5.5.10.0070.08019.95
5.5.00.0030.08019.98
5.4.450.0130.06319.41
5.4.440.0100.07319.56
5.4.430.0100.07319.46
5.4.420.0170.06319.16
5.4.410.0070.07019.30
5.4.400.0030.05719.23
5.4.390.0070.06019.03
5.4.380.0170.06719.13
5.4.370.0130.07018.95
5.4.360.0030.04019.04
5.4.350.0170.06719.11
5.4.340.0200.06719.13
5.4.320.0030.07719.23
5.4.310.0070.07319.03
5.4.300.0030.04719.10
5.4.290.0070.07018.84
5.4.280.0170.06719.20
5.4.270.0070.07719.02
5.4.260.0130.07019.17
5.4.250.0100.07018.92
5.4.240.0130.07018.81
5.4.230.0070.07019.24
5.4.220.0130.07019.02
5.4.210.0100.06719.13
5.4.200.0070.07319.13
5.4.190.0100.07019.10
5.4.180.0070.07719.09
5.4.170.0100.07018.86
5.4.160.0070.07719.06
5.4.150.0070.06719.01
5.4.140.0100.04016.29
5.4.130.0070.07316.38
5.4.120.0000.05316.41
5.4.110.0100.07016.27
5.4.100.0100.06716.51
5.4.90.0100.06716.39
5.4.80.0030.07716.41
5.4.70.0000.05716.46
5.4.60.0030.07316.47
5.4.50.0030.04716.35
5.4.40.0100.07016.49
5.4.30.0070.06716.36
5.4.20.0030.07716.31
5.4.10.0000.04716.46
5.4.00.0070.07015.81
5.3.290.0070.05014.67
5.3.280.0130.05714.52
5.3.270.0130.06314.59
5.3.260.0100.07014.67
5.3.250.0000.08314.68
5.3.240.0030.08314.69
5.3.230.0030.07314.57
5.3.220.0070.05714.62
5.3.210.0100.06014.49
5.3.200.0070.07014.57
5.3.190.0030.05314.50
5.3.180.0100.07714.65
5.3.170.0100.07714.59
5.3.160.0100.06314.61
5.3.150.0030.08014.49
5.3.140.0070.06714.48
5.3.130.0070.07714.55
5.3.120.0000.04014.68
5.3.110.0030.08014.55
5.3.100.0030.08314.02
5.3.90.0000.06314.12
5.3.80.0000.04314.07
5.3.70.0070.07314.13
5.3.60.0070.05713.92
5.3.50.0100.05713.87
5.3.40.0070.06713.99
5.3.30.0000.07313.89
5.3.20.0070.07313.81
5.3.10.0070.06013.56
5.3.00.0070.05713.52
5.2.170.0030.05311.13
5.2.160.0030.06311.21
5.2.150.0030.05311.07
5.2.140.0070.05311.03
5.2.130.0100.05311.19
5.2.120.0130.04311.20
5.2.110.0070.05711.08
5.2.100.0070.04710.98
5.2.90.0070.04011.11
5.2.80.0030.06311.16
5.2.70.0030.06711.21
5.2.60.0030.06311.15
5.2.50.0070.06011.09
5.2.40.0070.06011.04
5.2.30.0100.05011.00
5.2.20.0030.06311.02
5.2.10.0030.04010.96
5.2.00.0030.04310.84
5.1.60.0030.05710.08
5.1.50.0070.05010.00
5.1.40.0030.0339.85
5.1.30.0070.05310.24
5.1.20.0000.05710.37
5.1.10.0100.0539.93
5.1.00.0070.05010.07
5.0.50.0030.0278.43
5.0.40.0000.0508.47
5.0.30.0000.0608.30
5.0.20.0030.0338.27
5.0.10.0030.0378.20
5.0.00.0100.0438.21
4.4.90.0070.0308.07
4.4.80.0000.0408.07
4.4.70.0000.0238.07
4.4.60.0030.0338.07
4.4.50.0030.0308.07
4.4.40.0000.0508.07
4.4.30.0000.0308.07
4.4.20.0000.0338.07
4.4.10.0100.0208.07
4.4.00.0030.0478.07
4.3.110.0030.0308.07
4.3.100.0070.0308.07
4.3.90.0000.0378.07
4.3.80.0030.0538.07
4.3.70.0070.0308.07
4.3.60.0030.0378.07
4.3.50.0000.0308.07
4.3.40.0100.0408.07
4.3.30.0000.0238.07
4.3.20.0070.0308.07
4.3.10.0070.0238.07
4.3.00.0000.0238.07

preferences:
39.41 ms | 400 KiB | 5 Q