3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (phpversion() != '5.6.7') return; $gifts = array('toolbox', 'tray', 'eames'); $colours = array('gray', 'brown', 'black'); foreach ($gifts as $gift) { foreach ($colours as $colour) { echo $colour.' '.$gift.'! '; } }

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.3.120.0030.01014.60
7.3.110.0030.01214.64
7.3.100.0030.00514.55
7.3.90.0080.00714.60
7.3.80.0030.00914.70
7.3.70.0060.01014.56
7.3.60.0040.01114.38
7.3.50.0100.00714.63
7.3.40.0060.00614.36
7.3.30.0100.00614.60
7.3.20.0040.00716.06
7.3.10.0090.00516.11
7.3.00.0060.00716.35
7.2.240.0030.00614.74
7.2.230.0070.00714.87
7.2.220.0040.01114.87
7.2.210.0080.00414.85
7.2.200.0060.00814.90
7.2.190.0100.00714.43
7.2.180.0080.00814.87
7.2.170.0060.00614.88
7.2.160.0070.00714.63
7.2.150.0090.00615.98
7.2.140.0110.00316.63
7.2.130.0100.00516.58
7.2.120.0080.00516.55
7.2.110.0070.00916.47
7.2.100.0060.00916.37
7.2.90.0060.00616.57
7.2.80.0070.00716.62
7.2.70.0090.00616.51
7.2.60.0050.01116.40
7.2.50.0110.00816.49
7.2.40.0070.00816.65
7.2.30.0120.00616.63
7.2.20.0080.00816.63
7.2.10.0070.00916.58
7.2.00.0070.01117.38
7.1.330.0060.00315.59
7.1.320.0030.00915.41
7.1.310.0120.00015.34
7.1.300.0040.01215.34
7.1.290.0030.00915.41
7.1.280.0030.00915.50
7.1.270.0100.00315.35
7.1.260.0070.00615.47
7.1.250.0070.00615.43
7.1.100.0040.00717.92
7.1.70.0040.00716.93
7.1.60.0000.01919.46
7.1.50.0070.01016.46
7.1.00.0030.07722.51
7.0.200.0040.00714.73
7.0.140.0100.06322.12
7.0.60.0130.07719.89
7.0.50.0030.04017.80
7.0.40.0070.04320.21
7.0.30.0300.07720.20
7.0.20.0230.04320.08
7.0.10.0000.06319.99
7.0.00.0030.04720.30
5.6.280.0130.06321.13
5.6.210.0100.07720.70
5.6.200.0170.03718.13
5.6.190.0070.07720.40
5.6.180.0400.05320.43
5.6.170.0130.05320.44
5.6.160.0100.09020.38
5.6.150.0100.04318.19
5.6.140.0030.04018.11
5.6.130.0030.04018.20
5.6.120.0070.07721.02
5.6.110.0130.07721.11
5.6.100.0070.08020.96
5.6.90.0070.07720.88
5.6.80.0030.03720.41
5.5.350.0230.06720.46
5.5.340.0100.05718.04
5.5.330.0100.05720.15
5.5.320.0000.08020.18
5.5.310.0270.06320.29
5.5.300.0000.04017.88
5.5.290.0100.07018.02
5.5.280.0070.04720.90
5.5.270.0100.03720.78
5.5.260.0070.04020.88
5.5.250.0100.08020.49
5.5.240.0100.08020.25
5.4.450.0070.07019.28
5.4.440.1170.05319.27
5.4.430.0700.05319.52
5.4.420.1030.04719.43
5.4.410.0670.05319.14
5.4.400.1130.04019.23
5.4.390.0230.04318.72
5.4.380.0300.04018.71
5.4.370.0170.05018.46
5.4.360.0130.05718.67
5.4.350.0130.05718.68
5.4.340.0070.06318.52
5.4.320.0300.05018.55
5.4.310.0200.05018.71
5.4.300.0270.05018.71
5.4.290.0230.04718.46
5.4.280.0200.05318.71
5.4.270.0130.05318.73
5.4.260.0130.05718.55
5.4.250.0170.05718.73
5.4.240.0300.04018.64
5.4.230.0100.06018.66
5.4.220.0100.06018.70
5.4.210.0170.05718.54
5.4.200.0170.04716.48
5.4.190.0100.05718.49
5.4.180.0230.04318.63
5.4.170.0200.05018.71
5.4.160.0100.05718.75
5.4.150.0200.04718.63
5.4.140.0170.05316.05
5.4.130.0170.04716.14
5.4.120.0200.04016.25
5.4.110.0130.05016.31
5.4.100.0170.04716.12
5.4.90.0130.05716.16
5.4.80.0130.05716.15
5.4.70.0170.05016.10
5.4.60.0170.04316.17
5.4.50.0200.04316.12
5.4.40.0170.04716.01
5.4.30.0130.05016.22
5.4.20.0170.05716.21
5.4.10.0300.05016.10
5.4.00.0100.05315.67
5.3.290.0170.05314.64
5.3.280.0100.05714.54
5.3.270.0230.04714.51
5.3.260.0100.06014.70
5.3.250.0070.06014.49
5.3.240.0100.07714.70
5.3.230.0170.06714.63
5.3.220.0030.06014.47
5.3.210.0100.07714.59
5.3.200.0270.05714.45
5.3.190.0100.05714.54
5.3.180.0200.04314.51
5.3.170.0130.05314.57
5.3.160.0200.04714.66
5.3.150.0130.06014.59
5.3.140.0270.04314.64
5.3.130.0130.06014.49
5.3.120.0170.05314.45
5.3.110.0170.06014.61
5.3.100.0170.05014.02
5.3.90.0130.05314.13
5.3.80.0130.05714.09
5.3.70.0200.04713.99
5.3.60.0170.05013.89
5.3.50.0230.04014.04
5.3.40.0170.05013.93
5.3.30.0230.05013.84
5.3.20.0170.04713.62
5.3.10.0130.05313.74
5.3.00.0170.05713.66
5.2.170.0170.04011.12
5.2.160.0130.05711.17
5.2.150.0270.05711.11
5.2.140.0070.04311.11
5.2.130.0130.05011.01
5.2.120.0330.04711.16
5.2.110.0100.04011.13
5.2.100.0230.05711.23
5.2.90.0070.06011.15
5.2.80.0200.04011.05
5.2.70.0170.05011.01
5.2.60.0070.04310.96
5.2.50.0070.04711.00
5.2.40.0170.03310.96
5.2.30.0130.03710.97
5.2.20.0170.04011.11
5.2.10.0170.05010.86
5.2.00.0270.03710.71
5.1.60.0130.03010.01
5.1.50.0030.0439.96
5.1.40.0130.0379.99
5.1.30.0130.04010.33
5.1.20.0070.04010.50
5.1.10.0130.03710.04
5.1.00.0200.03310.18
5.0.50.0070.0308.54
5.0.40.0070.0278.54
5.0.30.0070.0438.19
5.0.20.0030.0408.21
5.0.10.0170.0238.19
5.0.00.0000.0478.19
4.4.90.0070.0206.86
4.4.80.0000.0276.86
4.4.70.0070.0206.86
4.4.60.0130.0176.86
4.4.50.0130.0236.86
4.4.40.0130.0376.86
4.4.30.0030.0306.86
4.4.20.0100.0236.86
4.4.10.0100.0236.86
4.4.00.0070.0306.86
4.3.110.0070.0206.86
4.3.100.0070.0206.86
4.3.90.0100.0176.86
4.3.80.0070.0376.86
4.3.70.0070.0236.86
4.3.60.0000.0276.86
4.3.50.0030.0236.86
4.3.40.0030.0376.86
4.3.30.0030.0236.86
4.3.20.0030.0236.86
4.3.10.0030.0206.86
4.3.00.0330.01714.42

preferences:
41.04 ms | 401 KiB | 5 Q