3v4l.org

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

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.2.00.0060.00319.17
7.1.70.0000.00817.06
7.1.60.0140.01119.40
7.1.50.0030.01716.87
7.1.00.0030.07322.36
7.0.200.0030.01416.70
7.0.140.0070.07021.97
7.0.60.0070.04019.93
7.0.50.0030.04017.87
7.0.40.0070.04320.27
7.0.30.0130.04720.17
7.0.20.0230.05020.13
7.0.10.0170.09720.00
7.0.00.0070.07020.08
5.6.280.0070.07021.06
5.6.210.0130.07320.61
5.6.200.0170.07718.19
5.6.190.0030.05720.34
5.6.180.0230.03720.61
5.6.170.0200.03720.45
5.6.160.0070.06720.37
5.6.150.0100.07718.11
5.6.140.0070.05018.07
5.6.130.0030.08318.16
5.6.120.0030.04320.98
5.6.110.0100.08021.04
5.6.100.0070.08020.97
5.6.90.0070.07721.04
5.6.80.0100.07720.33
5.6.70.0070.07720.51
5.5.350.0170.03320.37
5.5.340.0000.08717.98
5.5.330.0100.07320.36
5.5.320.0300.07720.29
5.5.310.0270.03720.51
5.5.300.0070.08017.92
5.5.290.0100.08018.02
5.5.280.0130.08020.76
5.5.270.0070.05020.63
5.5.260.0100.06720.96
5.5.250.0000.08720.74
5.5.240.0030.08020.36
5.4.450.2730.04019.43
5.4.440.2700.04319.54
5.4.430.2670.04319.25
5.4.420.2370.04319.54
5.4.410.2630.04319.00
5.4.400.2870.04719.16
5.4.390.2700.03019.10
5.4.380.2730.03719.06
5.4.370.2470.04019.24
5.4.360.2730.04019.24
5.4.350.2570.03718.93
5.4.340.2270.04018.78
5.4.320.2770.04019.09
5.4.310.2730.03319.08
5.4.300.2430.04019.14
5.4.290.2730.04018.93
5.4.280.2700.03719.13
5.4.270.2430.04318.77
5.4.260.2770.03719.06
5.4.250.2970.02719.08
5.4.240.2530.04019.15
5.4.230.3070.04019.08
5.4.220.2830.03719.12
5.4.210.0630.06018.92
5.4.200.0000.08019.24
5.4.190.0070.06019.07
5.4.180.0100.06018.82
5.4.170.2800.03319.09
5.4.160.2700.03718.76
5.4.150.3070.04719.19
5.4.140.2830.03716.31
5.4.130.2670.03316.36
5.4.120.2770.04016.30
5.4.110.2730.03716.34
5.4.100.2630.03716.41
5.4.90.2670.02716.50
5.4.80.2530.03716.05
5.4.70.2600.03316.39
5.4.60.3270.03316.36
5.4.50.2630.03716.36
5.4.40.2600.03716.38
5.4.30.0030.03316.39
5.4.20.0030.03316.17
5.4.10.0000.04016.45
5.4.00.2270.03015.97
5.3.290.2670.02714.61
5.3.280.2430.03714.68
5.3.270.3130.04714.44
5.3.260.2830.03714.65
5.3.250.2230.03714.45
5.3.240.2630.04714.55
5.3.230.2530.03714.50
5.3.220.1370.04014.50
5.3.210.0030.03714.52
5.3.200.0070.03314.40
5.3.190.1430.03714.44
5.3.180.2130.04714.40
5.3.170.2400.04014.38
5.3.160.2470.03714.66
5.3.150.2300.03714.43
5.3.140.2400.04014.39
5.3.130.2430.03714.40
5.3.120.2300.03714.40
5.3.110.2370.03714.45
5.3.100.2400.04013.98
5.3.90.2430.03713.96
5.3.80.2700.03713.81
5.3.70.2570.04013.95
5.3.60.2800.03314.02
5.3.50.2630.04713.82
5.3.40.2670.04713.89
5.3.30.2570.03713.75
5.3.20.2400.04013.56
5.3.10.2630.05013.75
5.3.00.2600.03313.57
5.2.170.2070.02711.09
5.2.160.2370.02311.05
5.2.150.2030.03311.19
5.2.140.2230.03711.03
5.2.130.2030.02310.95
5.2.120.2300.03011.26
5.2.110.2570.02311.04
5.2.100.2230.03011.15
5.2.90.2370.03311.04
5.2.80.1870.03010.94
5.2.70.2270.03310.93
5.2.60.1770.02010.95
5.2.50.2100.03310.91
5.2.40.1870.02311.07
5.2.30.1700.03010.98
5.2.20.1700.03010.84
5.2.10.1970.03310.86
5.2.00.1170.05310.73
5.1.60.1670.02310.04
5.1.50.1670.02310.04
5.1.40.1800.0279.89
5.1.30.0000.03010.30
5.1.20.0000.03310.50
5.1.10.0000.0309.91
5.1.00.0270.0309.93
5.0.50.0870.0208.44
5.0.40.0800.0238.49
5.0.30.0600.0278.41
5.0.20.0830.0238.41
5.0.10.0830.0208.41
5.0.00.1100.0608.41
4.4.90.1000.0178.41
4.4.80.0830.0178.41
4.4.70.0000.0278.41
4.4.60.0000.0238.41
4.4.50.0000.0208.41
4.4.40.0000.0308.41
4.4.30.0030.0138.41
4.4.20.0030.0178.41
4.4.10.0030.0178.41
4.4.00.0030.0408.41
4.3.110.0400.0178.41
4.3.100.0900.0178.41
4.3.90.0000.0178.41
4.3.80.0000.0408.41
4.3.70.0000.0208.41
4.3.60.0000.0178.41
4.3.50.0000.0238.41
4.3.40.0000.0508.41
4.3.30.0000.0208.41
4.3.20.0030.0138.41
4.3.10.0000.0308.41
4.3.00.0500.0178.41

preferences:
42.18 ms | 400 KiB | 5 Q