3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo { function random_int(int $min, int $max) : int { return 4; } var_dump(random_int(32, 64)); var_dump(\random_int(32, 64)); }

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.10.0030.01314.73
7.4.00.0100.00514.71
7.3.130.0120.00615.00
7.3.120.0060.01114.85
7.3.110.0050.01214.68
7.3.100.0100.00514.80
7.3.90.0100.00614.69
7.3.80.0070.00414.64
7.3.70.0050.01014.80
7.3.60.0080.00814.72
7.3.50.0040.01014.69
7.3.40.0070.00614.61
7.3.30.0080.00514.51
7.3.20.0080.00516.57
7.3.10.0050.00816.50
7.3.00.0050.00716.60
7.2.260.0060.01014.85
7.2.250.0090.00914.69
7.2.240.0060.01314.80
7.2.230.0070.01014.76
7.2.220.0020.01414.78
7.2.210.0070.00814.65
7.2.200.0060.00614.80
7.2.190.0070.00414.90
7.2.180.0030.01214.82
7.2.170.0080.00915.03
7.2.160.0090.00615.06
7.2.150.0080.00816.87
7.2.140.0070.00716.85
7.2.130.0060.00716.82
7.2.120.0070.01016.78
7.2.110.0050.01116.85
7.2.100.0050.00816.85
7.2.90.0050.00916.86
7.2.80.0000.01516.71
7.2.70.0060.00716.90
7.2.60.0030.01116.61
7.2.50.0030.00816.72
7.2.40.0060.00816.84
7.2.30.0070.00516.74
7.2.20.0070.00716.77
7.2.10.0070.00716.76
7.2.00.0080.00516.79
7.1.330.0060.00715.57
7.1.320.0090.00615.70
7.1.310.0050.00815.79
7.1.300.0050.00815.72
7.1.290.0050.01015.64
7.1.280.0090.00515.60
7.1.270.0110.00315.74
7.1.260.0050.00515.67
7.1.250.0050.00615.70
7.1.240.0070.00715.69
7.1.230.0090.00615.65
7.1.220.0070.00715.66
7.1.210.0000.01415.45
7.1.200.0000.01115.59
7.1.190.0060.00615.61
7.1.180.0000.01715.76
7.1.170.0040.00715.66
7.1.160.0090.00915.50
7.1.150.0000.01315.80
7.1.140.0030.00815.79
7.1.130.0100.00315.43
7.1.120.0080.00015.52
7.1.110.0080.00415.71
7.1.100.0070.01015.80
7.1.90.0070.00715.83
7.1.80.0070.00715.85
7.1.70.0040.00716.36
7.1.60.0120.00717.44
7.1.50.0070.01016.43
7.1.40.0070.00715.78
7.1.30.0070.00315.45
7.1.20.0030.01315.63
7.1.10.0000.01715.69
7.1.00.0070.04119.09
7.0.330.0060.00615.24
7.0.320.0040.00415.09
7.0.310.0030.00615.28
7.0.300.0060.00615.41
7.0.290.0030.01215.12
7.0.280.0090.00315.28
7.0.270.0100.00315.33
7.0.260.0030.00515.32
7.0.250.0030.01015.51
7.0.240.0060.00315.36
7.0.230.0030.01015.06
7.0.220.0140.00015.23
7.0.210.0090.00615.46
7.0.200.0030.00915.85
7.0.190.0050.00815.35
7.0.180.0060.00615.20
7.0.170.0100.00315.35
7.0.160.0110.00415.42
7.0.150.0000.01015.44
7.0.140.0030.00915.16
7.0.130.0080.00415.33
7.0.120.0030.00715.37
7.0.110.0000.00915.20
7.0.100.0040.01115.30
7.0.90.0040.00815.31
7.0.80.0180.04317.56
7.0.70.0220.04217.60
7.0.60.0270.04017.53
7.0.50.0350.04217.85
7.0.40.0080.04016.78
7.0.30.0080.02316.61
7.0.20.0080.04516.78
7.0.10.0080.04016.64
7.0.00.0070.04816.65
5.6.400.0000.01614.36
5.6.390.0030.00914.11
5.6.380.0000.01214.09
5.6.370.0000.01414.31
5.6.360.0070.00714.24
5.6.350.0000.01114.23
5.6.340.0090.00014.23
5.6.330.0060.00614.09
5.6.320.0000.01213.95
5.6.310.0090.00614.18
5.6.300.0060.00814.36
5.6.290.0030.01214.34
5.6.280.0040.03217.61
5.6.270.0030.01014.43
5.6.260.0030.01214.10
5.6.250.0080.00014.32
5.6.240.0030.01014.10
5.6.230.0050.02817.42
5.6.220.0030.02817.32
5.6.210.0050.03017.23
5.6.200.0070.04017.46
5.6.190.0080.04217.67
5.6.180.0100.04317.57
5.6.170.0090.04417.54
5.6.160.0070.04517.63
5.6.150.0070.04717.56
5.6.140.0050.03217.54
5.6.130.0080.04817.50
5.6.120.0030.04617.54
5.6.110.0100.04317.68
5.6.100.0070.02717.75
5.6.90.0050.02817.54
5.6.80.0020.04817.15
5.6.70.0050.04217.35
5.6.60.0050.02917.20
5.6.50.0070.04117.09
5.6.40.0050.03617.13
5.6.30.0100.01717.06
5.6.20.0050.04517.25
5.6.10.0050.04017.16
5.6.00.0050.04117.30
5.5.380.0080.00613.82
5.5.370.0060.04517.29
5.5.360.0110.02317.34
5.5.350.0050.03017.22
5.5.340.0080.04117.26
5.5.330.0030.03717.54
5.5.320.0110.04017.25
5.5.310.0120.03717.27
5.5.300.0120.03717.37
5.5.290.0030.03217.29
5.5.280.0030.04317.58
5.5.270.0090.02817.48
5.5.260.0070.03117.55
5.5.250.0020.04417.17
5.5.240.0120.02216.99
5.5.230.0100.02316.99
5.5.220.0030.03717.05
5.5.210.0140.02717.27
5.5.200.0050.03117.06
5.5.190.0060.02316.99
5.5.180.0110.04117.26
5.5.170.0050.00514.05
5.5.160.0020.02717.15
5.5.150.0050.04717.01
5.5.140.0110.03517.00
5.5.130.0050.04117.06
5.5.120.0090.03516.91
5.5.110.0130.03517.00
5.5.100.0130.03716.92
5.5.90.0030.03017.05
5.5.80.0070.04516.97
5.5.70.0100.03317.05
5.5.60.0020.04017.08
5.5.50.0030.04516.85
5.5.40.0050.02217.05
5.5.30.0020.04417.13
5.5.20.0100.03816.93
5.5.10.0090.02217.03
5.5.00.0050.04416.90
5.4.450.0070.05019.37
5.4.440.0170.05019.37
5.4.430.0130.07719.44
5.4.420.0100.04319.35
5.4.410.0100.07319.29
5.4.400.0130.06319.14
5.4.390.0030.05019.03
5.4.380.0130.07019.18
5.4.370.0070.07319.15
5.4.360.0100.07018.87
5.4.350.0030.04319.03
5.4.340.0030.06719.07
5.4.320.0000.04318.85
5.4.310.0130.06719.21
5.4.300.0030.04718.84
5.4.290.0070.04719.12
5.4.280.0130.06719.20
5.4.270.0030.05019.05
5.4.260.0070.07718.94
5.4.250.0130.05018.93
5.4.240.0000.07719.03
5.4.230.0000.05719.09
5.4.220.0230.05319.09
5.4.210.0030.08019.03
5.4.200.0070.04018.87
5.4.190.0100.07319.02
5.4.180.0130.04019.03
5.4.170.0000.04018.89
5.4.160.0100.07718.82
5.4.150.0000.05319.14
5.4.140.0030.08016.45
5.4.130.0070.07316.44
5.4.120.0100.06016.41
5.4.110.0170.07016.32
5.4.100.0030.05016.48
5.4.90.0100.07316.27
5.4.80.0130.04716.41
5.4.70.0070.04716.25
5.4.60.0030.04016.46
5.4.50.0070.05716.41
5.4.40.0100.07316.42
5.4.30.0070.04016.40
5.4.20.0100.04016.47
5.4.10.0130.07016.48
5.4.00.0030.07315.94
5.3.290.0030.05314.73
5.3.280.0000.05714.58
5.3.270.0000.04314.56
5.3.260.0030.08314.53
5.3.250.0070.07314.59
5.3.240.0100.07314.56
5.3.230.0070.07714.65
5.3.220.0070.06014.54
5.3.210.0100.04014.52
5.3.200.0030.08014.58
5.3.190.0100.05714.68
5.3.180.0000.07014.65
5.3.170.0070.07714.50
5.3.160.0030.04014.57
5.3.150.0070.05314.63
5.3.140.0030.05314.45
5.3.130.0070.06714.61
5.3.120.0070.07714.48
5.3.110.0130.07014.58
5.3.100.0100.07314.11
5.3.90.0070.07314.14
5.3.80.0030.04714.12
5.3.70.0070.05714.07
5.3.60.0130.04013.90
5.3.50.0030.08013.83
5.3.40.0100.07314.04
5.3.30.0070.07713.96
5.3.20.0070.07013.61
5.3.10.0030.04713.75
5.3.00.0130.06313.62
5.2.170.0230.04311.77
5.2.160.0070.06311.77
5.2.150.0070.03711.77
5.2.140.0070.05011.77
5.2.130.0030.05711.77
5.2.120.0000.05011.77
5.2.110.0100.05311.77
5.2.100.0070.06011.77
5.2.90.0070.06011.77
5.2.80.0030.05011.77
5.2.70.0030.06711.77
5.2.60.0070.05011.77
5.2.50.0030.05311.77
5.2.40.0030.03311.77
5.2.30.0030.06311.77
5.2.20.0100.05311.77
5.2.10.0100.05311.77
5.2.00.0100.04311.77
5.1.60.0030.04711.77
5.1.50.0070.05011.77
5.1.40.0070.05011.77
5.1.30.0030.06011.77
5.1.20.0030.06011.77
5.1.10.0070.04711.77
5.1.00.0030.05711.77
5.0.50.0070.04311.77
5.0.40.0070.04011.77
5.0.30.0030.06711.77
5.0.20.0000.03311.77
5.0.10.0100.03711.77
5.0.00.0030.06311.77
4.4.90.0000.03711.77
4.4.80.0030.02311.77
4.4.70.0030.03711.77
4.4.60.0070.03011.77
4.4.50.0000.04011.77
4.4.40.0070.04711.77
4.4.30.0000.03711.77
4.4.20.0030.03311.77
4.4.10.0000.03011.77
4.4.00.0000.06011.77
4.3.110.0030.03311.77
4.3.100.0030.03311.77
4.3.90.0070.03011.77
4.3.80.0030.05011.77
4.3.70.0000.03011.77
4.3.60.0000.03011.77
4.3.50.0000.03011.77
4.3.40.0030.04011.77
4.3.30.0030.03311.77
4.3.20.0000.03711.77
4.3.10.0000.02711.77
4.3.00.0000.02011.77

preferences:
44.13 ms | 403 KiB | 5 Q