3v4l.org

run code in 200+ PHP versions simultaneously
<?php $lost = array("A","B","C","D"); // $list = $lost; # cow-count2 // $list = &$lost; # refcount2 $list = $lost; unset($lost); # just like just assigned but assigned and unset original. foreach ( $list as $var ) { printf("%s (%s)\n", item($list), $var); } function item(&$list) { return current($list); } ?>

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.00.0090.01015.06
7.3.120.0050.01114.91
7.3.110.0030.01314.84
7.3.100.0050.01214.75
7.3.90.0060.00914.79
7.3.80.0080.00915.04
7.3.70.0050.00914.88
7.3.60.0090.00514.80
7.3.50.0030.00914.79
7.3.40.0040.01114.88
7.3.30.0080.00514.73
7.3.20.0040.00816.52
7.3.10.0080.00816.60
7.3.00.0090.00716.65
7.2.250.0100.01014.71
7.2.240.0050.01415.19
7.2.230.0050.01115.04
7.2.220.0030.01215.00
7.2.210.0070.00915.13
7.2.200.0040.01014.96
7.2.190.0000.01614.84
7.2.180.0050.00914.94
7.2.170.0030.01214.70
7.2.160.0030.00715.09
7.2.150.0110.00716.64
7.2.140.0000.01416.93
7.2.130.0070.00516.61
7.2.120.0030.00616.66
7.2.110.0050.00916.71
7.2.100.0050.00916.71
7.2.90.0100.00616.61
7.2.80.0100.00916.65
7.2.70.0130.00516.70
7.2.60.0050.00916.75
7.2.50.0100.00916.70
7.2.40.0020.01316.49
7.2.30.0060.00616.59
7.2.20.0070.00816.58
7.2.10.0090.00616.75
7.2.00.0080.00816.88
7.1.330.0080.00715.71
7.1.320.0060.00615.94
7.1.310.0030.00915.89
7.1.300.0020.01215.68
7.1.290.0050.00815.75
7.1.280.0100.00015.66
7.1.270.0030.00815.77
7.1.260.0090.00415.76
7.1.250.0050.00715.69
7.1.200.0070.00315.51
7.1.70.0070.01017.17
7.1.60.0060.01219.40
7.1.50.0030.01716.96
7.1.00.0030.07722.50
7.0.200.0030.00616.70
7.0.140.0030.07321.99
7.0.120.0030.07322.03
7.0.60.0070.07719.88
7.0.50.0070.08017.87
7.0.40.0030.06720.04
7.0.30.0170.04020.30
7.0.20.0230.04320.09
7.0.10.0270.04320.12
7.0.00.0130.08020.07
5.6.280.0070.07021.04
5.6.210.0130.05320.51
5.6.200.0070.04718.27
5.6.190.0000.05020.39
5.6.180.0230.04320.57
5.6.170.0300.03720.44
5.6.160.0030.07020.54
5.6.150.0070.06718.14
5.6.140.0100.08318.16
5.6.130.0100.06018.27
5.6.120.0000.04321.12
5.6.110.0130.08321.03
5.6.100.0200.06021.03
5.6.90.0000.04320.99
5.6.80.0030.03720.38
5.6.70.0270.08320.53
5.5.350.0230.08020.45
5.5.340.0200.07317.95
5.5.330.0070.07720.33
5.5.320.0170.03720.28
5.5.310.0330.05720.30
5.5.300.0030.04017.97
5.5.290.0100.08018.04
5.5.280.0170.05720.68
5.5.270.0070.08020.87
5.5.260.0070.03720.86
5.5.250.0130.07720.58
5.5.240.0170.07020.26
5.4.450.0030.05719.34
5.4.440.0130.07719.56
5.4.430.0100.04719.24
5.4.420.0100.04019.40
5.4.410.0100.07319.17
5.4.400.0070.07719.09
5.4.390.0100.07318.86
5.4.380.0070.04318.92
5.4.370.0030.08318.88
5.4.360.0100.06019.14
5.4.350.0030.05018.92
5.4.340.0100.04018.97
5.4.320.0100.05718.96
5.4.310.0130.06719.00
5.4.300.0030.08018.87
5.4.290.0030.07719.15
5.4.280.0070.07319.23
5.4.270.0030.03719.14
5.4.260.0000.08018.85
5.4.250.0000.05019.07
5.4.240.0070.04718.84
5.4.230.0030.05719.14
5.4.220.0030.04019.25
5.4.210.0200.06318.91
5.4.200.0100.06018.99
5.4.190.0030.07719.14
5.4.180.0200.06719.23
5.4.170.0070.07319.07
5.4.160.0130.03318.91
5.4.150.0200.05719.17
5.4.140.0170.06716.41
5.4.130.0100.03316.41
5.4.120.0030.05016.37
5.4.110.0030.08016.51
5.4.100.0030.07716.55
5.4.90.0030.06016.60
5.4.80.0100.05016.27
5.4.70.0100.06716.45
5.4.60.0100.03316.65
5.4.50.0100.06316.43
5.4.40.0170.03716.36
5.4.30.0030.08016.44
5.4.20.0070.03316.31
5.4.10.0130.06716.25
5.4.00.0000.05315.80
5.3.290.0100.05014.55
5.3.280.0070.03714.63
5.3.270.0070.07314.63
5.3.260.0000.04014.61
5.3.250.0030.07714.68
5.3.240.0070.04014.60
5.3.230.0070.07714.48
5.3.220.0070.04314.62
5.3.210.0100.03314.64
5.3.200.0030.05714.48
5.3.190.0070.04314.59
5.3.180.0100.07014.71
5.3.170.0070.05714.62
5.3.160.0100.03714.61
5.3.150.0130.06714.59
5.3.140.0100.03314.56
5.3.130.0030.05014.57
5.3.120.0070.04714.49
5.3.110.0000.04014.59
5.3.100.0100.05714.05
5.3.90.0030.07014.02
5.3.80.0230.06014.05
5.3.70.0030.06314.05
5.3.60.0170.06314.06
5.3.50.0100.06713.86
5.3.40.0130.06714.11
5.3.30.0030.07313.90
5.3.20.0000.07313.84
5.3.10.0000.05013.60
5.3.00.0100.06013.68
5.2.170.0030.06711.20
5.2.160.0070.05311.18
5.2.150.0000.06711.12
5.2.140.0030.06311.04
5.2.130.0030.06711.10
5.2.120.0030.04311.14
5.2.110.0070.06010.99
5.2.100.0100.05311.25
5.2.90.0100.05711.25
5.2.80.0070.03311.05
5.2.70.0100.06011.09
5.2.60.0030.04011.01
5.2.50.0130.06010.94
5.2.40.0000.05711.09
5.2.30.0070.04711.03
5.2.20.0030.02710.95
5.2.10.0070.03311.01
5.2.00.0030.03710.60
5.1.60.0030.0409.98
5.1.50.0030.0539.95
5.1.40.0030.0539.97
5.1.30.0100.04310.34
5.1.20.0100.04710.35
5.1.10.0030.03310.03
5.1.00.0030.02710.21
5.0.50.0100.0278.47
5.0.40.0030.0278.36
5.0.30.0000.0378.27
5.0.20.0030.0308.19
5.0.10.0000.0238.22
5.0.00.0030.0638.30
4.4.90.0000.0207.71
4.4.80.0030.0407.71
4.4.70.0000.0177.71
4.4.60.0030.0277.71
4.4.50.0070.0207.71
4.4.40.0030.0307.71
4.4.30.0000.0407.71
4.4.20.0070.0207.71
4.4.10.0000.0307.71
4.4.00.0030.0437.71
4.3.110.0070.0107.71
4.3.100.0000.0177.71
4.3.90.0070.0237.71
4.3.80.0100.0507.71
4.3.70.0000.0337.71
4.3.60.0070.0307.71
4.3.50.0030.0207.71
4.3.40.0070.0407.71
4.3.30.0030.0337.71
4.3.20.0000.0377.71
4.3.10.0030.0377.71
4.3.00.0030.0337.71