3v4l.org

run code in 300+ PHP versions simultaneously
<?php $line = "string string 4-string string string 12345 string 678249 string "; if (preg_match('/\b\d{4,}\b/', $line, $matches)) { var_dump($matches); }

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.00418.43
8.3.50.0030.01218.04
8.3.40.0110.00418.83
8.3.30.0070.00718.80
8.3.20.0050.00320.57
8.3.10.0040.00423.48
8.3.00.0040.00420.58
8.2.180.0040.01518.41
8.2.170.0190.00319.08
8.2.160.0080.00622.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0070.00422.20
8.2.100.0040.00817.71
8.2.90.0000.00817.84
8.2.80.0050.00318.98
8.2.70.0090.00017.91
8.2.60.0000.00818.03
8.2.50.0040.00418.10
8.2.40.0080.00020.28
8.2.30.0000.00819.26
8.2.20.0040.00418.12
8.2.10.0050.00318.83
8.2.00.0000.00719.13
8.1.280.0040.01125.92
8.1.270.0040.00422.46
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0040.00423.98
8.1.230.0080.00320.72
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0000.00917.13
8.1.180.0040.00418.10
8.1.170.0030.00518.71
8.1.160.0050.00220.24
8.1.150.0000.00818.79
8.1.140.0040.00418.84
8.1.130.0030.00320.14
8.1.120.0000.00717.49
8.1.110.0000.00817.55
8.1.100.0060.00317.49
8.1.90.0000.01017.52
8.1.80.0000.00817.46
8.1.70.0040.00417.41
8.1.60.0050.00317.71
8.1.50.0040.00417.50
8.1.40.0080.00017.61
8.1.30.0000.00817.61
8.1.20.0040.00417.62
8.1.10.0050.00317.64
8.1.00.0030.00617.47
8.0.300.0000.00819.96
8.0.290.0030.00516.75
8.0.280.0030.00518.32
8.0.270.0070.00016.81
8.0.260.0030.00319.98
8.0.250.0030.00317.07
8.0.240.0030.00517.05
8.0.230.0060.00017.04
8.0.220.0030.00316.92
8.0.210.0030.00516.96
8.0.200.0030.00317.01
8.0.190.0030.00316.93
8.0.180.0040.00416.89
8.0.170.0040.00417.06
8.0.160.0000.00716.86
8.0.150.0030.00616.90
8.0.140.0050.00516.91
8.0.130.0000.00613.47
8.0.120.0070.00016.83
8.0.110.0040.00416.95
8.0.100.0040.00417.00
8.0.90.0060.00316.86
8.0.80.0070.01016.89
8.0.70.0040.00416.97
8.0.60.0020.00516.91
8.0.50.0000.00816.76
8.0.30.0120.00617.35
8.0.20.0160.00316.97
8.0.10.0040.00417.09
8.0.00.0170.00316.85
7.4.330.0000.00515.55
7.4.320.0070.00016.79
7.4.300.0000.00616.74
7.4.290.0000.00716.65
7.4.280.0040.00416.59
7.4.270.0030.00316.59
7.4.260.0000.00513.44
7.4.250.0080.00016.73
7.4.240.0050.00316.71
7.4.230.0040.00416.77
7.4.220.0040.00416.69
7.4.210.0050.01216.67
7.4.200.0080.00016.56
7.4.130.0140.00316.36
7.4.120.0170.00716.77
7.4.110.0130.00616.62
7.4.100.0110.00416.66
7.4.90.0030.01316.69
7.4.80.0140.00419.39
7.4.70.0090.00916.58
7.4.60.0110.01116.59
7.4.50.0040.01516.33
7.4.40.0100.00516.57
7.4.00.0030.01114.92
7.3.330.0070.00016.29
7.3.320.0050.00013.05
7.3.310.0040.00416.26
7.3.300.0000.00616.18
7.3.290.0030.00316.24
7.3.260.0100.00916.35
7.3.230.0080.00916.30
7.3.210.0060.01216.45
7.3.200.0130.00416.29
7.3.190.0060.00916.52
7.3.180.0130.00316.61
7.3.170.0060.01116.49
7.3.160.0060.01316.69
7.3.120.0030.01214.67
7.3.110.0060.01214.78
7.3.100.0100.00814.83
7.3.90.0090.00714.77
7.3.80.0040.00915.00
7.3.70.0090.00914.77
7.3.60.0080.00814.95
7.3.50.0120.00614.94
7.3.40.0050.00914.91
7.3.30.0070.01014.91
7.3.20.0090.00915.67
7.3.10.0100.00815.80
7.3.00.0050.01015.60
7.2.330.0140.00716.60
7.2.320.0120.00616.67
7.2.310.0070.01016.61
7.2.300.0070.01016.40
7.2.290.0160.00616.69
7.2.250.0070.01115.09
7.2.240.0080.01115.02
7.2.230.0080.01114.86
7.2.220.0080.00714.94
7.2.210.0110.00615.08
7.2.200.0050.01115.13
7.2.190.0020.01314.95
7.2.180.0050.01014.92
7.2.170.0050.01215.19
7.2.160.0090.00914.95
7.2.150.0150.00614.95
7.2.140.0000.01515.11
7.2.130.0090.00914.83
7.2.120.0040.01115.14
7.2.110.0070.00714.91
7.2.100.0060.00914.83
7.2.90.0000.01515.14
7.2.80.0090.00614.93
7.2.70.0080.00815.03
7.2.60.0060.00914.97
7.2.50.0040.01114.93
7.2.40.0130.00715.14
7.2.30.0090.00615.00
7.2.20.0100.01015.10
7.2.10.0040.01115.11
7.2.00.0040.01115.10
7.1.330.0080.00915.07
7.1.320.0040.01115.01
7.1.310.0090.00914.86
7.1.300.0030.01314.81
7.1.290.0040.01115.00
7.1.280.0100.00614.82
7.1.270.0100.00615.04
7.1.260.0070.00714.93
7.1.250.0070.00713.96

preferences:
56.89 ms | 400 KiB | 5 Q