3v4l.org

run code in 300+ PHP versions simultaneously
<?php class PHPSS { public static function compile($phpss,$pretty=false){ $compiled = ""; foreach($phpss as $condition => $rules) { $compiled.=$pretty?"$condition {\n":"$condition{"; foreach ($rules as $property => $value) { $compiled.=$pretty?"$property: $value;\n":"$property:$value;"; } $compiled.=$pretty?"}\n":"}"; } return $compiled; } } $phpss = [ "li > span" => [ "color" => "red" ] ]; echo PHPSS::compile($phpss,true);

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.40.0130.00318.65
8.3.30.0000.01418.71
8.3.20.0060.00318.73
8.3.10.0030.00620.53
8.3.00.0040.00719.15
8.2.170.0040.01122.96
8.2.160.0060.00918.78
8.2.150.0000.00824.18
8.2.140.0000.00724.66
8.2.130.0030.00526.16
8.2.120.0000.00721.04
8.2.110.0030.00619.38
8.2.100.0060.00617.91
8.2.90.0050.00219.25
8.2.80.0000.00719.39
8.2.70.0030.00517.63
8.2.60.0080.00017.93
8.2.50.0000.00819.35
8.2.40.0040.00418.34
8.2.30.0030.00518.03
8.2.20.0110.00017.79
8.2.10.0000.00817.76
8.2.00.0040.00417.80
8.1.270.0070.00323.99
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0080.00321.91
8.1.230.0060.00620.95
8.1.220.0030.00618.77
8.1.210.0040.00418.97
8.1.200.0070.00317.36
8.1.190.0080.00017.39
8.1.180.0080.00018.10
8.1.170.0040.00418.95
8.1.160.0040.00418.85
8.1.150.0040.00418.61
8.1.140.0040.00417.46
8.1.130.0070.00017.73
8.1.120.0000.00717.45
8.1.110.0000.00717.48
8.1.100.0000.00717.35
8.1.90.0040.00417.36
8.1.80.0040.00417.42
8.1.70.0030.00317.39
8.1.60.0000.00717.54
8.1.50.0040.00417.39
8.1.40.0000.00717.49
8.1.30.0000.00817.66
8.1.20.0000.00817.50
8.1.10.0050.00217.59
8.1.00.0040.00417.40
8.0.300.0000.00919.86
8.0.290.0040.00416.75
8.0.280.0040.00418.45
8.0.270.0040.00417.34
8.0.260.0060.00016.84
8.0.250.0040.00416.87
8.0.240.0050.00316.97
8.0.230.0070.00016.95
8.0.220.0000.00716.88
8.0.210.0070.00016.91
8.0.200.0030.00616.90
8.0.190.0000.00816.98
8.0.180.0070.00016.89
8.0.170.0030.00616.75
8.0.160.0030.00316.96
8.0.150.0080.00016.85
8.0.140.0040.00416.94
8.0.130.0030.00313.33
8.0.120.0050.00316.81
8.0.110.0000.00716.96
8.0.100.0000.00716.78
8.0.90.0000.00716.86
8.0.80.0090.00616.88
8.0.70.0040.00416.89
8.0.60.0080.00016.79
8.0.50.0000.00716.77
8.0.30.0110.00817.31
8.0.20.0200.00317.15
8.0.10.0040.00417.00
8.0.00.0150.00716.85
7.4.330.0020.00213.05
7.4.320.0030.00316.59
7.4.300.0060.00016.52
7.4.290.0000.00716.61
7.4.280.0040.00416.62
7.4.270.0000.00716.60
7.4.260.0030.00313.30
7.4.250.0040.00416.55
7.4.240.0030.00516.54
7.4.230.0070.00016.63
7.4.220.0150.01616.62
7.4.210.0100.00316.65
7.4.200.0030.00316.36
7.4.190.0080.00016.46
7.4.160.0040.01116.39
7.4.150.0060.01316.52
7.4.140.0120.01216.47
7.4.130.0070.01016.60
7.4.120.0070.01016.57
7.4.110.0030.01916.48
7.4.100.0040.01316.46
7.4.90.0090.01516.60
7.4.80.0170.00319.39
7.4.70.0110.01016.51
7.4.60.0160.00016.50
7.4.50.0070.00016.52
7.4.40.0090.00416.48
7.4.30.0100.00616.40
7.4.00.0060.00315.00
7.3.330.0060.00013.37
7.3.320.0080.00013.42
7.3.310.0000.00816.27
7.3.300.0030.00316.32
7.3.290.0090.00516.37
7.3.280.0040.01316.39
7.3.270.0100.00716.48
7.3.260.0070.01016.48
7.3.250.0090.01216.49
7.3.240.0110.00616.58
7.3.230.0070.01016.57
7.3.210.0090.01016.51
7.3.200.0110.00716.38
7.3.190.0190.01016.36
7.3.180.0110.00516.47
7.3.170.0100.00716.38
7.3.160.0070.01416.37
7.3.120.0060.00914.57
7.2.330.0040.01316.66
7.2.320.0040.01416.42
7.2.310.0190.00316.40
7.2.300.0190.00016.36
7.2.290.0120.00316.64
7.2.00.0000.01319.25
7.1.100.0030.01018.29
7.1.70.0150.00817.00
7.1.60.0100.01419.30
7.1.50.0120.00916.91
7.1.00.0030.07722.44
7.0.200.0000.00716.79
7.0.140.0130.06321.96
7.0.120.0030.07022.04
7.0.60.0200.07719.91
7.0.50.0130.03317.79
7.0.40.0100.07720.11
7.0.30.0530.07020.13
7.0.20.0330.07720.33
7.0.10.0330.07320.16
7.0.00.0100.08320.41
5.6.280.0000.07721.12
5.6.210.0100.05720.70
5.6.200.0070.04318.20
5.6.190.0070.05720.35
5.6.180.0270.08320.46
5.6.170.0400.04720.71
5.6.160.0070.05320.54
5.6.150.0100.07718.16
5.6.140.0100.03718.17
5.6.130.0070.08018.18
5.6.120.0070.05720.98
5.6.110.0000.05020.99
5.6.100.0070.07720.95
5.6.90.0170.07720.97
5.6.80.0100.06020.38
5.6.70.0270.03320.40
5.5.350.0330.03320.36
5.5.340.0070.03717.96
5.5.330.0030.05020.46
5.5.320.0030.05320.40
5.5.310.0200.03320.36
5.5.300.0030.06718.01
5.5.290.0000.04317.99
5.5.280.0070.05020.67
5.5.270.0030.05720.65
5.5.260.0100.05020.87
5.5.250.0130.08020.62
5.5.240.0100.06020.19
5.4.450.0070.04719.34
5.4.440.0030.04319.47
5.4.430.0000.04719.32
5.4.420.0030.06019.46
5.4.410.0070.04319.34
5.4.400.0030.06719.20
5.4.390.0100.07719.14
5.4.380.0070.05019.16
5.4.370.0100.05019.14
5.4.360.0000.08719.10
5.4.350.0170.06318.96
5.4.340.0070.04719.14
5.4.320.0130.03719.25
5.4.310.0000.04719.08
5.4.300.0030.07019.20
5.4.290.0000.05719.12
5.4.280.0200.06319.23
5.4.270.0170.06718.97
5.4.260.0030.07019.24
5.4.250.0070.07318.85
5.4.240.0100.07319.20
5.4.230.0030.08018.84
5.4.220.0100.07319.23
5.4.210.0070.07318.88
5.4.200.0070.07719.13
5.4.190.0100.07718.86
5.4.180.0030.04019.25
5.4.170.0070.07018.99
5.4.160.0130.06018.85
5.4.150.0100.03719.22
5.4.140.0030.04016.44
5.4.130.0030.04316.26
5.4.120.0100.04716.33
5.4.110.0130.06716.30
5.4.100.0230.04316.37
5.4.90.0070.07316.39
5.4.80.0030.04016.41
5.4.70.0170.06016.28
5.4.60.0030.07016.46
5.4.50.0070.04716.33
5.4.40.0100.04316.50
5.4.30.0100.05016.46
5.4.20.0000.06716.44
5.4.10.0100.04716.38
5.4.00.0070.07315.93
5.3.290.0070.07714.66
5.3.280.0070.08014.59
5.3.270.0070.08014.75
5.3.260.0100.04314.77
5.3.250.0130.07014.77
5.3.240.0000.04014.67
5.3.230.0070.04714.61
5.3.220.0030.04014.59
5.3.210.0100.04014.62
5.3.200.0030.04314.59
5.3.190.0100.03314.56
5.3.180.0070.06314.55
5.3.170.0000.06014.72
5.3.160.0070.05314.62
5.3.150.0100.07714.57
5.3.140.0070.04714.55
5.3.130.0000.04314.60
5.3.120.0030.06314.55
5.3.110.0030.05314.69
5.3.100.0130.07014.05
5.3.90.0070.07314.08
5.3.80.0130.07014.02
5.3.70.0070.06314.04
5.3.60.0100.06314.06
5.3.50.0070.07714.02
5.3.40.0030.07713.96
5.3.30.0100.06013.92
5.3.20.0170.06713.75
5.3.10.0130.02713.66
5.3.00.0030.06713.68
5.2.170.0100.02311.29
5.2.160.0070.05311.16
5.2.150.0100.06011.20
5.2.140.0000.04011.14
5.2.130.0000.05311.25
5.2.120.0030.04011.10
5.2.110.0100.05711.26
5.2.100.0030.03311.06
5.2.90.0000.03711.07
5.2.80.0070.07011.06
5.2.70.0070.05310.98
5.2.60.0100.03310.97
5.2.50.0070.04711.02
5.2.40.0030.03011.00
5.2.30.0030.05711.02
5.2.20.0030.06311.13
5.2.10.0030.03710.90
5.2.00.0070.04310.73
5.1.60.0000.04310.06
5.1.50.0070.0409.97
5.1.40.0100.0479.95
5.1.30.0000.04010.34
5.1.20.0070.03010.32
5.1.10.0030.05710.13
5.1.00.0100.02010.08
5.0.50.0070.0338.47
5.0.40.0030.0408.40
5.0.30.0030.0438.22
5.0.20.0000.0478.37
5.0.10.0030.0308.18
5.0.00.0000.0608.23
4.4.90.0100.0177.94
4.4.80.0030.0137.94
4.4.70.0030.0177.94
4.4.60.0000.0377.94
4.4.50.0030.0377.94
4.4.40.0000.0577.94
4.4.30.0000.0237.94
4.4.20.0030.0237.94
4.4.10.0000.0407.94
4.4.00.0030.0507.94
4.3.110.0000.0407.94
4.3.100.0030.0237.94
4.3.90.0070.0307.94
4.3.80.0030.0537.94
4.3.70.0000.0177.94
4.3.60.0030.0137.94
4.3.50.0070.0307.94
4.3.40.0030.0477.94
4.3.30.0030.0277.94
4.3.20.0000.0237.94
4.3.10.0000.0177.94
4.3.00.0030.0177.94

preferences:
45.73 ms | 400 KiB | 5 Q