3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xsl = <<<EOB <?xml version="1.0" encoding="UTF-8"?> <html xmlns:php="http://php.net/xsl" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xsl:version="1.0"> <body style="font-family:Arial;font-size:12pt;background-color:#EEEEEE"> <xsl:for-each select="beers/beer"> <div style="background-color:teal;color:white;padding:4px"> <span style="font-weight:bold"> <xsl:value-of select="name"/> </span> <xsl:value-of select="price"/> </div> <div style="margin-left:20px;margin-bottom:1em;font-size:10pt"> <p> <xsl:value-of select="php:functionString('glob', '*.*')"/> <span style="font-style:italic"> ( <xsl:value-of select="prct"/> %) </span> </p> </div> </xsl:for-each> </body> </html> EOB; $xmldoc = DOMDocument::loadXML("http://challenge01.root-me.org/web-serveur/ch50/beers.xml"); $xsldoc = DOMDocument::loadXML($xsl); $proc = new XSLTProcessor(); $proc->registerPHPFunctions(); $proc->importStyleSheet($xsldoc); echo $proc->transformToXML($xmldoc); foreach (glob("*") as $filename) { echo "$filename occupe " . filesize($filename) . "\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.3.70.0110.00416.75
8.3.60.0170.00716.75
8.3.50.0080.00817.78
8.3.40.0070.00718.83
8.3.30.0070.00718.67
8.3.20.0050.00320.29
8.3.10.0080.00021.96
8.3.00.0050.00323.59
8.2.190.0170.00316.88
8.2.180.0110.00418.67
8.2.170.0140.00022.96
8.2.160.0070.00719.46
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0040.00421.02
8.2.110.0110.00020.98
8.2.100.0090.00317.78
8.2.90.0060.00322.28
8.2.80.0080.00020.53
8.2.70.0000.01017.36
8.2.60.0060.00317.68
8.2.50.0000.00818.10
8.2.40.0040.00420.59
8.2.30.0000.00819.04
8.2.20.0040.00417.96
8.2.10.0040.00418.13
8.2.00.0000.00718.07
8.1.280.0100.00725.92
8.1.270.0000.00823.82
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0040.00422.05
8.1.230.0090.00320.89
8.1.220.0060.00317.74
8.1.210.0040.00418.85
8.1.200.0050.00517.22
8.1.190.0050.00317.22
8.1.180.0080.00018.10
8.1.170.0000.00818.59
8.1.160.0000.00718.87
8.1.150.0040.00420.15
8.1.140.0070.00019.55
8.1.130.0000.00717.40
8.1.120.0040.00417.44
8.1.110.0040.00417.32
8.1.100.0080.00017.47
8.1.90.0040.00417.44
8.1.80.0040.00417.38
8.1.70.0030.00317.47
8.1.60.0030.00517.59
8.1.50.0000.00817.55
8.1.40.0030.00617.56
8.1.30.0050.00217.58
8.1.20.0050.00317.71
8.1.10.0040.00417.60
8.1.00.0000.00817.50
8.0.300.0030.00620.14
8.0.290.0000.00716.75
8.0.280.0050.00318.41
8.0.270.0030.00517.16
8.0.260.0080.00016.85
8.0.250.0030.00317.02
8.0.240.0070.00016.87
8.0.230.0060.00316.92
8.0.220.0030.00316.79
8.0.210.0030.00316.88
8.0.200.0030.00316.95
8.0.190.0000.00817.05
8.0.180.0050.00216.94
8.0.170.0040.00416.84
8.0.160.0070.00016.84
8.0.150.0050.00316.93
8.0.140.0040.00416.90
8.0.130.0030.00313.29
8.0.120.0050.00214.44
8.0.110.0060.00314.52
8.0.100.0060.00414.42
8.0.90.0040.00514.43
8.0.80.0040.00814.49
8.0.70.0070.00214.46
8.0.60.0090.00214.48
8.0.50.0080.00314.53
8.0.30.0090.00715.47
8.0.20.0100.00616.05
8.0.10.0070.00414.67
8.0.00.0060.00614.49
7.4.330.0000.00515.55
7.4.320.0000.00816.70
7.4.300.0070.00016.85
7.4.290.0090.00416.60
7.4.280.0080.00016.64
7.4.270.0070.00016.73
7.4.260.0030.00316.74
7.4.250.0090.00314.57
7.4.240.0040.00514.49
7.4.230.0050.00614.63
7.4.220.0090.00614.62
7.4.210.0070.00714.56
7.4.200.0050.00614.53
7.4.190.0130.00013.64
7.4.180.0080.00513.59
7.4.160.0070.00715.19
7.4.150.0080.00614.84
7.4.140.0100.00716.39
7.4.130.0120.00614.57
7.4.120.0110.00515.67
7.4.110.0060.01014.56
7.4.100.0100.00514.58
7.4.90.0110.00314.52
7.4.80.0110.00415.43
7.4.70.0120.00415.02
7.4.60.0090.00615.10
7.4.50.0090.00515.08
7.4.40.0090.00614.48
7.4.30.0090.00714.56
7.4.20.0100.00514.45
7.4.10.0110.00314.48
7.4.00.0100.00514.66
7.3.330.0030.00513.51
7.3.320.0030.00313.44
7.3.310.0070.00414.30
7.3.300.0080.00314.36
7.3.290.0090.00615.26
7.3.280.0060.00915.57
7.3.270.0130.00314.67
7.3.260.0110.00715.06
7.3.250.0080.01115.17
7.3.240.0110.00615.31
7.3.230.0120.00214.48
7.3.220.0070.00613.26
7.3.210.0100.00514.49
7.3.200.0070.00914.46
7.3.190.0080.00714.89
7.3.180.0100.00714.31
7.3.170.0130.00514.32
7.3.160.0080.00814.34
7.3.150.0090.00814.35
7.3.140.0120.00314.50
7.3.130.0090.00714.35
7.3.120.0100.00514.26
7.3.110.0100.00614.26
7.3.100.0070.01114.30
7.3.90.0130.00414.56
7.3.80.0090.00614.48
7.3.70.0070.00714.55
7.3.60.0090.00614.72
7.3.50.0080.00914.72
7.3.40.0100.00414.66
7.3.30.0090.00714.73
7.3.20.0090.00615.77
7.3.10.0130.00615.66
7.3.00.0110.00715.60
7.2.340.0090.00513.40
7.2.330.0090.00714.41
7.2.320.0110.00514.44
7.2.310.0130.00414.30
7.2.300.0110.00614.44
7.2.290.0080.00914.39
7.2.280.0080.00914.42
7.2.270.0100.00514.34
7.2.260.0130.00414.55
7.2.250.0080.00814.38
7.2.240.0140.00214.39
7.2.230.0090.00814.61
7.2.220.0080.00914.43
7.2.210.0070.00914.54
7.2.200.0090.00914.74
7.2.190.0100.00614.81
7.2.180.0120.00614.78
7.2.170.0080.00714.84
7.2.160.0070.01014.77
7.2.150.0270.00715.88
7.2.140.0100.00815.94
7.2.130.0110.00615.96
7.2.120.0140.00515.74
7.2.110.0130.00815.80
7.2.100.0100.00715.66
7.2.90.0160.00815.70
7.2.80.0110.00815.88
7.2.70.0120.00715.82
7.2.60.0350.00615.95
7.2.50.0160.00515.75
7.2.40.0190.00916.04
7.2.30.0270.01016.25
7.2.20.0190.00816.21
7.2.10.0210.00716.20
7.2.00.0170.00816.56
7.1.330.0150.00814.71
7.1.320.0130.00714.65
7.1.310.0150.00514.60
7.1.300.0150.00914.98
7.1.290.0110.00514.92
7.1.280.0120.00714.79
7.1.270.0120.00414.78
7.1.260.0110.00614.86
7.1.250.0100.00814.74
7.1.240.0150.00614.68
7.1.230.0130.00814.67
7.1.220.0120.00714.60
7.1.210.0150.00714.53
7.1.200.0130.00714.77
7.1.190.0140.00714.54
7.1.180.0140.00814.58
7.1.170.0190.00514.68
7.1.160.0230.00714.82
7.1.150.0220.00715.03
7.1.140.0290.00715.05
7.1.130.0200.01015.07
7.1.120.0180.00715.38
7.1.110.0250.00915.19
7.1.100.0230.00715.19
7.1.90.0170.00815.21
7.1.80.0260.00715.22
7.1.70.0190.00915.10
7.1.60.0230.00919.89
7.1.50.0280.00819.85
7.1.40.0200.01119.74
7.1.30.0260.00819.72
7.1.20.0260.00919.66
7.1.10.0190.00914.84
7.1.00.0200.00514.88
7.0.330.0120.00614.50
7.0.320.0130.00614.36
7.0.310.0160.00714.41
7.0.300.0170.00714.35
7.0.290.0270.00714.61
7.0.280.0160.00814.40
7.0.270.0200.00814.82
7.0.260.0200.01115.19
7.0.250.0210.00915.03
7.0.240.0230.00715.08
7.0.230.0220.00815.03
7.0.220.0210.00714.98
7.0.210.0220.00914.77
7.0.200.0230.00714.81
7.0.190.0270.00814.79
7.0.180.0260.00814.64
7.0.170.0180.01014.66
7.0.160.0190.00914.64
7.0.150.0290.00814.61
7.0.140.0210.00514.63
7.0.130.0250.00714.72
7.0.120.0190.00614.75
7.0.110.0210.00614.61
7.0.100.0180.00814.71
7.0.90.0220.00914.71
7.0.80.0260.00714.68
7.0.70.0210.00814.66
7.0.60.0210.00814.62
7.0.50.0200.00914.72
7.0.40.0190.00814.74
7.0.30.0470.00714.66
7.0.20.0200.00714.70
7.0.10.0210.00714.69
7.0.00.0190.00714.63
5.6.400.0130.00614.05
5.6.390.0110.00714.09
5.6.380.0100.00814.11
5.6.370.0120.00713.94
5.6.360.0120.00913.94
5.6.350.0090.01013.83
5.6.340.0110.01013.72
5.6.330.0080.01213.93
5.6.320.0170.00713.87
5.6.310.0180.00413.70
5.6.300.0170.00413.70
5.6.290.0150.00713.85
5.6.280.0140.00514.01
5.6.270.0160.00413.95
5.6.260.0150.00513.84
5.6.250.0150.00413.72
5.6.240.0100.00913.67
5.6.230.0150.00513.89
5.6.220.0160.00513.98
5.6.210.0130.00613.91
5.6.200.0170.00313.88
5.6.190.0160.00413.97
5.6.180.0160.00714.06
5.6.170.0160.00614.02
5.6.160.0150.00614.14
5.6.150.0140.00613.83
5.6.140.0150.00513.95
5.6.130.0140.00613.86
5.6.120.0160.00313.90
5.6.110.0130.00714.01
5.6.100.0130.00813.84
5.6.90.0120.00913.76
5.6.80.0130.00613.94
5.6.70.0130.00713.86
5.6.60.0190.00613.76
5.6.50.0110.00913.87
5.6.40.0140.00613.88
5.6.30.0090.00813.76
5.6.20.0100.00413.85
5.6.10.0140.00613.83
5.6.00.0140.01013.92
5.5.380.0150.00513.90
5.5.370.0140.00613.96
5.5.360.0110.00813.82
5.5.350.0200.00213.85
5.5.340.0130.00913.81
5.5.330.0160.00413.72
5.5.320.0170.00713.79
5.5.310.0150.00613.72
5.5.300.0210.00313.87
5.5.290.0140.00713.91
5.5.280.0150.00413.77
5.5.270.0130.00713.69
5.5.260.0130.00813.69
5.5.250.0140.00513.87
5.5.240.0140.00613.84
5.5.230.0110.00913.78
5.5.220.0150.00413.88
5.5.210.0120.00613.89
5.5.200.0140.00613.59
5.5.190.0110.00513.74
5.5.180.0090.00313.68
5.5.170.0150.00613.79
5.5.160.0160.00813.61
5.5.150.0120.00913.69
5.5.140.0120.00413.63
5.5.130.0180.00413.70
5.5.120.0160.00413.45
5.5.110.0150.00713.69
5.5.100.0150.00713.81
5.5.90.0200.00413.87
5.5.80.0120.00513.75
5.5.70.0140.00613.80
5.5.60.0140.00713.77
5.5.50.0120.00813.64
5.5.40.0140.00513.74
5.5.30.0100.00513.65
5.5.20.0110.00713.69
5.5.10.0120.00713.56
5.5.00.0180.00613.85
5.4.450.0130.00513.25
5.4.440.0130.00413.27
5.4.430.0110.00613.32
5.4.420.0100.00713.36
5.4.410.0110.00513.43
5.4.400.0130.00513.38
5.4.390.0140.00513.35
5.4.380.0120.00713.24
5.4.370.0120.00613.29
5.4.360.0130.00313.31
5.4.350.0120.00513.30
5.4.340.0100.00713.25
5.4.330.0100.00713.40
5.4.320.0110.00713.36
5.4.310.0090.00313.42
5.4.300.0150.00313.24
5.4.290.0130.00513.32
5.4.280.0110.00613.37
5.4.270.0120.00513.33
5.4.260.0100.00513.33
5.4.250.0130.00313.29
5.4.240.0090.00813.30
5.4.230.0140.00413.27
5.4.220.0080.00913.16
5.4.210.0120.00513.24
5.4.200.0100.00713.18
5.4.190.0170.00113.23
5.4.180.0120.00513.15
5.4.170.0130.00513.14
5.4.160.0140.00213.25
5.4.150.0150.00213.22
5.4.140.0130.00313.29
5.4.130.0130.00313.31
5.4.120.0150.00213.25
5.4.110.0120.00413.23
5.4.100.0090.00813.34
5.4.90.0090.00713.31
5.4.80.0150.00313.41
5.4.70.0130.00413.52
5.4.60.0100.00613.42
5.4.50.0100.00613.34
5.4.40.0090.00713.40
5.4.30.0120.00313.50
5.4.20.0110.00613.43
5.4.10.0060.01013.38
5.4.00.0110.00613.10
5.3.290.0110.00713.79
5.3.280.0070.00813.62
5.3.270.0080.00913.56
5.3.260.0060.01113.79
5.3.250.0130.00513.71
5.3.240.0120.00713.63
5.3.230.0120.00613.62
5.3.220.0060.01013.62
5.3.210.0120.00713.74
5.3.200.0110.00513.64
5.3.190.0150.00613.57
5.3.180.0120.00513.70
5.3.170.0100.00613.70
5.3.160.0100.00813.74
5.3.150.0130.00313.67
5.3.140.0100.00613.69
5.3.130.0070.01013.60
5.3.120.0110.00713.58
5.3.110.0110.00613.63
5.3.100.0120.00613.52
5.3.90.0120.00513.68
5.3.80.0110.00613.66
5.3.70.0110.00513.57
5.3.60.0120.00313.73
5.3.50.0110.00713.70
5.3.40.0100.00713.50
5.3.30.0090.00613.68
5.3.20.0090.00813.55
5.3.10.0050.01213.46
5.3.00.0150.00213.54
5.2.170.0080.00612.96
5.2.160.0070.00912.90
5.2.150.0090.00412.99
5.2.140.0090.00512.93
5.2.130.0090.00513.00
5.2.120.0050.01013.06
5.2.110.0070.00612.94
5.2.100.0070.00813.09
5.2.90.0110.00313.06
5.2.80.0130.00212.97
5.2.70.0070.00713.01
5.2.60.0120.00212.87
5.2.50.0090.00512.92
5.2.40.0070.00613.01
5.2.30.0100.00312.92
5.2.20.0090.00412.90
5.2.10.0110.00212.69
5.2.00.0060.00812.81
5.1.60.0090.00512.32
5.1.50.0090.00412.43
5.1.40.0090.00212.33
5.1.30.0070.00712.54
5.1.20.0080.00412.40
5.1.10.0090.00312.37
5.1.00.0070.00612.29
5.0.50.0070.00411.84
5.0.40.0070.00411.84
5.0.30.0110.00311.84
5.0.20.0050.00511.84
5.0.10.0050.00511.84
5.0.00.0060.00411.84
4.4.90.0020.00411.84
4.4.80.0030.00411.84
4.4.70.0060.00111.84
4.4.60.0050.00111.84
4.4.50.0010.00511.84
4.4.40.0010.00511.84
4.4.30.0040.00311.84
4.4.20.0040.00211.84
4.4.10.0030.00411.84
4.4.00.0020.00411.84
4.3.110.0040.00211.84
4.3.100.0020.00311.84
4.3.90.0050.00211.84
4.3.80.0050.00111.84
4.3.70.0030.00311.84
4.3.60.0040.00211.84
4.3.50.0030.00411.84
4.3.40.0050.00211.84
4.3.30.0040.00211.84
4.3.20.0040.00211.84
4.3.10.0020.00411.84
4.3.00.0020.00211.84

preferences:
75.58 ms | 401 KiB | 5 Q