3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/(.*?\s.*?\s)/'; $str = 'First example from this part 10 t/m 16 it has to be removed'; preg_match($re, $str, $match); echo $match[1];

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.4.130.0110.00917.90
8.4.120.0120.00820.45
8.4.110.0150.00522.34
8.4.100.0080.00818.15
8.4.90.0110.01018.81
8.4.80.0030.00619.82
8.4.70.0080.01217.91
8.4.60.0050.00318.98
8.4.50.0140.00719.44
8.4.40.0060.01319.91
8.4.30.0070.01317.95
8.4.20.0100.01019.46
8.4.10.0060.00318.84
8.3.260.0100.00716.49
8.3.250.0110.00618.91
8.3.240.0070.00516.58
8.3.230.0120.00716.82
8.3.220.0100.00916.92
8.3.210.0140.00616.60
8.3.200.0070.01316.46
8.3.190.0110.00917.04
8.3.180.0080.01018.30
8.3.170.0140.00416.98
8.3.160.0150.00316.61
8.3.150.0090.00920.77
8.3.140.0040.00416.76
8.3.130.0120.00616.75
8.3.120.0030.00618.96
8.3.110.0130.00720.94
8.3.100.0030.00724.06
8.3.90.0000.00826.77
8.3.80.0060.00318.54
8.3.70.0120.00318.31
8.3.60.0120.00616.48
8.3.50.0100.00318.38
8.3.40.0100.01018.95
8.3.30.0090.00618.79
8.3.20.0030.00621.85
8.3.10.0000.00823.66
8.3.00.0080.00019.79
8.2.290.0140.00520.70
8.2.280.0070.00822.35
8.2.270.0060.01218.48
8.2.260.0040.01117.11
8.2.250.0040.00416.73
8.2.240.0000.01017.11
8.2.230.0000.00822.58
8.2.220.0060.00337.54
8.2.210.0050.00326.77
8.2.200.0080.00016.88
8.2.190.0070.01016.75
8.2.180.0110.00718.54
8.2.170.0100.00722.96
8.2.160.0100.00322.02
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0040.00419.30
8.2.120.0050.00326.35
8.2.110.0200.00321.16
8.2.100.0080.00418.03
8.2.90.0040.00417.97
8.2.80.0040.00419.11
8.2.70.0050.00317.93
8.2.60.0080.00319.91
8.2.50.0040.00418.28
8.2.40.0000.00820.55
8.2.30.0050.00319.45
8.2.20.0000.00818.21
8.2.10.0030.00317.89
8.2.00.0000.00718.07
8.1.330.0050.00322.09
8.1.320.0100.00916.41
8.1.310.0090.00918.45
8.1.300.0050.00516.68
8.1.290.0050.00530.84
8.1.280.0040.01125.92
8.1.270.0040.00422.00
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0060.00323.93
8.1.230.0000.01220.95
8.1.220.0090.00017.78
8.1.210.0040.00418.77
8.1.200.0090.00017.35
8.1.190.0080.00417.36
8.1.180.0080.00018.10
8.1.170.0080.00018.71
8.1.160.0040.00418.90
8.1.150.0040.00419.08
8.1.140.0040.00417.53
8.1.130.0030.00319.08
8.1.120.0050.00317.48
8.1.110.0000.00717.61
8.1.100.0000.00717.55
8.1.90.0040.00417.57
8.1.80.0000.00717.59
8.1.70.0000.00817.55
8.1.60.0080.00017.66
8.1.50.0000.00817.45
8.1.40.0040.00417.45
8.1.30.0000.00817.63
8.1.20.0000.00817.63
8.1.10.0070.00417.61
8.1.00.0040.00417.65
8.0.300.0040.00420.09
8.0.290.0000.00716.75
8.0.280.0000.00718.54
8.0.270.0000.00717.27
8.0.260.0040.00417.18
8.0.250.0000.00717.10
8.0.240.0070.00017.11
8.0.230.0040.00417.00
8.0.220.0040.00416.96
8.0.210.0020.00516.97
8.0.200.0040.00417.02
8.0.190.0000.00817.04
8.0.180.0000.00817.00
8.0.170.0000.01017.02
8.0.160.0000.00817.00
8.0.150.0040.00416.90
8.0.140.0000.00716.91
8.0.130.0060.00013.41
8.0.120.0040.00416.86
8.0.110.0040.00416.79
8.0.100.0080.00016.88
8.0.90.0050.00216.92
8.0.80.0000.01417.01
8.0.70.0080.00017.00
8.0.60.0040.00416.95
8.0.50.0050.00316.94
8.0.30.0090.00917.24
8.0.20.0130.00617.40
8.0.10.0040.00417.20
8.0.00.0070.01116.71
7.4.330.0050.00015.55
7.4.320.0030.00316.73
7.4.300.0060.00016.66
7.4.290.0000.00716.78
7.4.280.0030.00516.77
7.4.270.0000.00716.63
7.4.260.0050.00316.74
7.4.250.0070.00016.61
7.4.240.0040.00416.79
7.4.230.0000.00716.82
7.4.220.0000.00816.75
7.4.210.0090.00516.80
7.4.200.0030.00316.56
7.4.160.0100.00716.62
7.4.140.0080.00917.86
7.4.130.0080.01616.64
7.4.120.0080.01216.71
7.4.110.0120.00916.76
7.4.100.0140.00316.68
7.4.90.0060.01016.82
7.4.80.0100.01319.39
7.4.70.0100.00616.72
7.4.60.0100.00716.56
7.4.50.0030.01016.47
7.4.40.0030.01316.74
7.4.00.0120.00215.21
7.3.330.0000.00613.18
7.3.320.0000.00613.14
7.3.310.0000.00716.49
7.3.300.0000.00716.36
7.3.290.0000.00716.20
7.3.280.0000.01416.38
7.3.260.0120.00816.61
7.3.240.0090.00816.56
7.3.230.0090.00816.43
7.3.210.0120.00616.80
7.3.200.0070.00916.70
7.3.190.0090.00616.38
7.3.180.0060.01216.79
7.3.170.0070.01016.49
7.3.160.0090.01216.63
7.3.120.0070.00714.92
7.3.110.0090.00914.68
7.3.100.0090.00614.92
7.3.90.0030.01014.77
7.3.80.0030.00815.05
7.3.70.0080.00814.96
7.3.60.0040.00714.67
7.3.50.0030.00714.48
7.3.40.0060.00615.02
7.3.30.0000.01614.69
7.3.20.0030.00916.63
7.3.10.0030.01216.78
7.3.00.0100.00316.73
7.2.330.0030.01616.66
7.2.320.0070.01616.61
7.2.310.0090.01616.72
7.2.300.0120.00316.43
7.2.290.0110.00516.83
7.2.250.0040.01214.96
7.2.240.0120.00615.33
7.2.230.0070.00715.22
7.2.220.0070.01115.21
7.2.210.0060.00915.02
7.2.200.0070.01015.32
7.2.190.0040.01114.98
7.2.180.0030.01015.04
7.2.170.0030.01114.91
7.2.60.0000.01416.96
7.2.50.0070.00717.12
7.2.40.4060.00818.07
7.2.30.0150.01518.13
7.2.20.0170.01118.04
7.2.10.2970.01117.73
7.2.00.3650.01318.01
7.1.330.0180.00016.22
7.1.320.0000.01116.04
7.1.310.0060.00615.98
7.1.300.0070.00715.96
7.1.290.0090.00615.59
7.1.280.0080.00816.08
7.1.270.0000.01115.91
7.1.260.0030.01315.95
7.1.200.0000.01015.77
7.1.160.0410.01516.99
7.1.150.0120.01616.96
7.1.140.5590.01216.83
7.1.130.3190.01316.96
7.1.120.3860.01317.04
7.1.110.3060.01516.39
7.1.100.3150.01115.95
7.1.90.6520.01216.25
7.1.80.6320.01516.16
7.1.70.5120.01315.42
7.1.60.4520.01433.52
7.1.50.2240.01833.02
7.1.40.0910.01532.80
7.1.30.9740.01532.93
7.1.20.8040.02132.91
7.1.10.9270.01614.99
7.1.00.4590.01114.95

preferences:
27.5 ms | 403 KiB | 5 Q