3v4l.org

run code in 300+ PHP versions simultaneously
<?php function isset2($value) { if ($value == "" || $value == " " || !isset($value)) { return false; } else { return true; } } function getHexnums($value) { // Maybe this function needs a bit of explaination: // With this, you can say as $value "255,255,255", and it returns array("255", "255", "255"). # URL that generated this code: # http://txt2re.com/index-php.php3?s=255,255,255&1&2&3&-19&-18 $re1='(\\d+)'; # Integer Number 1 $re2='(,)'; # Any Single Character 1 $re3='(\\d+)'; # Integer Number 2 $re4='(,)'; # Any Single Character 2 $re5='(\\d+)'; # Integer Number 3 if ($c=preg_match_all ("/".$re1.$re2.$re3.$re4.$re5."/is", $value, $matches)) { $int1=$matches[1][0]; $c1=$matches[2][0]; $int2=$matches[3][0]; $c2=$matches[4][0]; $int3=$matches[5][0]; } return "#" . dechex($int1) . dechex($int2) . $dechex($int3); } if (file_exists('php://stdin')) { $skinini = file_get_contents('php://stdin'); $iniconv = parse_ini_string($skinini); $themexml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?> <hexis> <theme version=\"1.0\"> <meta> <name>" . ((isset2($iniconv["Name"])) ? $iniconv["Name"] : "none") . "</name> <creator>" . ((isset2($iniconv["Author"])) ? $iniconv["Author"] : "none") . " (autoconverted by osu2hexis.thehowl.it)</creator> </meta> <cursor rotate=" . ((isset2($iniconv["CursorRotate"])) ? $iniconv["CursorRotate"] : "1") . " expand=" . ((isset2($iniconv["CursorExpand"])) ? $iniconv["CursorExpand"] : "1") . " color=\"#FFFFFF\"> <trail length=\"0\" color=\"#FFFFFF\" opacity=\"0\" /> </cursor> <playfield> <set> <color color=" . ((isset2($iniconv["Combo1"])) ? getHexnums($iniconv["Combo1"]) : "#FFFFFF") . " /> <color color=" . ((isset2($iniconv["Combo2"])) ? getHexnums($iniconv["Combo2"]) : "#FFFFFF") . " /> <color color=" . ((isset2($iniconv["Combo3"])) ? getHexnums($iniconv["Combo3"]) : "#FFFFFF") . " /> <color color=" . ((isset2($iniconv["Combo4"])) ? getHexnums($iniconv["Combo4"]) : "#FFFFFF") . " /> </set> <slider> <border color=" . ((isset2($iniconv["SliderBorder"])) ? getHexnums($iniconv["SliderBorder"]) : "#FFFFFF") . " /> <track override=\"1\" color=\"#000000\" /> <track " . ((isset2($iniconv["SliderTrackOverride"])) ? "override=\"1\" color=\"" . $iniconv["Combo1"] . "\"" : "override=\"0\" color=\"#000000\"") . " /> </slider> <font> <combo prefix=\"combo\" kerning=\"0\" /> <score prefix=\"score\" kerning=\"0\" /> </font> </playfield> </theme> </hexis>"; echo $themexml; } ?>

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.0040.01118.18
8.3.50.0070.00922.88
8.3.40.0120.00318.62
8.3.30.0120.00318.92
8.3.20.0040.00420.20
8.3.10.0000.00823.66
8.3.00.0090.00019.13
8.2.180.0070.01118.16
8.2.170.0120.00322.96
8.2.160.0140.00020.28
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0080.00020.90
8.2.110.0060.00320.35
8.2.100.0060.00618.09
8.2.90.0040.00418.91
8.2.80.0030.00517.97
8.2.70.0030.00617.50
8.2.60.0070.00417.80
8.2.50.0040.00418.07
8.2.40.0050.00318.09
8.2.30.0030.00517.87
8.2.20.0040.00417.57
8.2.10.0000.00817.98
8.2.00.0020.00517.48
8.1.280.0140.00725.92
8.1.270.0040.00422.10
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0090.00023.95
8.1.230.0040.00719.11
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0090.00316.98
8.1.190.0030.00617.23
8.1.180.0000.00818.10
8.1.170.0060.00318.65
8.1.160.0070.00021.95
8.1.150.0030.00518.80
8.1.140.0040.00417.41
8.1.130.0000.00717.75
8.1.120.0000.00717.43
8.1.110.0000.00817.36
8.1.100.0030.00617.41
8.1.90.0040.00417.39
8.1.80.0040.00417.29
8.1.70.0000.00717.30
8.1.60.0000.00917.57
8.1.50.0040.00417.33
8.1.40.0000.00717.27
8.1.30.0000.00817.44
8.1.20.0000.00817.59
8.1.10.0000.00817.32
8.1.00.0060.00617.41
8.0.300.0040.00418.77
8.0.290.0070.00016.63
8.0.280.0030.00318.36
8.0.270.0070.00017.18
8.0.260.0070.00017.13
8.0.250.0030.00316.95
8.0.240.0080.00016.94
8.0.230.0000.00716.86
8.0.220.0070.00016.78
8.0.210.0070.00016.68
8.0.200.0000.00716.75
8.0.190.0030.00516.88
8.0.180.0080.00316.79
8.0.170.0040.00416.71
8.0.160.0020.00516.81
8.0.150.0050.00216.63
8.0.140.0040.00416.72
8.0.130.0030.00313.28
8.0.120.0030.00616.72
8.0.110.0050.00316.72
8.0.100.0050.00316.76
8.0.90.0000.00816.82
8.0.80.0030.01516.89
8.0.70.0040.00416.81
8.0.60.0040.00416.82
8.0.50.0050.00316.91
8.0.30.0110.00816.94
8.0.20.0150.01217.40
8.0.10.0060.00316.82
8.0.00.0100.00816.53
7.4.330.0020.00215.00
7.4.320.0030.00316.48
7.4.300.0030.00316.43
7.4.290.0030.00316.29
7.4.280.0040.00416.50
7.4.270.0050.00216.55
7.4.260.0080.00016.43
7.4.250.0080.00016.31
7.4.240.0020.00616.48
7.4.230.0000.00716.55
7.4.220.0230.00316.43
7.4.210.0040.01116.30
7.4.200.0040.00416.63
7.4.160.0050.01016.35
7.4.150.0090.00917.40
7.4.140.0120.00417.86
7.4.130.0150.00616.49
7.4.120.0080.01316.43
7.4.110.0000.01716.30
7.4.100.0070.01016.61
7.4.90.0120.00616.37
7.4.80.0180.00419.39
7.4.70.0140.00316.21
7.4.60.0120.00616.36
7.4.50.0080.00016.24
7.4.40.0090.00916.40
7.4.30.0090.00616.39
7.4.00.0090.00914.74
7.3.330.0000.00813.15
7.3.320.0050.00013.07
7.3.310.0070.00016.24
7.3.300.0000.00716.18
7.3.290.0100.00716.17
7.3.280.0110.00916.21
7.3.270.0090.00917.40
7.3.260.0060.01416.22
7.3.250.0060.01216.37
7.3.240.0090.00916.45
7.3.230.0060.01216.39
7.3.210.0090.00916.25
7.3.200.0100.00619.39
7.3.190.0100.00716.37
7.3.180.0090.00916.53
7.3.170.0040.01216.27
7.3.160.0040.01316.29
7.3.10.0040.00816.38
7.3.00.0030.00616.52
7.2.330.0130.00716.61
7.2.320.0120.00616.64
7.2.310.0170.00616.56
7.2.300.0080.00916.54
7.2.290.0090.00916.57
7.2.130.0000.01616.81
7.2.120.0040.00416.76
7.2.110.0070.00716.63
7.2.100.0080.00616.57
7.2.90.0060.01016.63
7.2.80.0060.00616.59
7.2.70.0100.00616.63
7.2.60.0070.01016.78
7.2.50.0090.00016.84
7.2.40.0030.00716.73
7.2.30.0070.00716.89
7.2.20.0100.00316.87
7.2.10.0070.00416.79
7.2.00.0050.00717.99
7.1.250.0100.00315.61
7.1.200.0150.00415.79
7.1.100.0000.01218.03
7.1.70.0080.00016.90
7.1.60.0090.00919.40
7.1.50.0140.00716.52
7.1.00.0100.07022.26
7.0.200.0000.00716.82
7.0.140.0100.06722.00
7.0.60.0030.06720.07
7.0.50.0000.04717.94
7.0.40.0030.05720.04
7.0.30.0470.04720.26
7.0.20.0370.08020.22
7.0.10.0030.04320.09
7.0.00.0000.06020.32
5.6.280.0070.07021.12
5.6.210.0070.08320.79
5.6.200.0100.07018.18
5.6.190.0130.07720.39
5.6.180.3670.03720.77
5.6.170.0700.02720.50
5.6.160.0100.06020.46
5.6.150.0030.04318.21
5.6.140.0100.07718.16
5.6.130.0070.08718.14
5.6.120.0070.08321.09
5.6.110.0170.08321.00
5.6.100.0100.07320.95
5.6.90.0100.04721.01
5.6.80.0100.07320.55
5.6.70.4070.04320.43
5.5.350.0200.08020.35
5.5.340.0070.05717.99
5.5.330.0070.05020.23
5.5.320.0430.07020.36
5.5.310.0170.08720.34
5.5.300.0100.07317.99
5.5.290.0070.03718.06
5.5.280.0070.04020.88
5.5.270.0100.08320.91
5.5.260.0100.07720.82
5.5.250.0170.07320.79
5.5.240.0130.07320.28
5.4.450.0470.05019.39
5.4.440.0270.04319.48
5.4.430.0300.04319.63
5.4.420.0300.03319.27
5.4.410.0200.04319.19
5.4.400.0300.03319.09
5.4.390.0270.03319.25
5.4.380.0270.06718.61
5.4.370.0230.05718.75
5.4.360.0370.07318.59
5.4.350.0430.06018.80
5.4.340.0400.04718.72
5.4.320.0080.03412.53
5.4.310.0080.03612.53
5.4.300.0090.03612.52
5.4.290.0060.03812.53
5.4.280.0070.03312.42
5.4.270.0020.03912.42
5.4.260.0040.04712.42
5.4.250.0080.03412.42
5.4.240.0050.03512.42
5.4.230.0040.03812.41
5.4.220.0040.03712.41
5.4.210.0060.03512.41
5.4.200.0030.03912.42
5.4.190.0060.03412.41
5.4.180.0100.03912.41
5.4.170.0050.03712.42
5.4.160.0060.03512.41
5.4.150.0050.03612.41
5.4.140.0060.03912.09
5.4.130.0060.03412.08
5.4.120.0030.03712.04
5.4.110.0020.04012.03
5.4.100.0020.03812.04
5.4.90.0060.03712.03
5.4.80.0090.03212.04
5.4.70.0060.03512.02
5.4.60.0080.03512.03
5.4.50.0040.03712.03
5.4.40.0080.03212.02
5.4.30.0070.03312.02
5.4.20.0060.03412.02
5.4.10.0060.03412.02
5.4.00.0060.03511.50
5.3.290.0050.04012.80
5.3.280.0040.04012.70
5.3.270.0080.04312.72
5.3.260.0090.05612.72
5.3.250.0080.04912.72
5.3.240.0090.03912.72
5.3.230.0100.03912.71
5.3.220.0060.03812.68
5.3.210.0060.04412.68
5.3.200.0060.04912.68
5.3.190.0070.03712.68
5.3.180.0040.03912.68
5.3.170.0100.03412.67
5.3.160.0030.03912.68
5.3.150.0090.03412.67
5.3.140.0090.03312.66
5.3.130.0070.03812.66
5.3.120.0130.03312.66
5.3.110.0070.03912.66
5.3.100.0070.03612.14
5.3.90.0060.03712.13
5.3.80.0080.03412.11
5.3.70.0100.04512.12
5.3.60.0120.04212.10
5.3.50.0110.03312.05
5.3.40.0090.04412.05
5.3.30.0100.03312.00
5.3.20.0050.03911.79
5.3.10.0050.03611.75
5.3.00.0090.03311.74
5.2.170.0050.0329.24
5.2.160.0080.0349.25
5.2.150.0060.0399.25
5.2.140.0030.0329.24
5.2.130.0100.0259.20
5.2.120.0030.0309.20
5.2.110.0040.0309.21
5.2.100.0060.0309.21
5.2.90.0060.0289.20
5.2.80.0050.0339.20
5.2.70.0060.0289.20
5.2.60.0020.0329.16
5.2.50.0070.0279.12
5.2.40.0040.0299.10
5.2.30.0050.0299.07
5.2.20.0040.0299.06
5.2.10.0060.0278.97
5.2.00.0060.0278.83
5.1.60.0040.0238.11
5.1.50.0060.0228.11
5.1.40.0040.0248.09
5.1.30.0060.0248.44
5.1.20.0050.0268.46
5.1.10.0060.0248.19
5.1.00.0040.0268.20
5.0.50.0020.0226.68
5.0.40.0050.0186.54
5.0.30.0030.0316.35
5.0.20.0030.0196.31
5.0.10.0030.0206.30
5.0.00.0030.0316.28
4.4.90.0030.0154.78
4.4.80.0010.0174.76
4.4.70.0050.0134.75
4.4.60.0010.0174.75
4.4.50.0060.0124.77
4.4.40.0010.0264.71
4.4.30.0020.0164.76
4.4.20.0010.0174.84
4.4.10.0020.0164.85
4.4.00.0020.0254.76
4.3.110.0020.0164.67
4.3.100.0030.0154.66
4.3.90.0050.0134.63
4.3.80.0040.0264.58
4.3.70.0010.0164.63
4.3.60.0040.0134.63
4.3.50.0010.0184.62
4.3.40.0050.0224.54
4.3.30.0030.0153.34
4.3.20.0020.0163.32
4.3.10.0000.0183.27
4.3.00.0000.01715.66

preferences:
44.89 ms | 401 KiB | 5 Q