3v4l.org

run code in 300+ PHP versions simultaneously
<?php $css = ' .some_class { font-size: 11px; margin-left: 0.45px; margin-top:11.0005px; border: 1.1px solid blue; } .another_class { background: rgba(0, 0, 0, 0.2); width: 100%; color: #012345; z-index: 12; font-size: calc(100% + 888.888px); }'; $pattern = "/\b\d{1,4}(?:\.\d{1,4})?px/"; var_export(preg_match_all($pattern, $css, $matches) ? $matches[0] : 'fail');

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.0130.00716.84
8.5.00.0120.01120.18
8.4.160.0050.00423.95
8.4.150.0060.00516.91
8.4.140.0150.01517.54
8.4.130.0110.01018.04
8.4.120.0130.00520.48
8.4.110.0110.00518.80
8.4.100.0080.01317.81
8.4.90.0150.00918.09
8.4.80.0070.00218.09
8.4.70.0090.00818.21
8.4.60.0060.00518.74
8.4.50.0140.00818.78
8.4.40.0110.00717.91
8.4.30.0130.00719.67
8.4.20.0070.01019.37
8.4.10.0060.00319.86
8.3.280.0080.00416.34
8.3.270.0130.00716.67
8.3.260.0120.00716.54
8.3.250.0040.00518.70
8.3.240.0130.00716.86
8.3.230.0060.00316.57
8.3.220.0090.00617.17
8.3.210.0100.00816.67
8.3.200.0050.00516.61
8.3.190.0100.00818.84
8.3.180.0130.00616.54
8.3.170.0080.01118.59
8.3.160.0120.00316.95
8.3.150.0120.00618.56
8.3.140.0110.00017.17
8.3.130.0060.00318.40
8.3.120.0040.00718.75
8.3.110.0120.00318.60
8.3.100.0000.00816.79
8.3.90.0000.00826.77
8.3.80.0070.00318.43
8.3.70.0040.01716.50
8.3.60.0140.00718.43
8.3.50.0060.00717.54
8.3.40.0150.00018.89
8.3.30.0110.00718.71
8.3.20.0080.00021.54
8.3.10.0040.00423.71
8.3.00.0040.00423.61
8.2.290.0120.00620.45
8.2.280.0050.00418.68
8.2.270.0040.01517.34
8.2.260.0030.01716.58
8.2.250.0030.01616.58
8.2.240.0050.00317.32
8.2.230.0080.00820.94
8.2.220.0060.00316.39
8.2.210.0110.00726.77
8.2.200.0060.00316.63
8.2.190.0140.00716.75
8.2.180.0120.00316.75
8.2.170.0160.00622.96
8.2.160.0070.00722.25
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00421.19
8.2.120.0030.00526.35
8.2.110.0100.00022.36
8.2.100.0120.00017.84
8.2.90.0050.00320.54
8.2.80.0030.00617.63
8.2.70.0060.00318.04
8.2.60.0030.00518.22
8.2.50.0080.00018.10
8.2.40.0070.00020.36
8.2.30.0000.00720.64
8.2.20.0000.00718.18
8.2.10.0060.00617.98
8.2.00.0000.00718.06
8.1.330.0110.00816.70
8.1.320.0100.00516.51
8.1.310.0000.00718.66
8.1.300.0090.00020.37
8.1.290.0090.00030.84
8.1.280.0140.00425.92
8.1.270.0070.00022.07
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0030.00622.48
8.1.230.0090.00322.65
8.1.220.0000.00817.74
8.1.210.0030.00520.60
8.1.200.0040.00417.34
8.1.190.0030.00617.35
8.1.180.0000.00818.10
8.1.170.0050.00318.51
8.1.160.0040.00418.88
8.1.150.0000.00722.11
8.1.140.0030.00519.32
8.1.130.0040.00419.17
8.1.120.0050.00317.51
8.1.110.0000.00717.41
8.1.100.0000.00717.55
8.1.90.0040.00417.40
8.1.80.0030.00517.43
8.1.70.0000.00817.45
8.1.60.0030.00617.53
8.1.50.0040.00417.56
8.1.40.0000.00717.63
8.1.30.0030.00517.73
8.1.20.0050.00317.74
8.1.10.0000.00817.73
8.1.00.0000.00817.65
8.0.300.0070.00019.98
8.0.290.0050.00316.75
8.0.280.0000.00818.38
8.0.270.0060.00317.01
8.0.260.0000.00616.87
8.0.250.0000.00717.06
8.0.240.0070.00016.93
8.0.230.0070.00017.04
8.0.220.0070.00016.90
8.0.210.0000.00716.99
8.0.200.0060.00017.02
8.0.190.0040.00416.91
8.0.180.0030.00516.99
8.0.170.0000.00917.02
8.0.160.0070.00017.00
8.0.150.0040.00416.97
8.0.140.0000.00716.91
8.0.130.0000.00713.29
8.0.120.0080.00016.86
8.0.110.0000.00716.89
8.0.100.0070.00017.03
8.0.90.0000.00716.96
8.0.80.0090.00616.99
8.0.70.0000.00717.06
8.0.60.0040.00416.83
8.0.50.0030.00516.99
8.0.30.0100.01117.06
8.0.20.0130.00617.40
8.0.10.0040.00417.16
8.0.00.0110.00616.90
7.4.330.0000.00615.55
7.4.320.0050.00316.79
7.4.300.0000.00616.62
7.4.290.0030.00516.73
7.4.280.0040.00416.56
7.4.270.0080.00016.65
7.4.260.0040.00416.49
7.4.250.0070.00016.71
7.4.240.0000.00716.54
7.4.230.0000.00816.77
7.4.220.0040.00416.67
7.4.210.0060.00816.65
7.4.200.0030.00316.48
7.4.160.0130.00416.67
7.4.140.0120.00817.86
7.4.130.0120.01216.86
7.4.120.0110.00816.61
7.4.110.0060.01616.48
7.4.100.0180.00016.52
7.4.90.0160.00616.53
7.4.80.0030.01719.39
7.4.70.0080.01516.58
7.4.60.0170.00316.47
7.4.50.0110.00416.47
7.4.40.0070.01016.63
7.4.00.0070.00715.20
7.3.330.0000.00513.25
7.3.320.0000.00613.14
7.3.310.0000.00716.22
7.3.300.0030.00316.38
7.3.290.0030.00316.36
7.3.280.0080.00816.32
7.3.260.0080.01016.53
7.3.240.0070.01216.44
7.3.230.0150.00416.32
7.3.210.0050.01416.56
7.3.200.0100.00616.31
7.3.190.0090.00916.47
7.3.180.0090.00916.31
7.3.170.0180.00016.63
7.3.160.0090.01516.70
7.3.120.0110.00714.82
7.3.110.0000.01814.76
7.3.100.0000.01314.74
7.3.90.0120.00015.09
7.3.80.0030.01014.78
7.3.70.0000.01414.98
7.3.60.0110.00414.96
7.3.50.0040.01114.97
7.3.40.0090.00614.72
7.3.30.0060.00914.98
7.3.20.0060.00916.84
7.3.10.0040.00416.55
7.3.00.0000.01216.71
7.2.330.0100.01016.69
7.2.320.0070.01116.59
7.2.310.0140.00316.48
7.2.300.0110.00716.61
7.2.290.0060.01616.73
7.2.250.0110.00715.01
7.2.240.0070.01415.14
7.2.230.0030.01615.03
7.2.220.0090.00315.16
7.2.210.0000.01015.05
7.2.200.0100.01015.01
7.2.190.0040.01115.02
7.2.180.0040.01215.18
7.2.170.0000.01215.13
7.2.80.0090.00316.68
7.2.60.0000.01116.96
7.2.50.0030.00916.88
7.2.40.0100.00919.88
7.2.30.0100.01519.29
7.2.20.0130.01419.37
7.2.10.0120.01219.46
7.2.00.0110.01319.39
7.1.330.0130.00315.75
7.1.320.0040.01116.09
7.1.310.0070.00715.65
7.1.300.0070.00715.93
7.1.290.0080.00415.92
7.1.280.0120.00016.00
7.1.270.0000.00915.66
7.1.260.0070.00716.04
7.1.200.0040.00415.88
7.1.160.0070.01118.61
7.1.150.0120.01218.30
7.1.140.0120.00818.01
7.1.130.0130.01218.28
7.1.120.0110.01318.34
7.1.110.0120.01017.62
7.1.100.0100.01017.55
7.1.90.0110.01217.42
7.1.80.0100.01117.65
7.1.70.0100.01016.58
7.1.60.0290.01434.61
7.1.50.0310.01534.28
7.1.40.0300.01534.07
7.1.30.0280.01734.11
7.1.20.0310.01534.25
7.1.10.0270.01216.18
7.1.00.0080.01016.37

preferences:
202.48 ms | 403 KiB | 5 Q