3v4l.org

run code in 300+ PHP versions simultaneously
<?php $css = <<<CSS body, html{ font-family:'Poppins', sans-serif; background-color:white; overflow-x:hidden; } body{ overflow-y:hidden; } header{ position:relative; z-index:2; } CSS; echo preg_replace('~(?:\s*/\*.*?\*/\s*)|\{\K(?:\'[^\']*\'|"[^"]*"|/\*.*?\*/|(?:(?R)|[^}]))*~', '', $css); echo "\n\n\t****************************************************\n\n"; $css = <<<CSS /* {Leading monkeywrench} */ body, html{ overflow-x:hidden; } body{overflow-y:hidden; } header{ position:relative; z-index:2; } body, html{ font-family:'Poppins', sans-serif; /* This will {monkeywrench} */ background-color:white; overflow-x:hidden; } .some[selectors-may='contain-a-{'] { } @media only screen and (min-width: 200px) { .test { prop: val; } .test2 { prop: val; } } CSS; echo preg_replace('~(?:\s*/\*.*?\*/\s*)|\{\K(?:\'[^\']*\'|"[^"]*"|/\*.*?\*/|(?:(?R)|[^}]))*~', '', $css);

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.30.0120.00617.21
8.5.20.0090.01019.50
8.5.10.0100.01016.82
8.5.00.0130.00920.11
8.4.180.0120.00919.66
8.4.170.0120.01219.63
8.4.160.0050.00623.13
8.4.150.0090.00516.94
8.4.140.0250.01117.70
8.4.130.0130.00518.00
8.4.120.0110.00920.67
8.4.110.0110.00922.57
8.4.100.0110.00918.07
8.4.90.0120.00618.85
8.4.80.0110.01117.88
8.4.70.0050.00418.02
8.4.60.0040.00518.85
8.4.50.0160.00620.39
8.4.40.0100.01017.66
8.4.30.0060.01019.85
8.4.20.0110.01119.48
8.4.10.0070.01319.75
8.3.300.0100.01020.80
8.3.290.0130.00720.83
8.3.280.0130.00718.54
8.3.270.0100.01116.63
8.3.260.0140.00516.84
8.3.250.0080.01118.77
8.3.240.0100.00916.66
8.3.230.0110.01016.51
8.3.220.0070.00117.12
8.3.210.0030.00416.60
8.3.200.0060.00616.61
8.3.190.0040.00417.07
8.3.180.0110.00718.73
8.3.170.0140.00716.79
8.3.160.0120.00617.16
8.3.150.0090.00917.18
8.3.140.0070.00720.59
8.3.130.0040.00716.83
8.3.120.0110.00418.43
8.3.110.0060.00316.63
8.3.100.0030.00620.34
8.3.90.0170.00322.62
8.3.80.0100.00622.54
8.3.70.0180.00922.66
8.3.60.0130.00922.54
8.3.50.0210.00820.00
8.3.40.0130.00522.87
8.3.30.0200.00922.87
8.3.20.0170.00624.35
8.3.10.0180.00725.21
8.3.00.0140.00625.22
8.2.300.0130.00822.10
8.2.290.0120.00720.59
8.2.280.0130.00618.66
8.2.270.0110.00716.98
8.2.260.0200.00016.55
8.2.250.0030.00616.75
8.2.240.0060.00317.13
8.2.230.0030.00620.94
8.2.220.0060.00324.06
8.2.210.0130.00426.77
8.2.200.0120.00622.47
8.2.190.0190.01121.70
8.2.180.0180.00222.57
8.2.170.0130.01024.87
8.2.160.0220.00522.99
8.2.150.0100.00425.47
8.2.140.0130.00225.71
8.2.130.0110.00423.95
8.2.120.0060.00826.56
8.2.110.0130.00223.02
8.2.100.0110.00522.30
8.2.90.0220.00322.25
8.2.80.0110.00822.37
8.2.70.0170.00422.34
8.2.60.0130.00222.26
8.2.50.0120.00922.43
8.2.40.0110.01023.68
8.2.30.0100.00723.73
8.2.20.0150.01022.48
8.2.10.0150.00922.40
8.2.00.0210.00322.46
8.1.340.0140.00617.88
8.1.330.0130.00622.19
8.1.320.0100.00918.27
8.1.310.0100.00616.49
8.1.300.0030.00620.42
8.1.290.0220.00422.82
8.1.280.0240.00726.34
8.1.270.0190.00824.47
8.1.260.0210.00526.56
8.1.250.0240.00227.43
8.1.240.0170.00423.05
8.1.230.0150.00824.75
8.1.220.0180.00822.25
8.1.210.0190.00522.90
8.1.200.0150.00822.07
8.1.190.0180.00321.99
8.1.180.0140.01222.43
8.1.170.0220.00022.66
8.1.160.0100.00522.82
8.1.150.0150.00224.40
8.1.140.0110.01022.25
8.1.130.0170.00722.88
8.1.120.0120.01122.12
8.1.110.0170.00722.14
8.1.100.0130.01022.17
8.1.90.0150.01022.11
8.1.80.0170.00322.09
8.1.70.0140.00722.14
8.1.60.0140.00722.20
8.1.50.0220.00422.22
8.1.40.0180.00722.20
8.1.30.0160.00922.25
8.1.20.0180.00722.28
8.1.10.0200.00622.17
8.1.00.0220.00722.21
8.0.300.0110.00723.27
8.0.290.0190.00321.88
8.0.280.0110.00321.06
8.0.270.0080.00522.06
8.0.260.0120.00821.88
8.0.250.0070.01121.91
8.0.240.0160.00821.94
8.0.230.0250.00821.89
8.0.220.0220.00221.94
8.0.210.0160.00521.92
8.0.200.0170.00821.94
8.0.190.0210.00421.94
8.0.180.0180.00521.93
8.0.170.0180.00621.85
8.0.160.0150.00821.93
8.0.150.0170.00721.91
8.0.140.0180.00821.85
8.0.130.0130.00620.15
8.0.120.0200.00021.86
8.0.110.0150.00721.94
8.0.100.0140.00521.83
8.0.90.0130.00821.82
8.0.80.0160.00921.91
8.0.70.0160.00521.94
8.0.60.0110.01121.87
8.0.50.0160.00721.86
8.0.30.0140.00719.13
8.0.20.0100.00922.08
8.0.10.0090.00421.88
8.0.00.0100.00820.29
7.4.330.0150.00621.16
7.4.320.0160.00621.72
7.4.300.0170.00321.73
7.4.290.0150.00821.72
7.4.280.0150.00821.73
7.4.270.0220.00321.73
7.4.260.0200.00821.74
7.4.250.0240.00421.69
7.4.240.0210.00221.71
7.4.230.0140.00621.65
7.4.220.0140.00121.74
7.4.210.0110.00720.05
7.4.200.0100.00221.69
7.4.190.0230.01326.77
7.4.180.0320.00426.77
7.4.160.0120.00919.25
7.4.150.0260.01126.77
7.4.140.0140.00919.64
7.4.130.0210.00821.76
7.4.120.0170.00618.71
7.4.110.0240.00621.75
7.4.100.0220.00821.66
7.4.90.0160.00921.73
7.4.80.0210.01223.08
7.4.70.0180.00921.77
7.4.60.0200.01121.74
7.4.50.0150.01021.63
7.4.40.0120.00621.62
7.4.30.0140.00326.77
7.4.20.0270.00726.77
7.4.10.0150.00718.93
7.4.00.0140.00717.99
7.3.330.0140.00619.95
7.3.320.0130.00719.91
7.3.310.0170.00521.54
7.3.300.0140.00721.53
7.3.290.0110.01021.58
7.3.280.0170.00618.99
7.3.270.0280.00626.77
7.3.260.0160.00819.07
7.3.250.0410.00026.77
7.3.240.0110.01019.16
7.3.230.0130.01121.65
7.3.220.0300.00326.77
7.3.210.0190.00921.65
7.3.200.0130.01221.56
7.3.190.0120.00921.69
7.3.180.0130.01121.72
7.3.170.0160.01021.69
7.3.160.0200.00421.72
7.3.150.0200.01226.77
7.3.140.0230.00326.77
7.3.130.0110.00718.92
7.3.120.0170.00618.80
7.3.110.0130.01218.85
7.3.100.0140.00418.86
7.3.90.0150.00318.97
7.3.80.0110.00518.78
7.3.70.0060.00718.84
7.3.60.0110.00918.82
7.3.50.0120.00918.82
7.3.40.0120.00718.90
7.3.30.0160.00418.92
7.3.20.0150.00620.15
7.3.10.0140.00820.18
7.3.00.0120.00820.08
7.2.340.0290.00026.77
7.2.330.0170.00521.76
7.2.320.0140.00421.72
7.2.310.0100.00721.76
7.2.300.0150.00321.63
7.2.290.0140.00321.71
7.2.280.0190.00026.77
7.2.270.0190.00326.77
7.2.260.0100.01018.96
7.2.250.0110.01118.95
7.2.240.0100.00618.93
7.2.230.0080.00619.04
7.2.220.0060.00818.95
7.2.210.0110.00618.97
7.2.200.0130.00718.91
7.2.190.0160.00618.91
7.2.180.0120.00719.00
7.2.170.0090.01318.90
7.2.160.0140.00919.00
7.2.150.0180.00320.25
7.2.140.0110.01120.13
7.2.130.0150.00720.26
7.2.120.0150.00620.21
7.2.110.0120.00820.14
7.2.100.0140.00420.29
7.2.90.0130.00720.24
7.2.80.0150.00520.28
7.2.70.0150.00720.19
7.2.60.0140.00619.42
7.2.50.0150.00620.21
7.2.40.0150.00820.27
7.2.30.0160.01019.79
7.2.20.0150.01119.75
7.2.10.0160.00619.72
7.2.00.0100.00619.61
7.1.330.0070.00719.55
7.1.320.0120.00619.51
7.1.310.0140.00619.47
7.1.300.0130.00519.44
7.1.290.0080.00919.59
7.1.280.0140.00619.49
7.1.270.0150.00819.47
7.1.260.0160.00719.58
7.1.250.0100.01119.47
7.1.240.0070.00919.58
7.1.230.0120.00619.50
7.1.220.0130.00619.50
7.1.210.0140.00519.38
7.1.200.0060.01018.60
7.1.190.0120.00519.56
7.1.180.0140.00519.36
7.1.170.0120.00819.39
7.1.160.0110.00819.31
7.1.150.0150.00718.92
7.1.140.0140.00818.91
7.1.130.0120.01218.94
7.1.120.0120.01118.87
7.1.110.0150.00818.76
7.1.100.0180.00718.80
7.1.90.0120.01018.61
7.1.80.0110.00718.67
7.1.70.0120.00918.50
7.1.60.0260.01223.00
7.1.50.0200.00822.90
7.1.40.0140.01122.77
7.1.30.0180.01022.78
7.1.20.0130.01322.92
7.1.10.0110.00818.38
7.1.00.0140.00818.40
7.0.330.0090.00819.17
7.0.320.0130.00119.26
7.0.310.0120.00619.32
7.0.300.0110.00519.24
7.0.290.0100.00519.20
7.0.280.0110.00619.18
7.0.270.0100.00519.25
7.0.260.0060.00819.25
7.0.250.0050.01019.29
7.0.240.0140.00219.26
7.0.230.0110.00319.19
7.0.220.0100.00619.29
7.0.210.0110.00319.09
7.0.200.0040.00919.26
7.0.190.0090.00619.30
7.0.180.0080.00619.39
7.0.170.0100.00419.22
7.0.160.0060.00819.21
7.0.150.0080.00719.32
7.0.140.0100.00619.40
7.0.130.0100.00619.34
7.0.120.0110.00519.26
7.0.110.0120.00419.31
7.0.100.0060.00619.33
7.0.90.0070.00619.25
7.0.80.0060.00719.25
7.0.70.0040.00819.07
7.0.60.0080.00719.30
7.0.50.0070.00719.30
7.0.40.0100.00517.83
7.0.30.0080.00617.91
7.0.20.0100.00518.00
7.0.10.0060.00818.01
7.0.00.0070.00717.94
5.6.400.0080.00718.53
5.6.390.0100.00318.43
5.6.380.0080.00518.61
5.6.370.0060.00718.59
5.6.360.0090.00618.57
5.6.350.0090.00618.50
5.6.340.0070.00918.50
5.6.330.0090.00718.46
5.6.320.0070.00818.36
5.6.310.0080.00818.54
5.6.300.0080.00718.52
5.6.290.0100.00618.58
5.6.280.0080.00918.58
5.6.270.0090.00418.75
5.6.260.0090.00518.40
5.6.250.0070.00418.41
5.6.240.0100.00518.41
5.6.230.0070.00618.51
5.6.220.0070.00718.61
5.6.210.0080.00918.58
5.6.200.0060.00918.60
5.6.190.0060.00818.48
5.6.180.0100.00618.63
5.6.170.0080.00818.54
5.6.160.0110.00618.42
5.6.150.0120.00418.62
5.6.140.0060.00718.56
5.6.130.0070.00418.52
5.6.120.0100.00518.40
5.6.110.0060.01018.64
5.6.100.0080.00718.46
5.6.90.0070.00618.42
5.6.80.0080.00618.38
5.6.70.0060.00818.46
5.6.60.0080.00618.42
5.6.50.0080.00818.43
5.6.40.0060.00918.42
5.6.30.0070.00918.45
5.6.20.0090.00618.47
5.6.10.0070.00818.54
5.6.00.0050.00818.39

preferences:
50.22 ms | 2071 KiB | 5 Q