3v4l.org

run code in 300+ PHP versions simultaneously
<?php defined('DS') or define('DS', DIRECTORY_SEPARATOR); defined('DS') or print("Not definded DS in program."); $x==3 and $x = rand(1, 99);

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.01514.84
7.4.00.0070.01014.79
7.3.130.0110.00714.69
7.3.120.0080.00914.66
7.3.110.0090.00914.79
7.3.100.0080.00514.56
7.3.90.0090.00514.78
7.3.80.0100.00614.88
7.3.70.0000.01214.69
7.3.60.0050.01114.62
7.3.50.0030.00914.68
7.3.40.0080.00714.76
7.3.30.0080.00714.70
7.3.20.0030.00816.62
7.3.10.0070.00216.36
7.3.00.0050.00916.54
7.2.260.0060.01214.95
7.2.250.0040.01114.95
7.2.240.0050.01114.99
7.2.230.0130.00414.85
7.2.220.0080.00614.81
7.2.210.0040.00814.84
7.2.200.0050.00714.87
7.2.190.0030.01215.00
7.2.180.0020.01115.03
7.2.170.0060.00715.05
7.2.160.0030.00614.51
7.2.150.0000.01016.79
7.2.140.0140.00016.87
7.2.130.0030.00716.71
7.2.120.0030.00616.77
7.2.110.0060.00317.00
7.2.100.0100.00616.81
7.2.90.0030.01316.89
7.2.80.0110.00416.70
7.2.70.0050.00516.64
7.2.60.0110.00416.79
7.2.50.0060.00616.93
7.2.40.0310.01217.25
7.2.30.0620.00917.42
7.2.20.0330.01217.35
7.2.10.0390.00817.29
7.2.00.0450.00917.20
7.1.330.0070.00815.80
7.1.320.0040.00815.71
7.1.310.0080.00315.55
7.1.300.0050.01015.74
7.1.290.0060.00815.67
7.1.280.0090.00415.79
7.1.270.0070.00815.76
7.1.260.0040.00615.75
7.1.250.0030.00715.57
7.1.240.0070.01015.77
7.1.230.0060.01215.71
7.1.220.0030.00715.80
7.1.210.0040.01215.71
7.1.200.0060.00615.77
7.1.190.0030.01015.68
7.1.180.0140.00015.68
7.1.170.0030.01215.66
7.1.160.0360.00716.22
7.1.150.0390.00816.16
7.1.140.0610.01016.36
7.1.130.0440.00716.03
7.1.120.0490.01316.13
7.1.110.0380.00816.06
7.1.100.0640.01116.05
7.1.90.0370.00916.01
7.1.80.0550.00915.89
7.1.70.0620.01115.35
7.1.60.0770.01224.50
7.1.50.0810.01124.30
7.1.40.0470.01024.04
7.1.30.0590.01223.88
7.1.20.0390.01524.16
7.1.10.0360.00815.11
7.1.00.0680.00915.34
7.0.330.0030.01015.38
7.0.320.0090.00315.48
7.0.310.0030.01015.39
7.0.300.0040.01115.22
7.0.290.0000.01215.46
7.0.280.0030.01015.05
7.0.270.0030.00915.29
7.0.260.0030.01315.44
7.0.250.0100.00315.43
7.0.240.0070.00315.54
7.0.230.0080.00615.51
7.0.220.0040.01115.44
7.0.210.0090.00615.45
7.0.200.0080.00415.53
7.0.190.0060.00915.49
7.0.180.0000.01015.17
7.0.170.0060.00915.31
7.0.160.0060.00915.17
7.0.150.0090.00315.54
7.0.140.0040.00815.35
7.0.130.0090.00615.34
7.0.120.0030.01315.62
7.0.110.0070.00715.56
7.0.100.0030.00915.41
7.0.90.0040.00415.52
7.0.80.0030.00915.41
7.0.70.0140.00315.29
7.0.60.0120.00315.37
7.0.50.0090.00615.51
7.0.40.0060.00613.57
7.0.30.0100.00313.46
7.0.20.0100.00613.54
7.0.10.0000.01113.30
7.0.00.0060.00813.43
5.6.400.0080.00014.54
5.6.390.0030.01014.39
5.6.380.0090.00614.39
5.6.370.0000.00914.18
5.6.360.0040.00413.72
5.6.350.0060.00614.56
5.6.340.0070.00714.23
5.6.330.0090.00614.47
5.6.320.0080.00613.80
5.6.310.0070.00714.02
5.6.300.0060.00614.31
5.6.290.0090.00613.78
5.6.280.0030.01414.31
5.6.270.0060.00914.42
5.6.260.0000.01214.14
5.6.250.0030.00614.48
5.6.240.0030.00914.03
5.6.230.0060.01014.22
5.6.220.0030.01414.28
5.6.210.0060.00914.39
5.6.200.0000.01114.13
5.6.190.0090.00314.43
5.6.180.0070.00714.49
5.6.170.0090.00014.02
5.6.160.0070.01014.03
5.6.150.0120.00814.46
5.6.140.0040.01214.09
5.6.130.0030.01314.29
5.6.120.0030.00714.10
5.6.110.0070.00714.39
5.6.100.0090.00314.01
5.6.90.0000.01014.07
5.6.80.0030.00714.16
5.6.70.0050.00513.95
5.6.60.0080.00614.00
5.6.50.0030.01014.27
5.6.40.0030.01014.02
5.6.30.0120.00314.14
5.6.20.0040.01114.00
5.6.10.0040.01114.11
5.6.00.0040.00414.21

preferences:
12.61 ms | 403 KiB | 5 Q