3v4l.org

run code in 300+ PHP versions simultaneously
<?php $heightOptions = array(0,100,314); $initialHeight = array_rand($heightOptions); print (@initialHeight) ?>

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.0120.00614.82
7.3.110.0120.00614.67
7.3.100.0030.00714.57
7.3.90.0050.00814.62
7.3.80.0070.00714.71
7.3.70.0040.00814.69
7.3.60.0030.00914.66
7.3.50.0000.01314.41
7.3.40.0030.00714.53
7.3.30.0030.01314.51
7.3.20.0090.00316.26
7.3.10.0030.01016.55
7.3.00.0030.01016.54
7.2.240.0060.01214.94
7.2.230.0040.00714.79
7.2.220.0040.00815.20
7.2.210.0040.01115.02
7.2.200.0000.00914.64
7.2.190.0070.00715.03
7.2.180.0040.00414.80
7.2.170.0100.00315.06
7.2.160.0000.00914.93
7.2.150.0090.00016.95
7.2.140.0040.00816.66
7.2.130.0020.01216.84
7.2.120.0070.00716.72
7.2.110.0030.01216.92
7.2.100.0100.00716.84
7.2.90.0020.00916.79
7.2.80.0050.01016.85
7.2.70.0100.00516.89
7.2.60.0080.00816.88
7.2.50.0070.00616.73
7.2.40.0090.00816.88
7.2.30.0070.00916.95
7.2.20.0040.00616.81
7.2.10.0030.00816.79
7.2.00.0050.00716.79
7.1.330.0030.01315.71
7.1.320.0000.01115.79
7.1.310.0030.00715.65
7.1.300.0040.00715.70
7.1.290.0080.00015.82
7.1.280.0080.00415.48
7.1.270.0040.00415.55
7.1.260.0040.00815.77
7.1.250.0060.00615.76
7.1.70.0030.01017.21
7.1.60.0070.01419.24
7.1.50.0000.01216.57
7.1.00.0070.07322.48
7.0.200.0460.00616.59
7.0.140.0000.07721.97
7.0.100.0170.04320.16
7.0.90.0000.08320.13
7.0.80.0270.08719.91
7.0.70.0230.07719.95
7.0.60.0170.05720.06
7.0.50.0170.02720.33
7.0.40.0030.04320.10
7.0.30.0070.04020.13
7.0.20.0030.04020.19
7.0.10.0030.05320.09
7.0.00.0030.03320.14
5.6.280.0030.07320.89
5.6.250.0100.04020.71
5.6.240.0100.07320.53
5.6.230.0100.04320.56
5.6.220.0030.04320.61
5.6.210.0000.04720.66
5.6.200.0070.04321.06
5.6.190.0070.03721.04
5.6.180.0100.03721.08
5.6.170.0070.03021.11
5.6.160.0030.05321.04
5.6.150.0000.04721.04
5.6.140.0030.05321.05
5.6.130.0000.04720.93
5.6.120.0030.04321.05
5.6.110.0070.04020.99
5.6.100.0100.03721.09
5.6.90.0130.07321.14
5.6.80.0070.03320.33
5.6.70.0000.04320.40
5.6.60.0030.04320.41
5.6.50.0030.04020.42
5.6.40.0000.04320.36
5.6.30.0030.04020.37
5.6.20.0030.04020.43
5.6.10.0030.04020.43
5.6.00.0000.05320.36
5.5.380.0030.04720.53
5.5.370.0100.05020.37
5.5.360.0100.03720.35
5.5.350.0100.04720.41
5.5.340.0030.04320.86
5.5.330.0070.03720.82
5.5.320.0030.04320.82
5.5.310.0100.03720.85
5.5.300.0000.03720.86
5.5.290.0100.04020.91
5.5.280.0070.04020.88
5.5.270.0100.06020.63
5.5.260.0130.03020.86
5.5.250.0030.04320.59
5.5.240.0000.04320.25
5.5.230.0070.03720.16
5.5.220.0000.04320.18
5.5.210.0000.04320.25
5.5.200.0070.03720.24
5.5.190.0000.04320.26
5.5.180.0130.03720.21
5.5.160.0070.03720.12
5.5.150.0100.07320.25
5.5.140.0070.03320.11
5.5.130.0170.05720.22
5.5.120.0030.04720.17
5.5.110.0100.08320.22
5.5.100.0170.07320.09
5.5.90.0100.07719.93
5.5.80.0100.07020.06
5.5.70.0100.07720.11
5.5.60.0100.07320.04
5.5.50.0070.05719.93
5.5.40.0030.07020.13
5.5.30.0130.07320.13
5.5.20.0170.05020.14
5.5.10.0170.07319.96
5.5.00.0100.08020.00
5.4.450.0130.03719.42
5.4.440.0070.04019.55
5.4.430.0030.04319.28
5.4.420.0030.04019.22
5.4.410.0030.03719.20
5.4.400.0030.04019.06
5.4.390.0000.04018.92
5.4.380.0030.03719.05
5.4.370.0000.04318.94
5.4.360.0070.03719.00
5.4.350.0030.04019.12
5.4.340.0100.03019.05
5.4.320.0070.03718.98
5.4.310.0100.06018.94
5.4.300.0030.06719.12
5.4.290.0030.07319.04
5.4.280.0130.06318.90
5.4.270.0070.07318.80
5.4.260.0130.06319.02
5.4.250.0000.08319.02
5.4.240.0100.06018.89
5.4.230.0100.06319.22
5.4.220.0030.05019.11
5.4.210.0070.07019.04
5.4.200.0070.07319.08
5.4.190.0030.08019.02
5.4.180.0070.07319.11
5.4.170.0000.04718.95
5.4.160.0130.07018.89
5.4.150.0100.07018.80
5.4.140.0130.05316.12
5.4.130.0100.04016.06
5.4.120.0000.08016.36
5.4.110.0170.06016.21
5.4.100.0170.07016.32
5.4.90.0070.03716.36
5.4.80.0070.07316.29
5.4.70.0100.05016.31
5.4.60.0030.04316.36
5.4.50.0030.05316.35
5.4.40.0100.07016.33
5.4.30.0070.06716.23
5.4.20.0100.07316.38
5.4.10.0100.04716.17
5.4.00.0070.06315.83
5.3.290.0070.04314.50
5.3.280.0130.06714.43
5.3.270.0070.03714.46
5.3.260.0100.05314.56
5.3.250.0170.05314.45
5.3.240.0130.06714.43
5.3.230.0130.05714.55
5.3.220.0070.06714.55
5.3.210.0200.06314.47
5.3.200.0100.06714.55
5.3.190.0070.05014.51
5.3.180.0070.04014.41
5.3.170.0000.06314.38
5.3.160.0070.07014.52
5.3.150.0030.07014.38
5.3.140.0130.03714.41
5.3.130.0030.06314.38
5.3.120.0100.06314.52
5.3.110.0070.07714.49
5.3.100.0030.08014.03
5.3.90.0130.06713.99
5.3.80.0100.03713.97
5.3.70.0030.04014.00
5.3.60.0170.05713.86
5.3.50.0030.06313.93
5.3.40.0130.07013.80
5.3.30.0070.07313.90
5.3.20.0070.07313.68
5.3.10.0100.04713.64
5.3.00.0100.06313.64
5.2.170.0030.06011.16
5.2.160.0030.06311.16
5.2.150.0030.04310.98
5.2.140.0100.03711.19
5.2.130.0000.06311.08
5.2.120.0000.03311.12
5.2.110.0070.05711.12
5.2.100.0070.05710.96
5.2.90.0000.06311.11
5.2.80.0070.03311.00
5.2.70.0070.05010.85
5.2.60.0130.05311.04
5.2.50.0030.06310.89
5.2.40.0100.03710.98
5.2.30.0030.06010.96
5.2.20.0000.03710.79
5.2.10.0070.05710.88
5.2.00.0070.05010.77
5.1.60.0070.04310.10
5.1.50.0100.03010.10
5.1.40.0030.0539.97
5.1.30.0030.04710.39
5.1.20.0030.03010.46
5.1.10.0030.04010.05
5.1.00.0070.05310.14
5.0.50.0070.0308.75
5.0.40.0000.0378.75
5.0.30.0070.0538.75
5.0.20.0030.0438.75
5.0.10.0000.0408.75
5.0.00.0030.0608.75
4.4.90.0030.0208.75
4.4.80.0070.0308.75
4.4.70.0070.0178.75
4.4.60.0030.0308.75
4.4.50.0030.0308.75
4.4.40.0030.0338.75
4.4.30.0030.0238.75
4.4.20.0030.0278.75
4.4.10.0030.0278.75
4.4.00.0070.0338.75
4.3.110.0000.0378.75
4.3.100.0070.0308.75
4.3.90.0000.0238.75
4.3.80.0000.0338.75
4.3.70.0000.0238.75
4.3.60.0030.0338.75
4.3.50.0000.0238.75
4.3.40.0000.0308.75
4.3.30.0000.0438.75
4.3.20.0000.0478.75
4.3.10.0000.0338.75
4.3.00.0030.0338.75

preferences:
37 ms | 400 KiB | 5 Q