3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = microtime(true); for ($i = 0; $i < 1000; $i++) { md5($i); } echo (microtime(true) - $start) . "\n"; $start = microtime(true); for ($i = 0; $i < 1000; $i++) { sha1($i); } echo (microtime(true) - $start) . "\n";

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.0030.01014.95
7.3.110.0040.01414.59
7.3.100.0070.01114.68
7.3.90.0090.00614.72
7.3.80.0030.01314.81
7.3.70.0060.00914.91
7.3.60.0100.00714.81
7.3.50.0070.00714.92
7.3.40.0110.00414.83
7.3.30.0060.00915.03
7.3.20.0080.01216.76
7.3.10.0090.00916.34
7.3.00.0030.01316.65
7.2.240.0100.00314.88
7.2.230.0050.00515.23
7.2.220.0030.01314.77
7.2.210.0090.00915.20
7.2.200.0060.01215.17
7.2.190.0040.01515.14
7.2.180.0000.01515.13
7.2.170.0070.01014.79
7.2.160.0060.00914.73
7.2.150.0060.00917.02
7.2.140.0000.01617.12
7.2.130.0070.01116.89
7.2.120.0060.00916.99
7.2.110.0060.00917.07
7.2.100.0120.00416.96
7.2.90.0090.00616.99
7.2.80.0060.00316.72
7.2.70.0110.00317.12
7.2.60.0060.01216.99
7.2.50.0030.01616.98
7.2.40.0060.01216.91
7.2.30.0070.01016.82
7.2.20.0100.01017.06
7.2.10.0070.01016.77
7.2.00.0060.00618.26
7.1.330.0090.00615.57
7.1.320.0040.00815.64
7.1.310.0120.00315.68
7.1.300.0040.01115.85
7.1.290.0110.00415.57
7.1.280.0070.01015.56
7.1.270.0060.00915.78
7.1.260.0030.00615.84
7.1.250.0060.00615.51
7.1.70.0110.00717.21
7.1.60.0050.01017.31
7.1.50.0080.00817.07
7.1.40.0040.01116.68
7.1.30.0040.01316.72
7.1.20.0100.01716.79
7.1.10.0000.01316.76
7.1.00.0060.00416.82
7.0.200.0030.01016.69
7.0.190.0080.00416.84
7.0.180.0050.00916.33
7.0.170.0070.01116.17
7.0.160.0110.00416.29
7.0.150.0070.00716.34
7.0.140.0130.00316.42
7.0.130.0060.00616.27
7.0.120.0080.00816.64
7.0.110.0000.01316.43
7.0.100.0000.01416.41
7.0.90.0030.01216.39
7.0.80.0060.00916.32
7.0.70.0100.00316.55
7.0.60.0070.01015.96
7.0.50.0090.00316.44
7.0.40.0070.00715.38
7.0.30.0090.00915.38
7.0.20.0080.00415.38
7.0.10.0040.00815.38
7.0.00.0030.00915.38
5.6.300.0060.04720.67
5.6.290.0120.03920.89
5.6.280.0030.05320.94
5.6.270.0070.04321.04
5.6.260.0070.08520.87
5.6.250.0000.05121.07
5.6.240.0070.05420.92
5.6.230.0070.06120.88
5.6.220.0070.06420.86
5.6.210.0240.03320.95
5.6.200.0100.04420.82
5.6.190.0190.06820.95
5.6.180.0240.06621.04
5.6.170.0070.04721.02
5.6.160.0030.04920.98
5.6.150.0090.04020.92
5.6.140.0070.04720.72
5.6.130.0070.04720.91
5.6.120.0080.05020.76
5.6.110.0000.06120.82
5.6.100.0040.04920.97
5.6.90.0160.07420.80
5.6.80.0030.04520.24
5.6.70.0090.04720.35
5.6.60.0070.04920.21
5.6.50.0070.04420.15
5.6.40.0000.08020.31
5.6.30.0100.06120.40
5.6.20.0100.03620.40
5.6.10.0070.04920.17
5.6.00.0140.03520.16
5.5.380.0100.03817.55
5.5.370.0040.07517.57
5.5.360.0000.06917.56
5.5.350.0000.04917.40
5.5.340.0000.05618.03
5.5.330.0000.07917.84
5.5.320.0000.04818.00
5.5.310.0120.03318.06
5.5.300.0060.03818.07
5.5.290.0030.04817.74
5.5.280.0030.08618.05
5.5.270.0000.05518.01
5.5.260.0070.07017.73
5.5.250.0070.07017.55
5.5.240.0040.04317.35
5.5.230.0100.03517.49
5.5.220.0100.03417.08
5.5.210.0220.04517.34
5.5.200.0000.04717.32
5.5.190.0000.04817.32
5.5.180.0070.04017.37
5.5.160.0030.04117.35
5.5.150.0070.03817.29
5.5.140.0000.04317.40
5.5.130.0060.05217.32
5.5.120.0100.07817.09
5.5.110.0030.04417.34
5.5.100.0040.04017.11
5.5.90.0070.06217.28
5.5.80.0190.05717.36
5.5.70.0060.03916.98
5.5.60.0130.07416.98
5.5.50.0030.04117.20
5.5.40.0070.04017.24
5.5.30.0030.05717.18
5.5.20.0110.03617.07
5.5.10.0030.07717.28
5.5.00.0000.04517.26
5.4.450.0090.04019.50
5.4.440.0000.04619.35
5.4.430.0200.03919.23
5.4.420.0030.07619.42
5.4.410.0030.04719.33
5.4.400.0000.04418.88
5.4.390.0030.04518.93
5.4.380.0030.04518.97
5.4.370.0000.04619.05
5.4.360.0070.05019.14
5.4.350.0000.04819.15
5.4.340.0000.04519.14
5.4.320.0030.04618.88
5.4.310.0030.03919.01
5.4.300.0030.03919.07
5.4.290.0090.05018.86
5.4.280.0030.04119.16
5.4.270.0100.04819.06
5.4.260.0000.04518.85
5.4.250.0070.04419.05
5.4.240.0000.04518.84
5.4.230.0100.03318.82
5.4.220.0000.05118.97
5.4.210.0000.04319.00
5.4.200.0030.04119.09
5.4.190.0090.03818.97
5.4.180.0030.04619.13
5.4.170.0000.05019.03
5.4.160.0030.04318.98
5.4.150.0070.04319.15
5.4.140.0000.04316.50
5.4.130.0140.04116.39
5.4.120.0000.04016.52
5.4.110.0060.05716.46
5.4.100.0130.02816.50
5.4.90.0030.03616.52
5.4.80.0070.03816.45
5.4.70.0110.02916.60
5.4.60.0030.04616.33
5.4.50.0030.04516.32
5.4.40.0070.04316.58
5.4.30.0070.04616.65
5.4.20.0070.07516.32
5.4.10.0070.04016.59
5.4.00.0030.03916.05
5.3.290.0250.03215.38
5.3.280.0040.03915.38
5.3.270.0000.07515.38
5.3.260.0070.05215.38
5.3.250.0030.04115.38
5.3.240.0160.04515.38
5.3.230.0030.04315.38
5.3.220.0120.02815.38
5.3.210.0000.09115.38
5.3.200.0100.03515.38
5.3.190.0130.07515.38
5.3.180.0030.05415.38
5.3.170.0030.05615.38
5.3.160.0070.04015.38
5.3.150.0060.03515.38
5.3.140.0070.03615.38
5.3.130.0060.04915.38
5.3.120.0060.03815.38
5.3.110.0070.06115.38
5.3.100.0070.06615.38
5.3.90.0060.03615.38
5.3.80.0100.03315.38
5.3.70.0070.05615.38
5.3.60.0060.04715.38
5.3.50.0040.03915.38
5.3.40.0000.04115.38
5.3.30.0030.06515.38
5.3.20.0140.03515.38
5.3.10.0000.05215.38
5.3.00.0090.03115.38

preferences:
32.9 ms | 401 KiB | 5 Q