3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = ' background-image: url(../images/....png); height: 32px; width: 32px; margin: 0px; -webkit-transition: all ease 0.4s; -moz-transition: all ease 0.4s; -o-transition: all ease 0.4s; -ms-transition: all ease 0.4s; transition: all ease 0.4s; opacity:0.70; filter:alpha(opacity=70); /* For IE8 and earlier */ overflow: hidden; '; $string = preg_replace('#\/\*[\s\S]*\*\/#U', '', $string); $x = preg_split('#[:;]#', $string, -1, PREG_SPLIT_NO_EMPTY); $x = array_filter(array_map('trim', $x)); $odd = array_filter($x, function ($input) {return $input & 1;}); $even = array_filter($x, function ($input) {return !($input & 1);}); print_r($odd); print_r($even);

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.01218.77
8.3.50.0110.00521.34
8.3.40.0040.01119.05
8.3.30.0110.00418.84
8.3.20.0040.00420.31
8.3.10.0080.00022.10
8.3.00.0000.00822.32
8.2.180.0090.00616.98
8.2.170.0070.00722.96
8.2.160.0110.00319.24
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0100.00026.16
8.2.120.0070.00317.80
8.2.110.0000.01021.18
8.2.100.0090.00317.95
8.2.90.0060.00318.22
8.2.80.0040.00418.00
8.2.70.0060.00317.89
8.2.60.0000.00717.80
8.2.50.0000.00818.10
8.2.40.0000.00820.55
8.2.30.0070.00018.20
8.2.20.0000.00818.03
8.2.10.0040.00418.06
8.2.00.0000.00818.09
8.1.280.0070.01125.92
8.1.270.0080.00020.52
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00922.25
8.1.230.0090.00320.99
8.1.220.0050.00317.80
8.1.210.0000.00819.08
8.1.200.0000.00817.61
8.1.190.0040.00417.72
8.1.180.0040.00418.10
8.1.170.0040.00418.90
8.1.160.0070.00022.17
8.1.150.0000.01118.82
8.1.140.0040.00417.62
8.1.130.0030.00317.92
8.1.120.0000.00817.68
8.1.110.0040.00417.64
8.1.100.0000.00717.66
8.1.90.0040.00417.56
8.1.80.0000.00817.59
8.1.70.0050.00217.56
8.1.60.0030.00617.72
8.1.50.0030.00517.57
8.1.40.0070.00017.66
8.1.30.0050.00217.68
8.1.20.0050.00317.86
8.1.10.0030.00517.77
8.1.00.0000.00817.71
8.0.300.0040.00420.00
8.0.290.0080.00017.00
8.0.280.0000.00718.43
8.0.270.0000.00717.19
8.0.260.0030.00317.04
8.0.250.0030.00517.09
8.0.240.0030.00617.27
8.0.230.0030.00517.13
8.0.220.0000.00817.31
8.0.210.0070.00017.07
8.0.200.0000.00717.18
8.0.190.0040.00417.10
8.0.180.0050.00217.15
8.0.170.0040.00417.19
8.0.160.0000.00917.02
8.0.150.0000.00717.13
8.0.140.0030.00617.08
8.0.130.0060.00013.62
8.0.120.0030.00617.22
8.0.110.0000.00917.29
8.0.100.0000.00717.17
8.0.90.0030.00517.16
8.0.80.0090.00917.26
8.0.70.0000.00717.23
8.0.60.0070.00017.27
8.0.50.0050.00217.24
8.0.30.0120.00717.50
8.0.20.0050.01417.61
8.0.10.0030.00517.13
8.0.00.0180.00516.87
7.4.330.0000.00515.00
7.4.320.0000.00716.91
7.4.300.0030.00316.72
7.4.290.0040.00416.82
7.4.280.0040.00416.84
7.4.270.0070.00016.84
7.4.260.0060.00316.92
7.4.250.0000.00716.82
7.4.240.0030.00416.84
7.4.230.0000.00717.02
7.4.220.0150.00316.91
7.4.210.0090.00816.91
7.4.200.0040.00416.90
7.4.190.0040.00416.73
7.4.160.0090.00916.78
7.4.150.0110.00717.40
7.4.140.0110.01117.86
7.4.130.0120.00716.75
7.4.120.0130.00816.81
7.4.110.0070.01116.75
7.4.100.0110.00716.92
7.4.90.0120.00616.87
7.4.80.0200.00319.39
7.4.70.0090.01216.74
7.4.60.0120.00616.76
7.4.50.0020.00216.70
7.4.40.0060.01022.77
7.4.30.0100.00716.76
7.4.00.0110.00415.47
7.3.330.0000.00513.38
7.3.320.0060.00013.41
7.3.310.0000.00716.54
7.3.300.0000.00716.43
7.3.290.0110.00416.54
7.3.280.0050.01116.52
7.3.270.0130.01017.40
7.3.260.0100.00716.75
7.3.250.0110.00916.56
7.3.240.0120.00816.54
7.3.230.0140.01016.62
7.3.210.0070.01316.63
7.3.200.0070.01519.39
7.3.190.0030.01716.76
7.3.180.0070.01016.63
7.3.170.0100.00716.77
7.3.160.0160.00016.83
7.3.120.0000.01414.77
7.3.110.0070.01015.16
7.3.100.0000.01615.39
7.3.90.0070.00715.21
7.3.80.0030.01214.80
7.3.70.0030.00914.74
7.3.60.0140.00014.99
7.3.50.0120.00315.18
7.3.40.0070.01014.75
7.3.30.0100.00314.82
7.3.20.0090.00616.62
7.3.10.0000.00916.85
7.3.00.0040.01116.61
7.2.330.0120.00616.90
7.2.320.0090.00916.74
7.2.310.0070.01016.80
7.2.300.0070.01016.92
7.2.290.0040.01516.86
7.2.240.0070.00715.37
7.2.230.0000.01815.41
7.2.220.0030.01415.13
7.2.210.0040.01115.43
7.2.200.0060.00915.18
7.2.190.0000.01415.23
7.2.180.0000.01415.40
7.2.170.0070.00715.19
7.2.160.0070.01015.11
7.2.150.0120.00316.92
7.2.140.0000.01416.99
7.2.130.0110.00717.27
7.2.120.0100.00316.91
7.2.110.0030.01017.07
7.2.100.0100.00716.88
7.2.90.0120.00017.14
7.2.80.0110.00417.27
7.2.70.0000.01217.11
7.2.60.0030.01117.13
7.2.50.0070.01016.93
7.2.40.0110.00317.07
7.2.30.0030.01516.95
7.2.20.0000.01517.00
7.2.10.0100.00317.07
7.2.00.0070.01017.20
7.1.330.0070.00715.77
7.1.320.0090.00616.16
7.1.310.0040.00816.14
7.1.300.0030.01315.79
7.1.290.0060.01015.62
7.1.280.0070.00415.93
7.1.270.0060.00615.84
7.1.260.0110.00315.64
7.1.250.0000.01815.95
7.1.200.0040.00815.95
7.1.70.0000.00817.23
7.1.60.0070.01819.82
7.1.50.0210.00316.92
7.1.00.0070.05022.41
7.0.200.0030.00716.93
7.0.140.0000.07722.02
7.0.60.0100.05320.08
7.0.50.0070.05017.91
7.0.40.0100.05020.13
7.0.30.0270.07320.17
7.0.20.0200.06320.08
7.0.10.0230.07720.17
7.0.00.0100.07020.17
5.6.280.0030.07321.08
5.6.210.0030.06720.63
5.6.200.0070.06318.26
5.6.190.0100.08020.48
5.6.180.3100.04720.47
5.6.170.0270.05720.50
5.6.160.0100.06720.44
5.6.150.0070.04018.25
5.6.140.0070.07718.28
5.6.130.0030.08318.19
5.6.120.0130.07720.95
5.6.110.0070.08320.92
5.6.100.0170.07720.99
5.6.90.0070.08720.99
5.6.80.0100.06720.41
5.6.70.0230.06320.35
5.5.350.0270.07720.50
5.5.340.0100.07018.07
5.5.330.0100.08020.25
5.5.320.0270.07320.38
5.5.310.0330.06720.19
5.5.300.0070.06018.07
5.5.290.0000.04718.00
5.5.280.0070.08320.74
5.5.270.0100.08720.97
5.5.260.0070.03720.88
5.5.250.0070.08020.72
5.5.240.0030.05720.27
5.4.450.0870.06019.48
5.4.440.0870.07319.46
5.4.430.0130.05719.61
5.4.420.0730.05019.46
5.4.410.0730.06719.45
5.4.400.0570.06318.81
5.4.390.0470.05318.84
5.4.380.0370.04018.57
5.4.370.0200.04718.78
5.4.360.0130.05018.69
5.4.350.0100.04412.02
5.4.340.0130.03812.02
5.4.320.0070.03612.50
5.4.310.0100.04012.50
5.4.300.0070.03812.51
5.4.290.0080.04612.51
5.4.280.0050.04912.41
5.4.270.0050.04512.40
5.4.260.0080.04312.40
5.4.250.0170.05018.90
5.4.240.0130.05018.84
5.4.230.0070.05719.09
5.4.220.0200.05018.91
5.4.210.0130.06019.03
5.4.200.0130.05018.94
5.4.190.0100.05318.95
5.4.180.0130.05018.80
5.4.170.0030.08018.94
5.4.160.0330.04718.98
5.4.150.0030.06718.93
5.4.140.0030.05716.44
5.4.130.0130.04016.43
5.4.120.0030.05316.43
5.4.110.0130.04316.46
5.4.100.0170.05316.62
5.4.90.0130.04316.57
5.4.80.0070.05016.41
5.4.70.0100.04316.47
5.4.60.0070.05716.35
5.4.50.0170.04016.48
5.4.40.0070.06016.64
5.4.30.0100.06316.38
5.4.20.0200.03716.35
5.4.10.0030.05316.53
5.4.00.0130.04316.01
5.3.290.0080.05012.80
5.3.280.0070.05314.59
5.3.270.0170.05014.70
5.3.260.0070.07314.70
5.3.250.0100.06014.61
5.3.240.0070.06714.77
5.3.230.0100.06314.60
5.3.220.0070.05014.65
5.3.210.0000.05714.64
5.3.200.0100.04714.76
5.3.190.0070.05014.56
5.3.180.0070.05014.56
5.3.170.0000.05714.67
5.3.160.0130.04314.48
5.3.150.0070.06314.57
5.3.140.0130.04314.59
5.3.130.0100.04714.64
5.3.120.0200.05014.38
5.3.110.0100.05014.64
5.3.100.0130.04314.11
5.3.90.0070.05014.03
5.3.80.0170.05014.04
5.3.70.0030.05714.11
5.3.60.0170.04014.09
5.3.50.0200.03714.02
5.3.40.0070.05313.93
5.3.30.0070.04713.90
5.3.20.0000.06313.92
5.3.10.0130.04313.66
5.3.00.0070.05013.67
5.2.170.0000.06711.16
5.2.160.0000.05010.98
5.2.150.0070.04011.14
5.2.140.0030.04711.14
5.2.130.0000.04710.93
5.2.120.0100.04011.12
5.2.110.0070.04011.10
5.2.100.0030.04011.03
5.2.90.0070.04711.03
5.2.80.0100.04311.20
5.2.70.0000.05711.09
5.2.60.0030.04311.15
5.2.50.0000.04710.93
5.2.40.0100.03310.92
5.2.30.0030.04010.98
5.2.20.0100.03710.95
5.2.10.0170.02710.62
5.2.00.0070.03710.61
5.1.60.0070.03010.04
5.1.50.0000.03710.08
5.1.40.0030.03310.01
5.1.30.0030.03710.54
5.1.20.0070.03710.43
5.1.10.0130.02710.26
5.1.00.0030.0409.96
5.0.50.0030.0308.32
5.0.40.0100.0208.32
5.0.30.0070.0378.11
5.0.20.0000.0278.34
5.0.10.0000.0338.13
5.0.00.0070.0378.13
4.4.90.0030.0207.04
4.4.80.0030.0207.04
4.4.70.0030.0277.04
4.4.60.0070.0177.04
4.4.50.0000.0237.04
4.4.40.0030.0337.04
4.4.30.0100.0137.04
4.4.20.0000.0277.04
4.4.10.0070.0237.04
4.4.00.0030.0337.04
4.3.110.0070.0177.04
4.3.100.0030.0207.04
4.3.90.0030.0237.04
4.3.80.0000.0337.04
4.3.70.0000.0207.04
4.3.60.0000.0237.04
4.3.50.0000.0337.04
4.3.40.0030.0307.04
4.3.30.0130.0207.04
4.3.20.0000.0337.04
4.3.10.0000.0237.04
4.3.00.0070.0237.61

preferences:
45.15 ms | 400 KiB | 5 Q