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.0060.00916.75
8.3.50.0040.01116.52
8.3.40.0080.00819.07
8.3.30.0070.00718.96
8.3.20.0000.00820.41
8.3.10.0080.00021.86
8.3.00.0040.00423.53
8.2.180.0150.00016.75
8.2.170.0090.00619.22
8.2.160.0090.00922.96
8.2.150.0040.00425.66
8.2.140.0060.00924.66
8.2.130.0080.00019.95
8.2.120.0070.00026.35
8.2.110.0070.00321.12
8.2.100.0030.01018.03
8.2.90.0040.00419.16
8.2.80.0030.00617.97
8.2.70.0050.00517.88
8.2.60.0040.00417.93
8.2.50.0000.00918.07
8.2.40.0040.00422.44
8.2.30.0040.00420.61
8.2.20.0000.00817.89
8.2.10.0030.00618.20
8.2.00.0040.00418.05
8.1.280.0000.01425.92
8.1.270.0090.00023.88
8.1.260.0070.00328.09
8.1.250.0030.00628.09
8.1.240.0030.00619.37
8.1.230.0090.00322.73
8.1.220.0030.00617.74
8.1.210.0050.00318.77
8.1.200.0000.00917.48
8.1.190.0030.00617.23
8.1.180.0050.00518.10
8.1.170.0060.00318.77
8.1.160.0030.00620.64
8.1.150.0000.00718.79
8.1.140.0080.00019.50
8.1.130.0040.00417.71
8.1.120.0040.00417.46
8.1.110.0050.00217.49
8.1.100.0040.00417.45
8.1.90.0070.00017.58
8.1.80.0040.00417.50
8.1.70.0000.00717.58
8.1.60.0040.00417.71
8.1.50.0000.00917.67
8.1.40.0050.00317.68
8.1.30.0080.00017.69
8.1.20.0000.00817.62
8.1.10.0000.00817.54
8.1.00.0040.00417.61
8.0.300.0000.00720.04
8.0.290.0000.00816.88
8.0.280.0000.00718.46
8.0.270.0080.00017.34
8.0.260.0060.00317.31
8.0.250.0070.00017.17
8.0.240.0030.00317.20
8.0.230.0040.00417.17
8.0.220.0050.00316.99
8.0.210.0040.00417.06
8.0.200.0060.00017.00
8.0.190.0050.00317.21
8.0.180.0040.00417.05
8.0.170.0000.00717.04
8.0.160.0070.00017.11
8.0.150.0060.00317.14
8.0.140.0000.00717.08
8.0.130.0030.00313.49
8.0.120.0040.00417.00
8.0.110.0050.00317.09
8.0.100.0040.00417.16
8.0.90.0070.00017.04
8.0.80.0090.00617.14
8.0.70.0040.00416.96
8.0.60.0040.00416.96
8.0.50.0000.00717.05
8.0.30.0030.01417.29
8.0.20.0120.00817.45
8.0.10.0030.00517.22
8.0.00.0090.01016.89
7.4.330.0060.00016.71
7.4.320.0000.00716.67
7.4.300.0030.00316.83
7.4.290.0000.00716.53
7.4.280.0040.00716.64
7.4.270.0030.00316.76
7.4.260.0000.00716.59
7.4.250.0070.00016.70
7.4.240.0020.00516.70
7.4.230.0000.00716.86
7.4.220.0000.01916.78
7.4.210.0070.01116.70
7.4.200.0000.00816.77
7.4.160.0080.00816.58
7.4.150.0120.00617.40
7.4.140.0120.01017.86
7.4.130.0080.00916.75
7.4.120.0110.00916.62
7.4.110.0040.01416.77
7.4.100.0060.01716.48
7.4.90.0130.00616.60
7.4.80.0060.01419.39
7.4.70.0090.00616.83
7.4.60.0090.00616.71
7.4.50.0110.00416.52
7.4.40.0100.01016.72
7.4.30.0150.00416.79
7.4.00.0040.01115.30
7.3.330.0030.00313.32
7.3.320.0050.00013.29
7.3.310.0000.00716.25
7.3.300.0000.00816.32
7.3.290.0040.00416.37
7.3.280.0060.01316.47
7.3.270.0100.00917.40
7.3.260.0140.00316.41
7.3.250.0100.00816.64
7.3.240.0090.01316.46
7.3.230.0140.00416.67
7.3.210.0120.01216.62
7.3.200.0110.00719.39
7.3.190.0120.00616.41
7.3.180.0070.01316.57
7.3.170.0100.00616.49
7.3.160.0090.00616.47
7.2.330.0130.00616.64
7.2.320.0030.01416.75
7.2.310.0040.01216.60
7.2.300.0140.00316.85
7.2.290.0130.00416.46
7.2.60.0090.00617.00
7.2.00.0000.01719.35
7.1.200.0070.00715.88
7.1.100.0060.00318.25
7.1.70.0030.00617.49
7.1.60.0130.01319.27
7.1.50.0100.01316.84
7.1.00.0000.07722.46
7.0.200.0080.00016.86
7.0.60.0030.07321.59
7.0.50.0030.04317.88
7.0.40.0100.08720.26
7.0.30.0230.05020.36
7.0.20.0400.07020.32
7.0.10.0000.08720.20
7.0.00.0030.08320.01
5.6.280.0030.05321.09
5.6.210.0130.07720.52
5.6.200.0070.03718.19
5.6.190.0000.05020.77
5.6.180.0230.04320.32
5.6.170.0300.07020.54
5.6.160.0100.08720.52
5.6.150.0030.06018.22
5.6.140.0000.04318.21
5.6.130.0100.03318.20
5.6.120.0070.03721.03
5.6.110.0100.07021.02
5.6.100.0100.05021.13
5.6.90.0030.08720.96
5.6.80.0100.08320.33
5.5.350.0300.08320.49
5.5.340.0130.07718.02
5.5.330.0100.04020.28
5.5.320.0370.04020.27
5.5.310.0130.05020.29
5.5.300.0070.08317.94
5.5.290.0170.06718.01
5.5.280.0000.04320.96
5.5.270.0070.08320.76
5.5.260.0100.07320.73
5.5.250.0030.04020.49
5.5.240.0100.07020.16

preferences:
48.46 ms | 400 KiB | 5 Q