3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(array( random_int(1, 2.0), random_int(1, 1.0), random_int(-1, "2"), random_int(-1, "3.1"), random_int(-2.0, 5), random_int(1.0, 5), random_int("-2", 5), random_int("3.1", 5), ));

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.10.0050.00916.75
7.3.00.0030.01116.59
7.2.130.0060.01116.60
7.2.120.0040.00916.76
7.2.110.0030.01316.64
7.2.100.0070.01116.80
7.2.90.0120.00816.73
7.2.80.0150.00416.51
7.2.70.0120.00716.71
7.2.60.0070.01016.78
7.2.50.0080.00816.86
7.2.40.0080.00816.86
7.2.30.0030.01316.81
7.2.20.0120.01016.66
7.2.10.0130.00916.80
7.2.00.0000.01417.65
7.1.250.0030.01215.64
7.1.240.0000.01015.67
7.1.230.0070.00315.56
7.1.220.0030.01015.43
7.1.210.0030.01315.62
7.1.200.0050.01615.61
7.1.190.0060.01215.65
7.1.180.0030.01115.49
7.1.170.0100.01015.64
7.1.160.0100.00315.64
7.1.150.0100.01315.82
7.1.140.0210.01415.71
7.1.130.0130.01315.71
7.1.120.0040.01315.66
7.1.110.0120.00815.73
7.1.100.0130.00315.61
7.1.90.0000.01615.63
7.1.80.0170.00315.68
7.1.70.0060.00716.13
7.1.60.0070.01217.42
7.1.50.0030.01816.10
7.1.40.0070.00715.74
7.1.30.0120.00615.58
7.1.20.0060.01315.32
7.1.10.0070.00715.43
7.1.00.0090.03819.00
7.0.330.0060.00615.36
7.0.320.0040.00715.13
7.0.310.0000.01314.86
7.0.300.0100.01015.23
7.0.290.0090.00615.02
7.0.280.0030.01215.13
7.0.270.0120.00314.86
7.0.260.0060.00615.16
7.0.250.0040.01115.30
7.0.240.0060.00915.25
7.0.230.0060.00915.20
7.0.220.0000.01615.25
7.0.210.0140.00315.10
7.0.200.0050.00714.93
7.0.190.0100.00715.13
7.0.180.0040.00415.25
7.0.170.0060.00915.04
7.0.160.0070.00814.91
7.0.150.0070.00714.69
7.0.140.0070.00415.09
7.0.130.0130.00315.16
7.0.120.0030.01315.14
7.0.110.0040.01214.94
7.0.100.0060.00614.80
7.0.90.0000.01315.08
7.0.80.0060.00915.10
7.0.70.0110.00315.25
7.0.60.0150.04017.64
7.0.50.0020.02816.53
7.0.40.0060.02716.72
7.0.30.0170.03216.69
7.0.20.0190.04016.63
7.0.10.0080.04516.76
7.0.00.0060.04416.50
5.6.380.0070.00313.81
5.6.370.0070.00714.13
5.6.360.0030.01113.77
5.6.350.0030.01014.16
5.6.340.0060.00613.68
5.6.330.0030.00613.94
5.6.320.0070.00713.89
5.6.310.0060.00914.14
5.6.300.0070.01014.03
5.6.290.0100.00313.72
5.6.280.0020.01917.50
5.6.270.0060.00613.80
5.6.260.0000.01413.86
5.6.250.0030.00813.84
5.6.240.0000.01713.87
5.6.230.0040.00414.03
5.6.220.0090.00614.11
5.6.210.0050.03517.27
5.6.200.0060.03416.08
5.6.190.0100.03817.18
5.6.180.0160.04117.36
5.6.170.0200.03817.20
5.6.160.0060.03817.18
5.6.150.0070.02415.98
5.6.140.0070.04216.10
5.6.130.0140.03516.27
5.6.120.0090.04817.56
5.6.110.0080.04517.61
5.6.100.0110.04117.45
5.6.90.0080.04517.52
5.6.80.0100.02517.17
5.6.70.0100.01013.92
5.6.60.0150.00413.90
5.6.50.0220.00013.95
5.6.40.0130.00614.00
5.6.30.0130.00613.86
5.6.20.0140.00014.07
5.6.10.0120.00613.84
5.6.00.0070.01013.96
5.5.380.0000.00610.77
5.5.370.0040.00810.70
5.5.360.0070.00711.09
5.5.350.0170.04415.60
5.5.340.0090.02614.28
5.5.330.0070.04415.48
5.5.320.0190.03915.49
5.5.310.0210.03815.57
5.5.300.0050.03414.36
5.5.290.0070.03614.44
5.5.280.0080.04015.65
5.5.270.0060.04115.82
5.5.260.0120.04215.79
5.5.250.0030.04415.42
5.5.240.0070.02015.47
5.5.230.0000.01010.53
5.5.220.0100.00310.74
5.5.210.0130.00010.88
5.5.200.0130.00310.78
5.5.190.0040.00810.57
5.5.180.0080.00410.82
5.5.170.0110.00510.50
5.5.160.0050.00510.31
5.5.150.0060.00610.88
5.5.140.0080.00410.65
5.5.130.0090.00610.84
5.5.120.0030.01010.59
5.5.110.0060.00010.88
5.5.100.0060.00610.74
5.5.90.0090.00310.67
5.5.80.0030.00910.46
5.5.70.0040.00810.54
5.5.60.0040.00410.45
5.5.50.0000.00910.62
5.5.40.0030.01010.80
5.5.30.0000.00710.75
5.5.20.0050.00310.42
5.5.10.0060.00610.63
5.5.00.0000.00710.76
5.4.450.1930.02614.93
5.4.440.0050.04214.99
5.4.430.0700.03715.14
5.4.420.2380.02115.05
5.4.410.1920.02514.98
5.4.400.2080.02114.84
5.4.390.2840.01815.00
5.4.380.2130.01914.97
5.4.370.2060.02414.89
5.4.360.1870.02514.80
5.4.350.2070.01714.88
5.4.340.1740.01514.82
5.4.330.0170.00010.54
5.4.320.1570.02314.87
5.4.310.1680.01714.78
5.4.300.1840.02014.88
5.4.290.1840.01914.77
5.4.280.1620.02214.90
5.4.270.2030.01314.77
5.4.260.1530.02014.78
5.4.250.2020.01914.81
5.4.240.1880.02414.84
5.4.230.1980.02414.95
5.4.220.1780.02114.69
5.4.210.1900.02114.93
5.4.200.2010.01714.84
5.4.190.1710.02014.89
5.4.180.2090.01714.74
5.4.170.1700.02214.88
5.4.160.1770.01814.66
5.4.150.2090.01814.74
5.4.140.1780.01813.38
5.4.130.1770.02613.42
5.4.120.1820.02113.44
5.4.110.2030.02013.49
5.4.100.2020.02113.57
5.4.90.1960.02013.60
5.4.80.2280.01813.49
5.4.70.0030.00310.55
5.4.60.0060.00610.40
5.4.50.0000.00710.54
5.4.40.0030.00910.50
5.4.30.0000.00710.33
5.4.20.0030.00310.80
5.4.10.0030.00610.68
5.4.00.0000.00610.57

preferences:
33.36 ms | 403 KiB | 5 Q