3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = microtime(true); $hash = 0; for ($i = 0; $i < 100000; $i += 1) { // XOR $hash ^= md5(substr(str_shuffle('0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'), 0, rand(1,10))); } $time = microtime(true) - $time; echo 'array_diff() took ' . number_format($time, 3) . ' seconds'.PHP_EOL;

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.2.00.0040.00819.16
7.1.70.0030.01416.71
7.1.60.0130.01319.70
7.1.50.0100.01716.86
7.1.00.0100.07322.48
7.0.200.0980.14514.63
7.0.140.0030.21321.92
7.0.60.0000.15319.91
7.0.50.0000.16717.81
7.0.40.0170.14319.98
7.0.30.0400.18020.12
7.0.20.0300.19719.99
7.0.10.0030.15020.13
7.0.00.0100.14720.19
5.6.280.0100.32021.11
5.6.210.0000.17020.70
5.6.200.0070.22018.22
5.6.190.0130.17020.60
5.6.180.0270.16020.43
5.6.170.0270.20320.38
5.6.160.0070.22720.50
5.6.150.0070.21718.12
5.6.140.0000.25018.11
5.6.130.0070.19318.16
5.6.120.0070.18320.96
5.6.110.0030.25721.13
5.6.100.0130.21721.07
5.6.90.0070.18021.13
5.6.80.0130.20320.40
5.5.350.0000.21720.40
5.5.340.0070.21317.90
5.5.330.0130.22320.44
5.5.320.0130.21020.38
5.5.310.0230.17720.19
5.5.300.0000.16317.98
5.5.290.0000.24317.89
5.5.280.0030.22720.69
5.5.270.0130.25320.72
5.5.260.0130.21020.86
5.5.250.0070.23720.57
5.5.240.3700.17720.23
5.4.450.0200.22019.21
5.4.440.0230.20719.57
5.4.430.0130.18719.41
5.4.420.0270.16019.48
5.4.410.0100.18019.27
5.4.400.0200.19718.92
5.4.390.0100.19318.78
5.4.380.0300.26018.65
5.4.370.0470.37018.64
5.4.360.0530.25018.73
5.4.350.0430.30718.69
5.4.340.0430.24018.74
5.4.320.0080.18012.46
5.4.310.0060.17312.46
5.4.300.0090.18912.46
5.4.290.0060.19212.46
5.4.280.0060.19712.36
5.4.270.0050.19912.36
5.4.260.0090.27112.36
5.4.250.0050.19512.36
5.4.240.0100.21412.36
5.4.230.0060.19212.35
5.4.220.0060.22712.35
5.4.210.0030.18512.35
5.4.200.0050.18312.35
5.4.190.0040.18512.34
5.4.180.0070.18712.35
5.4.170.0060.19712.36
5.4.160.0060.18812.35
5.4.150.0080.17812.35
5.4.140.0070.19212.03
5.4.130.0070.24412.02
5.4.120.0110.20711.98
5.4.110.0070.25211.98
5.4.100.0140.22411.97
5.4.90.0070.19711.98
5.4.80.0060.18211.98
5.4.70.0040.18911.97
5.4.60.0050.19511.97
5.4.50.0070.17811.98
5.4.40.0050.18011.96
5.4.30.0130.21411.96
5.4.20.0110.17911.96
5.4.10.0060.19511.96
5.4.00.0060.19211.45
5.3.290.0100.19212.80
5.3.280.0050.19312.71
5.3.270.0050.21312.72
5.3.260.0120.21212.72
5.3.250.0060.22512.72
5.3.240.0080.21012.72
5.3.230.0060.21612.71
5.3.220.0080.27312.68
5.3.210.0050.21612.68
5.3.200.0070.22012.68
5.3.190.0090.22912.68
5.3.180.0130.25312.68
5.3.170.0090.22912.67
5.3.160.0060.23212.67
5.3.150.0070.24212.67
5.3.140.0090.25112.66
5.3.130.0060.20212.66
5.3.120.0090.24812.66
5.3.110.0070.21612.66
5.3.100.0060.24912.12
5.3.90.0060.19812.08
5.3.80.0070.24312.08
5.3.70.0070.22712.08
5.3.60.0060.21412.06
5.3.50.0090.29412.00
5.3.40.0100.23312.00
5.3.30.0060.20411.95
5.3.20.0030.20911.73
5.3.10.0060.19111.70
5.3.00.0030.21411.68
5.2.170.0090.1999.22
5.2.160.0080.2489.22
5.2.150.0050.2839.23
5.2.140.0100.2009.22
5.2.130.0060.2189.18
5.2.120.0040.2429.19
5.2.110.0050.1979.19
5.2.100.0080.2059.18
5.2.90.0060.2129.18
5.2.80.0050.2259.18
5.2.70.0070.2499.18
5.2.60.0080.2619.13
5.2.50.0070.2259.10
5.2.40.0070.2769.08
5.2.30.0040.2799.05
5.2.20.0060.4419.07
5.2.10.0050.3388.97
5.2.00.0060.3758.83
5.1.60.0060.4348.12
5.1.50.0040.5708.12
5.1.40.0060.6168.10
5.1.30.0070.3988.45
5.1.20.0070.4858.47
5.1.10.0040.3458.20
5.1.00.0120.3888.20
5.0.50.0080.3886.67
5.0.40.0080.5106.53
5.0.30.0070.4866.34
5.0.20.0020.5586.31
5.0.10.0040.3486.29
5.0.00.0030.3926.29
4.4.90.0060.3974.78
4.4.80.0040.3744.75
4.4.70.0030.5164.75
4.4.60.0030.6014.75
4.4.50.0060.4544.77
4.4.40.0040.3644.71
4.4.30.0010.3714.76
4.4.20.0040.5484.84
4.4.10.0030.4234.84
4.4.00.0040.4094.76
4.3.110.0100.4374.66
4.3.100.0060.3924.67
4.3.90.0020.4104.63
4.3.80.0040.5484.61
4.3.70.0120.3654.63
4.3.60.0110.3704.63
4.3.50.0050.3504.63
4.3.40.0040.4534.54
4.3.30.0030.4483.33
4.3.20.0040.6093.31
4.3.10.0020.6543.27
4.3.00.0000.57316.92

preferences:
34.17 ms | 400 KiB | 5 Q