3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = <<<CSS /* Language specific height correction for titles. Ref T31405 and T32809 */ /* Languages like hi or ml require slightly more vertical space to show diacritics properly */ h1:lang( anp ), h1:lang( as ), h1:lang( bh ), /* Macrolanguage, used on bh.wikipedia.org, should be removed one day */ h1:lang( bho ), h1:lang( bn ), h1:lang( gu ), h1:lang( hi ), h1:lang( kn ), h1:lang( ks ), h1:lang( ml ), h1:lang( mr ), h1:lang( my ), h1:lang( mai ), h1:lang( ne ), h1:lang( new ), h1:lang( or ), h1:lang( pa ), h1:lang( pi ), h1:lang( sa ), h1:lang( ta ), h1:lang( te ) { line-height: 1.6em !important; /* stylelint-disable-line declaration-no-important */ } /* stylelint-disable selector-list-comma-newline-after */ h2:lang( anp ), h3:lang( anp ), h4:lang( anp ), h5:lang( anp ), h6:lang( anp ), h2:lang( as ), h3:lang( as ), h4:lang( as ), h5:lang( as ), h6:lang( as ), h2:lang( bho ), h3:lang( bho ), h4:lang( bho ), h5:lang( bho ), h6:lang( bho ), h2:lang( bh ), h3:lang( bh ), h4:lang( bh ), h5:lang( bh ), h6:lang( bh ), h2:lang( bn ), h3:lang( bn ), h4:lang( bn ), h5:lang( bn ), h6:lang( bn ), h2:lang( gu ), h3:lang( gu ), h4:lang( gu ), h5:lang( gu ), h6:lang( gu ), h2:lang( hi ), h3:lang( hi ), h4:lang( hi ), h5:lang( hi ), h6:lang( hi ), h2:lang( kn ), h3:lang( kn ), h4:lang( kn ), h5:lang( kn ), h6:lang( kn ), h2:lang( ks ), h3:lang( ks ), h4:lang( ks ), h5:lang( ks ), h6:lang( ks ), h2:lang( ml ), h3:lang( ml ), h4:lang( ml ), h5:lang( ml ), h6:lang( ml ), h2:lang( mr ), h3:lang( mr ), h4:lang( mr ), h5:lang( mr ), h6:lang( mr ), h2:lang( my ), h3:lang( my ), h4:lang( my ), h5:lang( my ), h6:lang( my ), h2:lang( mai ), h3:lang( mai ), h4:lang( mai ), h5:lang( mai ), h6:lang( mai ), h2:lang( ne ), h3:lang( ne ), h4:lang( ne ), h5:lang( ne ), h6:lang( ne ), h2:lang( new ), h3:lang( new ), h4:lang( new ), h5:lang( new ), h6:lang( new ), h2:lang( or ), h3:lang( or ), h4:lang( or ), h5:lang( or ), h6:lang( or ), h2:lang( pa ), h3:lang( pa ), h4:lang( pa ), h5:lang( pa ), h6:lang( pa ), h2:lang( pi ), h3:lang( pi ), h4:lang( pi ), h5:lang( pi ), h6:lang( pi ), h2:lang( sa ), h3:lang( sa ), h4:lang( sa ), h5:lang( sa ), h6:lang( sa ), h2:lang( ta ), h3:lang( ta ), h4:lang( ta ), h5:lang( ta ), h6:lang( ta ), h2:lang( te ), h3:lang( te ), h4:lang( te ), h5:lang( te ), h6:lang( te ) { line-height: 1.2em; } /* stylelint-enable selector-list-comma-newline-after */ CSS; class CSSMin { public static function minify( $css ) { return trim( str_replace( [ '; ', ': ', ' {', '{ ', ', ', '} ', ';}', '( ', ' )', '[ ', ' ]' ], [ ';', ':', '{', '{', ',', '}', '}', '(', ')', '[', ']' ], preg_replace( [ '/\s+/', '/\/\*.*?\*\//s' ], [ ' ', '' ], $css ) ) ); } } $min = CSSMin::minify($input); $minz = gzdeflate($min, 9); echo "transfer size: " . strlen($minz) . "\n"; echo "decompressed: " . strlen($min) . "\n";

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.4.20.0120.00918.96
8.4.10.0030.00618.35
8.3.150.0110.00720.77
8.3.140.0000.00918.56
8.3.130.0030.00516.92
8.3.120.0070.00319.08
8.3.110.0100.00020.94
8.3.100.0030.00624.06
8.3.90.0090.00616.81
8.3.80.0030.00718.43
8.3.70.0140.00718.55
8.3.60.0090.01318.56
8.3.50.0090.00817.36
8.3.40.0160.00619.23
8.3.30.0070.01019.22
8.3.20.0030.00622.27
8.3.10.0000.00923.64
8.3.00.0030.00622.52
8.2.270.0070.01319.13
8.2.260.0100.01018.70
8.2.250.0080.00018.99
8.2.240.0110.00817.28
8.2.230.0040.00422.58
8.2.220.0040.00437.54
8.2.210.0080.00026.77
8.2.200.0060.00316.75
8.2.190.0090.00616.88
8.2.180.0160.00818.79
8.2.170.0080.01119.24
8.2.160.0090.00620.64
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0030.00626.16
8.2.120.0040.00419.92
8.2.110.0030.00720.84
8.2.100.0110.00018.28
8.2.90.0040.00418.34
8.2.80.0060.00319.39
8.2.70.0030.00618.00
8.2.60.0030.00518.29
8.2.50.0060.00318.13
8.2.40.0090.00318.41
8.2.30.0040.00418.20
8.2.20.0030.00618.47
8.2.10.0030.00521.20
8.2.00.0030.00519.66
8.1.310.0030.00616.86
8.1.300.0030.00618.87
8.1.290.0060.00318.88
8.1.280.0070.01425.92
8.1.270.0090.00920.64
8.1.260.0060.00326.35
8.1.250.0060.00328.09
8.1.240.0080.00822.05
8.1.230.0060.00621.12
8.1.220.0030.00717.89
8.1.210.0100.00019.10
8.1.200.0030.00617.72
8.1.190.0000.01017.50
8.1.180.0000.00918.10
8.1.170.0040.00418.85
8.1.160.0000.00919.01
8.1.150.0040.00419.18
8.1.140.0040.00420.88
8.1.130.0050.00219.40
8.1.120.0030.00517.89
8.1.110.0080.00017.79
8.1.100.0040.00417.76
8.1.90.0080.00017.72
8.1.80.0000.00917.80
8.1.70.0040.00417.79
8.1.60.0040.00417.85
8.1.50.0050.00317.92
8.1.40.0030.00617.86
8.1.30.0040.00418.07
8.1.20.0050.00317.86
8.1.10.0080.00318.00
8.1.00.0040.00417.76
8.0.300.0040.00420.36
8.0.290.0050.00317.13
8.0.280.0040.00420.20
8.0.270.0050.00317.27
8.0.260.0050.00317.26
8.0.250.0000.00717.38
8.0.240.0070.00017.36
8.0.230.0020.00517.27
8.0.220.0070.00017.39
8.0.210.0040.00417.29
8.0.200.0030.00317.34
8.0.190.0060.00317.39
8.0.180.0060.00317.37
8.0.170.0040.00417.26
8.0.160.0040.00417.38
8.0.150.0070.00017.14
8.0.140.0040.00417.32
8.0.130.0070.00013.72
8.0.120.0030.00617.19
8.0.110.0000.00817.35
8.0.100.0040.00417.22
8.0.90.0060.00317.17
8.0.80.0050.01417.31
8.0.70.0040.00417.20
8.0.60.0030.00617.25
8.0.50.0030.00617.14
8.0.30.0160.00617.63
8.0.20.0120.00817.51
8.0.10.0040.00417.45
8.0.00.0150.00817.12
7.4.330.0050.00015.55
7.4.320.0070.00016.84
7.4.300.0000.00717.09
7.4.290.0000.00717.04
7.4.280.0050.00516.90
7.4.270.0030.00316.96
7.4.260.0000.00613.68
7.4.250.0000.00716.93
7.4.240.0030.00516.99
7.4.230.0040.00417.16
7.4.220.0070.00016.89
7.4.210.0080.00616.92
7.4.200.0040.00417.12
7.4.130.0100.01716.98
7.4.120.0150.00317.00
7.4.110.0140.00716.98
7.4.100.0090.00917.10
7.4.90.0110.00716.91
7.4.80.0190.00619.39
7.4.70.0100.00717.03
7.4.60.0100.00917.11
7.4.50.0040.00816.98
7.4.40.0060.01617.10
7.4.10.0060.01215.13
7.4.00.0070.00815.30
7.3.330.0000.00816.84
7.3.320.0000.00613.66
7.3.310.0030.00516.91
7.3.300.0000.00816.81
7.3.290.0090.00916.78
7.3.280.0040.01816.73
7.3.260.0110.00916.88
7.3.240.0090.01016.90
7.3.230.0080.00816.82
7.3.210.0070.01016.88
7.3.200.0060.01016.82
7.3.190.0120.01016.75
7.3.180.0130.01016.93
7.3.170.0080.00816.74
7.3.160.0110.00717.11
7.3.130.0090.00915.01
7.3.120.0030.01415.14
7.3.110.0090.00915.32
7.3.100.0070.00815.09
7.3.90.0060.01015.24
7.3.80.0090.00915.23
7.3.70.0100.00815.28
7.3.60.0120.00515.25
7.3.50.0100.00415.16
7.3.40.0060.00815.26
7.3.30.0100.00515.11
7.3.20.0040.01216.08
7.3.10.0050.00915.84
7.3.00.0060.00716.01
7.2.330.0040.01217.07
7.2.320.0050.01416.87
7.2.310.0100.00717.16
7.2.300.0030.01816.97
7.2.290.0080.00817.14
7.2.260.0070.01015.48
7.2.250.0030.01015.28
7.2.240.0040.01115.39
7.2.230.0070.00915.49
7.2.220.0070.01015.26
7.2.210.0140.00515.42
7.2.200.0100.00815.55
7.2.190.0100.00415.38
7.2.180.0060.00815.39
7.2.170.0080.00815.49
7.2.160.0060.00915.26
7.2.150.0110.00316.46
7.2.140.0110.00816.33
7.2.130.0090.00516.46
7.2.120.0070.00916.35
7.2.110.0110.00716.35
7.2.100.0080.01116.21
7.2.90.0110.00816.36
7.2.80.0070.01116.25
7.2.70.0060.01016.46
7.2.60.0050.01316.25
7.2.50.0080.00716.34
7.2.40.0030.01316.15
7.2.30.0080.00616.32
7.2.20.0060.01016.34
7.2.10.0340.00616.23
7.2.00.0050.00816.29
7.1.330.0030.01415.88
7.1.320.0100.00715.19
7.1.310.0080.00815.29
7.1.300.0130.00415.09
7.1.290.0110.00315.25
7.1.280.0020.01214.93
7.1.270.0100.00715.19
7.1.260.0030.01015.26
7.1.250.0050.01015.29
7.1.240.0040.00815.88
7.1.230.0030.00615.81
7.1.220.0030.00615.93
7.1.210.0030.00715.79
7.1.200.0100.00715.74
7.1.190.0040.00716.08
7.1.180.0070.00415.76
7.1.170.0140.00016.13
7.1.160.0030.01015.98
7.1.150.0000.01515.91
7.1.140.0000.01415.80
7.1.130.0060.00616.02
7.1.120.0060.00315.69
7.1.110.0030.01316.22
7.1.100.0040.00815.68
7.1.90.0070.01016.01
7.1.80.0030.01215.86
7.1.70.0110.00715.78
7.1.60.0070.01016.16
7.1.50.0070.00716.20
7.1.40.0110.00416.09
7.1.30.0090.00615.73
7.1.20.0060.00615.88
7.1.10.0100.00315.77
7.1.00.0060.00815.88

preferences:
29.15 ms | 403 KiB | 5 Q