3v4l.org

run code in 300+ PHP versions simultaneously
<?php<!DOCTYPE html> <html> <head> <link type='text/css' rel='stylesheet' href='style.css'/> <title>FIGURES!</title> </head> <body> <img src="http://i1061.photobucket.com/albums/t480/ericqweinstein/php-logo_zps408c82d7.png"/> <div class="header"><h1> <?php $welcome = "YOU WILL LEARN FIGURES!"; echo $welcome; ?> </h1></div> <p><strong>Generate a list:</strong> <?php for ($number = 0; $number <= 20; $number++) { if ($number <= 19) { echo $number . ", "; } else { echo $number . "!"; } }; ?> </p> <p><strong></strong> <?php $things = array( ); foreach ($things as $thing) { echo "<li>$thing</li>"; } unset($thing); ?> </p> <p><strong> <strong></p> <p> <?php $words = array( ); shuffle($words); foreach ($words as $word) { echo $word; }; unset($word); ?> </p> </body> </html>

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)
7.4.10.0060.01214.82
7.4.00.0060.01015.00
7.3.130.0040.00714.84
7.3.120.0060.01114.85
7.3.110.0080.00814.92
7.3.100.0100.00714.69
7.3.90.0050.00914.68
7.3.80.0030.01014.94
7.3.70.0080.00614.95
7.3.60.0090.00614.90
7.3.50.0090.00614.85
7.3.40.0070.00714.82
7.3.30.0060.00514.71
7.3.20.0020.01116.70
7.3.10.0050.00816.58
7.3.00.0090.00616.47
7.2.260.0090.00915.05
7.2.250.0100.00814.98
7.2.240.0070.01015.22
7.2.230.0040.01115.03
7.2.220.0050.01015.25
7.2.210.0020.01014.82
7.2.200.0050.00715.11
7.2.190.0030.01014.96
7.2.180.0050.00815.03
7.2.170.0040.01015.03
7.2.160.0040.00914.94
7.2.150.0030.00816.97
7.2.140.0050.00916.89
7.2.130.0020.01216.84
7.2.120.0040.01216.79
7.2.110.0060.00716.90
7.2.100.0050.00616.89
7.2.90.0060.00816.93
7.2.80.0070.00816.72
7.2.70.0090.00516.94
7.2.60.0060.00716.92
7.2.50.0070.00717.05
7.2.40.0070.00616.96
7.2.30.0060.00717.00
7.2.20.0050.00816.87
7.2.10.0080.00516.83
7.2.00.0060.00716.94
7.1.330.0050.00815.73
7.1.320.0080.00815.64
7.1.310.0040.01015.95
7.1.300.0080.00515.69
7.1.290.0060.00615.79
7.1.280.0040.00615.71
7.1.270.0070.00515.65
7.1.260.0070.00415.66
7.1.250.0040.01015.79
7.1.240.0030.00815.79
7.1.230.0030.00915.72
7.1.220.0070.00715.73
7.1.210.0040.00815.62
7.1.200.0070.00615.74
7.1.190.0040.00815.79
7.1.180.0040.00915.84
7.1.170.0080.00315.68
7.1.160.0060.00915.84
7.1.150.0080.00315.71
7.1.140.0040.00815.69
7.1.130.0020.00915.81
7.1.120.0020.01015.73
7.1.110.0050.01015.69
7.1.100.0030.01015.80
7.1.90.0080.00615.92
7.1.80.0020.00715.88
7.1.70.0050.00715.86
7.1.60.0020.01115.83
7.1.50.0070.00615.67
7.1.40.0080.00615.81
7.1.30.0000.01415.62
7.1.20.0080.00615.80
7.1.10.0040.00815.77
7.1.00.0050.00815.64
7.0.330.0050.00815.38
7.0.320.0100.00215.45
7.0.310.0030.01015.32
7.0.300.0040.00815.46
7.0.290.0060.00515.26
7.0.280.0070.00615.47
7.0.270.0060.00515.31
7.0.260.0070.00715.38
7.0.250.0030.00715.41
7.0.240.0070.00715.29
7.0.230.0090.00415.44
7.0.220.0060.00615.59
7.0.210.0030.00915.40
7.0.200.0080.00315.50
7.0.190.0060.00615.39
7.0.180.0040.00715.51
7.0.170.0060.00615.54
7.0.160.0020.01315.42
7.0.150.0010.00915.28
7.0.140.0080.00615.31
7.0.130.0050.00815.33
7.0.120.0070.00615.39
7.0.110.0100.00415.49
7.0.100.0060.01015.41
7.0.90.0030.00915.52
7.0.80.0040.00915.33
7.0.70.0050.00715.38
7.0.60.0090.00415.51
7.0.50.0070.00615.44
7.0.40.0030.01013.41
7.0.30.0070.00513.54
7.0.20.0050.00713.49
7.0.10.0020.01313.46
7.0.00.0030.00713.38
5.6.400.0030.00614.43
5.6.390.0100.00514.45
5.6.380.0080.00714.44
5.6.370.0040.00914.42
5.6.360.0050.00614.23
5.6.350.0050.00814.42
5.6.340.0070.00914.29
5.6.330.0050.00714.58
5.6.320.0080.00614.24
5.6.310.0110.00314.36
5.6.300.0050.00814.16
5.6.290.0040.01114.42
5.6.280.0090.00614.40
5.6.270.0030.01114.37
5.6.260.0030.00914.59
5.6.250.0050.00914.25
5.6.240.0080.00714.24
5.6.230.0070.00814.20
5.6.220.0040.00614.37
5.6.210.0050.00814.24
5.6.200.0080.00414.35
5.6.190.0040.00714.30
5.6.180.0040.01014.23
5.6.170.0030.00814.22
5.6.160.0050.00714.12
5.6.150.0050.00814.24
5.6.140.0050.00814.17
5.6.130.0050.00914.28
5.6.120.0070.00714.25
5.6.110.0040.01014.38
5.6.100.0110.00414.33
5.6.90.0050.00914.48
5.6.80.0030.00714.12
5.6.70.0030.01114.28
5.6.60.0070.00714.20
5.6.50.0080.00514.12
5.6.40.0030.02515.77
5.6.30.0070.01815.84
5.6.20.0080.02415.83
5.6.10.0070.02415.72
5.6.00.0050.01815.72
5.5.380.0090.00514.36
5.5.370.0040.00814.27
5.5.360.0060.00814.39
5.5.350.0020.01114.13
5.5.340.0050.00814.34
5.5.330.0020.01314.22
5.5.320.0060.00914.17
5.5.310.0090.00614.26
5.5.300.0090.00514.21
5.5.290.0060.00714.44
5.5.280.0080.00514.33
5.5.270.0060.00714.31
5.5.260.0070.00814.25
5.5.250.0050.00814.30
5.5.240.0040.00614.07
5.5.230.0030.00814.23
5.5.220.0070.00614.22
5.5.210.0050.00914.22
5.5.200.0090.02115.69
5.5.190.0080.01815.66
5.5.180.0090.02215.76
5.5.170.0080.00414.07
5.5.160.0040.02315.67
5.5.150.0080.02315.71
5.5.140.0080.02515.82
5.5.130.0050.02215.78
5.5.120.0060.02615.52
5.5.110.0060.02815.68
5.5.100.0050.01915.75
5.5.90.0030.02215.74
5.5.80.0100.02315.66
5.5.70.0050.02615.58
5.5.60.0070.02415.56
5.5.50.0090.02315.49
5.5.40.0070.02515.70
5.5.30.0100.02115.68
5.5.20.0100.02315.57
5.5.10.0080.01315.60
5.5.00.0080.02615.75
5.4.450.0050.00511.08
5.4.440.0020.00911.05
5.4.430.0040.00411.12
5.4.420.0050.00611.04
5.4.410.0030.00511.07
5.4.400.0020.00711.14
5.4.390.0010.00911.03
5.4.380.0020.00611.00
5.4.370.0030.00711.04
5.4.360.0040.02413.06
5.4.350.0050.02113.09
5.4.340.0030.02413.04
5.4.330.0050.00311.05
5.4.320.0050.02213.06
5.4.310.0090.02013.07
5.4.300.0030.02713.04
5.4.290.0040.02213.08
5.4.280.0040.02413.08
5.4.270.0080.02113.04
5.4.260.0040.02613.04
5.4.250.0060.02113.05
5.4.240.0050.02413.08
5.4.230.0050.02013.09
5.4.220.0030.02313.00
5.4.210.0060.02013.00
5.4.200.0050.01613.05
5.4.190.0070.02313.06
5.4.180.0050.02213.03
5.4.170.0080.02113.05
5.4.160.0070.02012.98
5.4.150.0070.02112.99
5.4.140.0030.01712.32
5.4.130.0050.02112.35
5.4.120.0070.02012.40
5.4.110.0070.01912.50
5.4.100.0050.02412.34
5.4.90.0030.01612.41
5.4.80.0050.01912.40
5.4.70.0030.02412.35
5.4.60.0040.02212.42
5.4.50.0050.02212.38
5.4.40.0050.02212.37
5.4.30.0030.02412.42
5.4.20.0040.02412.42
5.4.10.0050.02212.41
5.4.00.0040.02312.27
5.3.290.0200.05014.58
5.3.280.0030.07714.46
5.3.270.0170.07314.45
5.3.260.0030.07314.52
5.3.250.0130.07314.48
5.3.240.0030.06014.52
5.3.230.0170.05714.42
5.3.220.0170.06014.52
5.3.210.0070.07014.55
5.3.200.0070.06714.42
5.3.190.0070.05014.56
5.3.180.0100.07014.51
5.3.170.0070.07014.52
5.3.160.0070.07714.52
5.3.150.0000.08014.55
5.3.140.0200.06714.52
5.3.130.0130.07314.48
5.3.120.0070.07314.54
5.3.110.0070.06314.40
5.3.100.0200.06014.03
5.3.90.0070.07714.00
5.3.80.0070.05313.80
5.3.70.0170.05313.80
5.3.60.0130.07014.00
5.3.50.0100.07313.93
5.3.40.0100.07013.93
5.3.30.0070.07013.91
5.3.20.0070.08313.55
5.3.10.0130.06713.59
5.3.00.0070.07013.50
5.2.170.0070.06011.14
5.2.160.0000.06711.08
5.2.150.0070.04711.13
5.2.140.0070.07010.94
5.2.130.0070.06011.17
5.2.120.0030.04310.95
5.2.110.0070.03311.08
5.2.100.0100.05710.95
5.2.90.0100.05711.14
5.2.80.0070.03711.05
5.2.70.0030.06011.12
5.2.60.0100.05710.89
5.2.50.0070.03310.94
5.2.40.0100.06010.84
5.2.30.0000.03310.81
5.2.20.0070.06010.80
5.2.10.0100.05310.99
5.2.00.0070.05710.72
5.1.60.0070.0509.84
5.1.50.0100.05010.11
5.1.40.0000.0609.98
5.1.30.0070.05710.27
5.1.20.0030.05710.41
5.1.10.0070.0409.95
5.1.00.0000.06010.07
5.0.50.0030.0508.65
5.0.40.0070.0438.41
5.0.30.0000.0738.13
5.0.20.0070.0408.20
5.0.10.0030.0238.25
5.0.00.0000.0378.22
4.4.90.0000.0377.64
4.4.80.0000.0337.64
4.4.70.0000.0407.64
4.4.60.0030.0377.64
4.4.50.0070.0337.64
4.4.40.0100.0507.64
4.4.30.0000.0377.64
4.4.20.0070.0307.64
4.4.10.0000.0407.64
4.4.00.0030.0577.64
4.3.110.0000.0407.64
4.3.100.0070.0337.64
4.3.90.0030.0337.64
4.3.80.0000.0577.64
4.3.70.0030.0337.64
4.3.60.0030.0177.64
4.3.50.0030.0337.64
4.3.40.0030.0337.64
4.3.30.0030.0277.64
4.3.20.0070.0337.64
4.3.10.0030.0237.64
4.3.00.0000.0407.64

preferences:
38.96 ms | 401 KiB | 5 Q