3v4l.org

run code in 300+ PHP versions simultaneously
<?php $users = array_fill(0, 10000, 'name'); function userNames($users) { foreach($users as $user) { yield $user; } } $start = microtime(true) . PHP_EOL; foreach(userNames($users) as $name) { md5($name); } echo microtime(true) - $start; unset($start); echo str_repeat(PHP_EOL, 2); $start = microtime(true) . PHP_EOL; foreach($users as $name) { md5($name); } echo microtime(true) - $start;

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.0090.01515.14
7.4.00.0120.00915.21
7.3.130.0060.01314.96
7.3.120.0060.01515.16
7.3.110.0060.01915.39
7.3.100.0070.01514.89
7.3.90.0070.01615.20
7.3.80.0030.01015.25
7.3.70.0030.01615.07
7.3.60.0060.01215.27
7.3.50.0070.01115.27
7.3.40.0100.01015.09
7.3.30.0030.01715.28
7.3.20.0000.02016.89
7.3.10.0000.01516.65
7.3.00.0060.01316.41
7.2.260.0000.02215.45
7.2.250.0100.01615.22
7.2.240.0090.01215.20
7.2.230.0000.01815.08
7.2.220.0080.01115.28
7.2.210.0100.01315.24
7.2.200.0070.01615.55
7.2.190.0060.01315.46
7.2.180.0060.01315.30
7.2.170.0070.01515.25
7.2.160.0070.01015.22
7.2.150.0130.00917.05
7.2.140.0160.00317.02
7.2.130.0100.01316.96
7.2.120.0030.01716.92
7.2.110.0000.01916.69
7.2.100.0000.02216.95
7.2.90.0100.01017.02
7.2.80.0070.00716.96
7.2.70.0090.00916.98
7.2.60.0030.01617.00
7.2.50.0070.01316.96
7.2.40.0060.01316.80
7.2.30.0100.01017.09
7.2.20.0130.00716.70
7.2.10.0040.01416.88
7.2.00.0030.01818.09
7.1.330.0100.01315.48
7.1.320.0080.01115.64
7.1.310.0030.01815.75
7.1.300.0000.02215.55
7.1.290.0030.01715.46
7.1.280.0030.01315.77
7.1.270.0090.00615.96
7.1.260.0070.01715.73
7.1.250.0030.01915.70
7.1.240.0120.00915.60
7.1.230.0030.01716.02
7.1.220.0100.01315.57
7.1.210.0070.01315.55
7.1.200.0030.01315.82
7.1.190.0000.01915.77
7.1.180.0000.02115.59
7.1.170.0100.01315.99
7.1.160.0000.01815.51
7.1.150.0070.01115.86
7.1.140.0070.01415.86
7.1.130.0040.01815.78
7.1.120.0000.02115.68
7.1.110.0070.01015.76
7.1.100.0060.01515.79
7.1.90.0060.01615.84
7.1.80.0030.01715.85
7.1.70.0070.01216.59
7.1.60.0080.01116.48
7.1.50.0070.02016.43
7.1.40.0030.02015.64
7.1.30.0140.00715.60
7.1.20.0090.01215.74
7.1.10.0100.00715.80
7.1.00.0030.04919.03
7.0.330.0030.01915.19
7.0.320.0070.01415.35
7.0.310.0060.01215.13
7.0.300.0040.01915.41
7.0.290.0030.01715.50
7.0.280.0070.01615.60
7.0.270.0070.01315.61
7.0.260.0030.01615.21
7.0.250.0040.01515.34
7.0.240.0090.01215.47
7.0.230.0000.01815.48
7.0.220.0040.01115.29
7.0.210.0030.01515.57
7.0.200.0030.01915.98
7.0.190.0100.01015.50
7.0.180.0070.01315.46
7.0.170.0060.01315.40
7.0.160.0030.01315.41
7.0.150.0030.02015.27
7.0.140.0050.04918.69
7.0.130.0070.01415.21
7.0.120.0100.01015.55
7.0.110.0030.02015.40
7.0.100.0100.04917.86
7.0.90.0050.04717.93
7.0.80.0220.05217.95
7.0.70.0070.04917.73
7.0.60.0100.04317.79
7.0.50.0180.05117.98
7.0.40.0050.05216.77
7.0.30.0020.06116.67
7.0.20.0080.04816.84
7.0.10.0100.04516.71
7.0.00.0020.05716.74
5.6.400.0130.01316.09
5.6.390.0100.01616.14
5.6.380.0030.02215.83
5.6.370.0120.00915.90
5.6.360.0040.01816.07
5.6.350.0070.01416.00
5.6.340.0100.01716.26
5.6.330.0000.02615.84
5.6.320.0060.02116.16
5.6.310.0090.01916.10
5.6.300.0070.01616.19
5.6.290.0100.01416.31
5.6.280.0050.05219.58
5.6.270.0030.02016.15
5.6.260.0070.02116.45
5.6.250.0030.05319.27
5.6.240.0050.05219.40
5.6.230.0100.05019.19
5.6.220.0210.04519.28
5.6.210.0050.04619.04
5.6.200.0100.05119.50
5.6.190.0030.06219.47
5.6.180.0080.05319.47
5.6.170.0050.05919.37
5.6.160.0070.05719.45
5.6.150.0130.05019.59
5.6.140.0080.05519.65
5.6.130.0100.05219.36
5.6.120.0120.04919.56
5.6.110.0130.05519.48
5.6.100.0050.05619.58
5.6.90.0080.05819.54
5.6.80.0130.04919.16
5.6.70.0080.04519.00
5.6.60.0050.06019.12
5.6.50.0100.04819.16
5.6.40.0050.04119.16
5.6.30.0050.05819.21
5.6.20.0050.05519.18
5.6.10.0090.05219.12
5.6.00.0080.05219.16
5.5.380.0110.05119.29
5.5.370.0030.05819.25
5.5.360.0070.05919.14
5.5.350.0100.05119.05
5.5.340.0020.05519.49
5.5.330.0140.05019.41
5.5.320.0100.05319.38
5.5.310.0030.05819.55
5.5.300.0080.04819.38
5.5.290.0070.05119.11
5.5.280.0070.05919.39
5.5.270.0080.04619.45
5.5.260.0030.05519.40
5.5.250.0100.05419.20
5.5.240.0130.03419.02
5.5.230.0070.03818.91
5.5.220.0030.04619.04
5.5.210.0050.05618.90
5.5.200.0130.04519.10
5.5.190.0120.05119.09
5.5.180.0060.05819.04
5.5.170.0060.02015.88
5.5.160.0070.05818.99
5.5.150.0060.05418.88
5.5.140.0070.05718.98
5.5.130.0080.05419.04
5.5.120.0110.05219.05
5.5.110.0100.05618.87
5.5.100.0120.04519.02
5.5.90.0060.05418.88
5.5.80.0030.05818.92
5.5.70.0050.03518.72
5.5.60.0050.03718.86
5.5.50.0070.03918.92
5.5.40.0120.05218.87
5.5.30.0110.04618.88
5.5.20.0080.05218.94
5.5.10.0100.04818.84
5.5.00.0090.05218.79
5.4.450.0130.03115.13
5.4.440.0100.03815.20
5.4.430.0030.04114.99
5.4.420.0080.04015.10
5.4.410.0030.04215.16
5.4.400.0030.04114.86
5.4.390.0080.03314.82
5.4.380.0100.03814.62
5.4.370.0030.04414.88
5.4.360.0120.03514.74
5.4.350.0070.04314.84
5.4.340.0030.04214.93
5.4.330.0090.00310.73
5.4.320.0080.03814.79
5.4.310.0050.03214.89
5.4.300.0050.04214.87
5.4.290.0080.02314.85
5.4.280.0080.04314.99
5.4.270.0080.04014.93
5.4.260.0110.03314.88
5.4.250.0100.02514.93
5.4.240.0090.02914.83
5.4.230.0020.03215.02
5.4.220.0070.02514.83
5.4.210.0080.03315.03
5.4.200.0080.02614.97
5.4.190.0030.03614.86
5.4.180.0060.03814.69
5.4.170.0030.02514.89
5.4.160.0090.03914.68
5.4.150.0080.04014.88
5.4.140.0070.03013.56
5.4.130.0040.03713.63
5.4.120.0080.02313.61
5.4.110.0050.03413.56
5.4.100.0070.03713.68
5.4.90.0130.03313.52
5.4.80.0050.03813.61
5.4.70.0000.04313.54
5.4.60.0110.03513.52
5.4.50.0060.03913.71
5.4.40.0070.03713.72
5.4.30.0050.03813.60
5.4.20.0030.04213.53
5.4.10.0070.03613.62
5.4.00.0070.03213.30
5.3.290.0040.04312.43
5.3.280.0070.04312.39
5.3.270.0080.04012.38
5.3.260.0050.04112.35
5.3.250.0050.03512.47
5.3.240.0080.03712.48
5.3.230.0060.03712.46
5.3.220.0080.02412.42
5.3.210.0050.04112.38
5.3.200.0050.03912.39
5.3.190.0010.04312.43
5.3.180.0070.03612.46
5.3.170.0140.03312.45
5.3.160.0070.04212.57
5.3.150.0070.03812.36
5.3.140.0070.03912.49
5.3.130.0050.04212.36
5.3.120.0060.03212.49
5.3.110.0050.03612.48
5.3.100.0170.02712.04
5.3.90.0090.02912.16
5.3.80.0120.03712.10
5.3.70.0100.03212.21
5.3.60.0100.03812.15
5.3.50.0140.02912.12
5.3.40.0050.03012.06
5.3.30.0080.03511.95
5.3.20.0070.03611.85
5.3.10.0050.03211.92
5.3.00.0100.03511.93
5.2.170.0030.06011.26
5.2.160.0000.04011.20
5.2.150.0070.06311.20
5.2.140.0000.05011.16
5.2.130.0100.05311.08
5.2.120.0100.05711.16
5.2.110.0000.03711.16
5.2.100.0130.05711.21
5.2.90.0030.06311.14
5.2.80.0070.06311.16
5.2.70.0070.06311.01
5.2.60.0130.04710.92
5.2.50.0070.03311.01
5.2.40.0070.06011.11
5.2.30.0030.06710.83
5.2.20.0100.06010.83
5.2.10.0100.05311.00
5.2.00.0000.06710.84
5.1.60.0070.04010.00
5.1.50.0070.02710.06
5.1.40.0030.0509.88
5.1.30.0000.03310.46
5.1.20.0070.04310.38
5.1.10.0070.05010.15
5.1.00.0000.03710.08
5.0.50.0030.0408.54
5.0.40.0030.0378.50
5.0.30.0070.0608.32
5.0.20.0000.0478.09
5.0.10.0000.0308.29
5.0.00.0070.0308.04
4.4.90.0000.0378.03
4.4.80.0000.0338.03
4.4.70.0030.0208.03
4.4.60.0030.0278.03
4.4.50.0030.0378.03
4.4.40.0000.0378.03
4.4.30.0000.0208.03
4.4.20.0000.0378.03
4.4.10.0030.0308.03
4.4.00.0030.0578.03
4.3.110.0030.0178.03
4.3.100.0000.0378.03
4.3.90.0070.0308.03
4.3.80.0000.0408.03
4.3.70.0030.0308.03
4.3.60.0000.0178.03
4.3.50.0030.0338.03
4.3.40.0070.0478.03
4.3.30.0000.0338.03
4.3.20.0070.0138.03
4.3.10.0000.0378.03
4.3.00.0000.0378.03

preferences:
35.28 ms | 400 KiB | 5 Q