3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/\b\d+(?:\.\d+)?(?=mcg\b)/'; $str = 'some text 0.25mcg some more text some text 25mcg some more text'; preg_match_all($re, $str, $matches); print_r($matches[0]);

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.10.0050.00919.04
8.5.00.0150.00620.32
8.4.150.0020.00114.05
8.4.140.0100.01117.67
8.4.130.0130.00817.90
8.4.120.0110.00920.83
8.4.110.0110.00822.26
8.4.100.0130.00818.61
8.4.90.0110.00718.98
8.4.80.0150.00518.19
8.4.70.0120.00818.00
8.4.60.0130.00619.03
8.4.50.0050.00318.20
8.4.40.0070.01419.50
8.4.30.0040.00418.86
8.4.20.0100.01020.27
8.4.10.0130.00619.82
8.3.280.0100.01118.54
8.3.270.0130.00716.54
8.3.260.0060.00316.54
8.3.250.0060.00218.71
8.3.240.0100.00920.52
8.3.230.0090.00116.64
8.3.220.0080.00718.79
8.3.210.0090.00816.61
8.3.200.0040.00516.54
8.3.190.0120.00716.73
8.3.180.0040.00516.67
8.3.170.0110.00716.72
8.3.160.0090.00916.47
8.3.150.0040.01617.20
8.3.140.0030.00617.02
8.3.130.0060.00018.51
8.3.120.0090.00620.74
8.3.110.0030.00620.94
8.3.100.0090.00624.06
8.3.90.0070.00726.77
8.3.80.0090.00019.36
8.3.70.0070.01416.48
8.3.60.0090.00918.30
8.3.50.0070.01023.66
8.3.40.0120.00318.96
8.3.30.0110.00418.84
8.3.20.0060.00320.81
8.3.10.0080.00021.89
8.3.00.0060.00323.54
8.2.290.0050.00420.58
8.2.280.0050.00420.34
8.2.270.0090.00916.96
8.2.260.0120.00619.32
8.2.250.0070.00719.01
8.2.240.0030.00716.88
8.2.230.0060.00322.58
8.2.220.0100.00037.54
8.2.210.0040.00426.77
8.2.200.0030.00618.88
8.2.190.0070.01118.50
8.2.180.0150.00616.63
8.2.170.0140.00022.96
8.2.160.0100.00320.27
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00026.16
8.2.110.0030.00722.36
8.2.100.0130.00019.88
8.2.90.0030.00517.75
8.2.80.0050.00318.91
8.2.70.0040.00417.75
8.2.60.0000.00817.75
8.2.50.0050.00318.05
8.2.40.0040.00418.16
8.2.30.0040.00419.35
8.2.20.0080.00018.09
8.2.10.0000.00719.20
8.2.00.0040.00419.20
8.1.330.0100.00921.88
8.1.320.0100.00916.22
8.1.310.0100.01016.94
8.1.300.0100.01017.95
8.1.290.0110.00030.84
8.1.280.0040.01125.92
8.1.270.0090.00022.09
8.1.260.0000.00926.35
8.1.250.0050.00328.09
8.1.240.0060.00322.13
8.1.230.0040.00717.77
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0090.00017.35
8.1.190.0090.00017.23
8.1.180.0040.00418.10
8.1.170.0000.00917.62
8.1.160.0040.00418.85
8.1.150.0090.00019.09
8.1.140.0070.00020.76
8.1.130.0080.00020.20
8.1.120.0040.00417.44
8.1.110.0040.00417.54
8.1.100.0000.00717.55
8.1.90.0070.00017.45
8.1.80.0040.00417.54
8.1.70.0000.00717.54
8.1.60.0110.00017.67
8.1.50.0030.00617.57
8.1.40.0050.00317.61
8.1.30.0040.00417.75
8.1.20.0080.00017.69
8.1.10.0080.00017.74
8.1.00.0050.00317.64
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0040.00418.47
8.0.270.0000.00817.96
8.0.260.0000.00619.95
8.0.250.0030.00317.02
8.0.240.0040.00416.86
8.0.230.0000.00817.07
8.0.220.0000.00816.95
8.0.210.0040.00416.84
8.0.200.0000.00817.02
8.0.190.0060.00317.07
8.0.180.0080.00417.01
8.0.170.0040.00417.00
8.0.160.0000.00816.90
8.0.150.0000.00716.91
8.0.140.0090.00016.81
8.0.130.0030.00313.37
8.0.120.0020.00516.99
8.0.110.0000.00716.93
8.0.100.0000.00716.80
8.0.90.0060.00316.88
8.0.80.0060.01316.93
8.0.70.0000.00816.94
8.0.60.0040.00416.86
8.0.50.0000.00716.85
8.0.30.0030.01317.36
8.0.20.0090.00917.28
8.0.10.0030.00517.00
8.0.00.0120.00616.87
7.4.330.0020.00216.91
7.4.320.0000.00716.54
7.4.300.0030.00316.67
7.4.290.0000.00716.73
7.4.280.0060.00316.73
7.4.270.0030.00316.69
7.4.260.0060.00013.41
7.4.250.0040.00416.63
7.4.240.0000.00716.70
7.4.230.0030.00316.84
7.4.220.0030.00316.56
7.4.210.0110.00316.61
7.4.200.0040.00416.77
7.4.130.0080.01216.83
7.4.120.0080.01616.65
7.4.110.0120.00616.48
7.4.100.0110.01116.64
7.4.90.0000.01716.75
7.4.80.0050.01119.39
7.4.70.0090.00916.57
7.4.60.0070.01116.63
7.4.50.0070.00316.52
7.4.40.0100.00716.61
7.4.10.0030.01216.70
7.4.00.0070.01016.48
7.3.330.0030.00516.32
7.3.320.0030.00313.18
7.3.310.0000.00716.28
7.3.300.0000.00716.31
7.3.290.0090.00716.33
7.3.280.0060.00916.32
7.3.260.0140.00416.43
7.3.240.0110.00716.50
7.3.230.0130.00516.70
7.3.210.0060.01216.87
7.3.200.0090.01216.50
7.3.190.0060.01516.46
7.3.180.0100.01116.39
7.3.170.0030.01716.66
7.3.160.0070.01016.35
7.3.130.0030.01316.55
7.3.120.0040.01116.38
7.3.110.0100.01016.40
7.3.100.0120.00416.32
7.3.90.0060.01016.54
7.3.80.0030.01216.38
7.3.70.0060.00916.40
7.3.60.0110.00716.44
7.3.50.0040.01116.38
7.3.40.0100.00716.47
7.3.30.0050.01216.47
7.3.20.0080.00916.30
7.3.10.0220.00616.38
7.3.00.0120.01216.43
7.2.330.0110.00816.72
7.2.320.0120.00916.77
7.2.310.0100.00716.63
7.2.300.0060.01216.74
7.2.290.0060.00916.65
7.2.260.0060.00916.45
7.2.250.0110.01116.40
7.2.240.0150.00316.66
7.2.230.0150.00416.79
7.2.220.0140.00316.58
7.2.210.0060.01016.72
7.2.200.0100.00616.59
7.2.190.0140.00716.68
7.2.180.0110.00516.64
7.2.170.0070.01316.54
7.2.160.0070.01116.59
7.2.150.0090.00916.59
7.2.140.0120.01216.67
7.2.130.0070.01716.61
7.2.120.0070.01716.65
7.2.110.0090.00616.68
7.2.100.0100.00716.62
7.2.90.0070.01316.69
7.2.80.0120.01216.68
7.2.70.0060.01016.59
7.2.60.0000.02116.49
7.2.50.0060.01216.80
7.2.40.0150.00316.72
7.2.30.0070.01016.70
7.2.20.0030.01316.63
7.2.10.0040.01416.57
7.2.00.0140.00316.46

preferences:
171.13 ms | 403 KiB | 5 Q