3v4l.org

run code in 300+ PHP versions simultaneously
<?php $match = '/^@function\s+([_\-\w]+)\s*(?:\((.*?)\))?\s*$/im'; $content = <<<'EOF' @function set-color($bg-color: #fff, $contrast: 50%, $desaturate: 100%) { @if lightness($bg-color) < 50 { / light color on dark bg / @return desaturate(lighten($bg-color, $contrast), $desaturate); } @else { / dark color on light bg / @return desaturate(darken($bg-color, $contrast), $desaturate); } } EOF; preg_match($match, $content, $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.0090.00616.75
8.3.50.0110.00821.21
8.3.40.0140.00718.70
8.3.30.0120.00318.86
8.3.20.0080.00020.31
8.3.10.0080.00021.95
8.3.00.0080.00023.61
8.2.180.0090.00616.48
8.2.170.0040.01118.87
8.2.160.0030.01022.96
8.2.150.0050.00225.66
8.2.140.0130.00724.66
8.2.130.0000.00819.89
8.2.120.0080.00026.35
8.2.110.0000.01622.20
8.2.100.0110.00017.80
8.2.90.0000.00819.28
8.2.80.0030.00917.97
8.2.70.0090.00017.75
8.2.60.0020.00517.93
8.2.50.0040.00418.07
8.2.40.0040.00422.45
8.2.30.0040.00420.58
8.2.20.0040.00417.66
8.2.10.0040.00417.94
8.2.00.0040.00417.99
8.1.280.0070.01325.92
8.1.270.0040.00423.97
8.1.260.0100.00028.09
8.1.250.0070.00028.09
8.1.240.0190.00323.92
8.1.230.0000.01119.21
8.1.220.0030.00617.74
8.1.210.0060.00318.77
8.1.200.0030.00617.38
8.1.190.0030.00517.00
8.1.180.0060.00618.10
8.1.170.0060.00318.50
8.1.160.0030.00620.79
8.1.150.0050.00218.90
8.1.140.0040.00419.46
8.1.130.0000.00717.68
8.1.120.0040.00317.59
8.1.110.0000.00717.54
8.1.100.0070.00017.55
8.1.90.0020.00517.47
8.1.80.0080.00017.47
8.1.70.0030.00317.60
8.1.60.0000.00817.58
8.1.50.0030.00617.66
8.1.40.0030.00517.67
8.1.30.0090.00017.73
8.1.20.0080.00017.75
8.1.10.0000.00817.70
8.1.00.0040.00417.50
8.0.300.0030.00518.77
8.0.290.0080.00016.88
8.0.280.0070.00018.35
8.0.270.0040.00417.17
8.0.260.0070.00017.22
8.0.250.0040.00417.16
8.0.240.0030.00317.11
8.0.230.0040.00417.14
8.0.220.0040.00416.95
8.0.210.0040.00417.06
8.0.200.0000.00817.13
8.0.190.0030.00616.96
8.0.180.0000.00817.00
8.0.170.0080.00017.02
8.0.160.0030.00317.15
8.0.150.0070.00016.99
8.0.140.0000.00717.04
8.0.130.0050.00013.43
8.0.120.0040.00417.03
8.0.110.0060.00317.06
8.0.100.0000.00716.92
8.0.90.0000.00716.93
8.0.80.0100.00616.98
8.0.70.0000.00816.92
8.0.60.0050.00317.11
8.0.50.0080.00016.86
8.0.30.0160.00617.15
8.0.20.0080.01117.43
8.0.10.0080.00017.12
8.0.00.0060.01316.82
7.4.330.0060.00016.85
7.4.320.0040.00416.79
7.4.300.0030.00316.73
7.4.290.0070.00016.80
7.4.280.0030.00716.63
7.4.270.0030.00316.66
7.4.260.0000.00716.64
7.4.250.0040.00416.67
7.4.240.0040.00416.64
7.4.230.0030.00316.64
7.4.220.0040.01516.66
7.4.210.0060.00816.70
7.4.200.0000.00716.57
7.4.160.0060.00916.54
7.4.150.0000.02117.40
7.4.140.0140.01017.86
7.4.130.0080.01016.63
7.4.120.0130.00516.59
7.4.110.0090.00916.78
7.4.100.0080.01416.61
7.4.90.0190.00416.61
7.4.80.0070.01419.39
7.4.70.0090.01516.64
7.4.60.0100.00616.46
7.4.50.0000.01616.74
7.4.40.0030.01816.62
7.4.30.0110.01116.69
7.4.00.0100.00615.20
7.3.330.0020.00213.28
7.3.320.0060.00013.11
7.3.310.0000.00716.36
7.3.300.0070.00016.34
7.3.290.0050.00216.28
7.3.280.0120.00516.37
7.3.270.0090.00917.40
7.3.260.0140.00316.41
7.3.250.0090.00816.52
7.3.240.0100.00716.52
7.3.230.0100.00716.75
7.3.210.0070.01016.40
7.3.200.0150.00316.38
7.3.190.0090.00616.49
7.3.180.0130.00416.66
7.3.170.0060.00916.50
7.3.160.0080.00816.75
7.3.120.0030.01614.86
7.3.110.0130.00714.78
7.3.100.0150.00314.94
7.3.90.0050.00514.76
7.3.80.0070.01015.05
7.3.70.0030.00914.91
7.3.60.0000.01315.01
7.3.50.0100.00714.89
7.3.40.0070.00714.44
7.3.30.0000.01214.51
7.3.20.0000.01016.53
7.3.10.0100.00316.68
7.3.00.0040.00816.77
7.2.330.0090.00916.66
7.2.320.0150.00416.42
7.2.310.0080.00816.66
7.2.300.0040.01316.50
7.2.290.0090.00616.43
7.2.250.0100.01014.84
7.2.240.0110.00715.28
7.2.230.0090.00614.91
7.2.220.0080.00815.08
7.2.210.0000.01514.91
7.2.200.0090.00414.82
7.2.190.0100.00714.79
7.2.180.0000.01114.76
7.2.170.0000.01614.89
7.2.60.0030.01016.72
7.2.00.0030.00619.27
7.1.330.0070.00715.68
7.1.320.0080.00815.93
7.1.310.0040.01116.01
7.1.300.0000.01015.74
7.1.290.0080.00815.89
7.1.280.0000.01215.77
7.1.270.0070.00415.62
7.1.260.0090.00615.69
7.1.200.0040.00915.79
7.1.100.0060.00818.21
7.1.70.0070.00717.32
7.1.60.0140.01119.27
7.1.50.0100.01317.00
7.1.00.0200.06022.37
7.0.200.0000.00916.98
7.0.60.0000.06021.81
7.0.50.0070.08317.84
7.0.40.0130.04020.42
7.0.30.0270.04320.23
7.0.20.0300.07720.20
7.0.10.0100.06720.02
7.0.00.0070.05720.01
5.6.280.0000.03320.82
5.6.210.0070.05720.47
5.6.200.0030.04018.23
5.6.190.0130.04720.41
5.6.180.0270.07020.67
5.6.170.0270.06720.33
5.6.160.0070.08320.49
5.6.150.0070.04018.18
5.6.140.0070.03718.12
5.6.130.0070.04318.21
5.6.120.0070.04021.05
5.6.110.0070.09021.13
5.6.100.0100.05320.99
5.6.90.0100.06320.87
5.6.80.0070.03720.50
5.5.350.0070.08320.49
5.5.340.0130.06017.98
5.5.330.0030.08720.57
5.5.320.0430.03720.31
5.5.310.0230.04320.29
5.5.300.0130.06717.98
5.5.290.0100.04017.94
5.5.280.0030.04020.73
5.5.270.0030.07720.88
5.5.260.0100.04020.86
5.5.250.0070.04020.70
5.5.240.0100.03020.25

preferences:
31.38 ms | 401 KiB | 5 Q