3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = microtime(true); echo 'a'.'<a'; $time = microtime(true) - $time; echo 'array_diff() took ' . number_format($time, 3) . ' seconds and returned ' . count($data_diff1) . " entries\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.10.0110.00516.69
7.3.00.0070.00716.48
7.2.130.0110.00817.06
7.2.120.0170.00617.02
7.2.110.0060.01316.95
7.2.100.0130.00716.70
7.2.90.0000.01516.80
7.2.80.0000.01416.87
7.2.70.0040.01116.92
7.2.60.0000.01517.03
7.2.50.0120.00816.98
7.2.40.0000.01417.07
7.2.30.0060.00317.04
7.2.20.0070.00716.92
7.2.10.0090.00316.95
7.2.00.0070.00718.15
7.1.250.0050.01415.90
7.1.70.0000.01017.13
7.1.60.0000.01117.29
7.1.50.0040.01816.63
7.1.00.0030.03322.30
7.0.200.0090.00916.73
7.0.140.0030.07322.07
7.0.60.0030.04320.04
7.0.50.0000.05017.88
7.0.40.0100.08720.24
7.0.30.0300.07320.23
7.0.20.0300.07720.17
7.0.10.0270.08320.20
7.0.00.0100.07720.11
5.6.280.0070.07020.88
5.6.210.0100.03720.75
5.6.200.0070.06718.14
5.6.190.0100.04720.38
5.6.180.0200.07720.64
5.6.170.0270.08720.59
5.6.160.0070.04320.71
5.6.150.0070.05318.18
5.6.140.0070.08018.12
5.6.130.0070.07318.12
5.6.120.0000.04321.13
5.6.110.0100.07020.98
5.6.100.0070.08021.10
5.6.90.0170.06021.09
5.6.80.0100.05020.52
5.6.70.0230.05320.38
5.5.350.0000.09020.32
5.5.340.0000.04317.98
5.5.330.0000.04720.36
5.5.320.0170.04320.50
5.5.310.0200.04020.26
5.5.300.0070.07318.00
5.5.290.0100.07317.92
5.5.280.0130.06320.87
5.5.270.0070.03720.87
5.5.260.0100.05020.96
5.5.250.0100.08320.68
5.5.240.0070.08320.03
5.4.450.0270.07019.39
5.4.440.0170.06019.55
5.4.430.0130.06019.59
5.4.420.0300.04319.60
5.4.410.0130.05719.31
5.4.400.0370.05018.72
5.4.390.0200.06018.50
5.4.380.0270.05018.69
5.4.370.0100.06018.69
5.4.360.0170.05018.73
5.4.350.0060.04111.98
5.4.340.0190.09311.97
5.4.320.0070.04312.45
5.4.310.0060.04012.45
5.4.300.0090.03912.45
5.4.290.0070.04212.45
5.4.280.0070.04112.35
5.4.270.0090.03912.35
5.4.260.0030.04112.35
5.4.250.0130.05018.75
5.4.240.0100.05018.88
5.4.230.0100.05018.85
5.4.220.0100.05318.98
5.4.210.0170.04318.96
5.4.200.0000.06718.86
5.4.190.0100.05318.91
5.4.180.0100.05018.98
5.4.170.0170.04718.71
5.4.160.0170.04318.74
5.4.150.0200.04018.79
5.4.140.0100.04716.46
5.4.130.0100.04316.36
5.4.120.0030.05016.30
5.4.110.0170.04716.47
5.4.100.0000.05316.33
5.4.90.0030.06016.34
5.4.80.0030.05016.23
5.4.70.0070.04716.46
5.4.60.0030.05016.31
5.4.50.0030.07016.38
5.4.40.0070.04716.43
5.4.30.0100.07016.25
5.4.20.0100.04316.25
5.4.10.0130.04316.30
5.4.00.0070.04715.93
5.3.290.0050.04712.80
5.3.280.0070.06014.36
5.3.270.0030.06314.59
5.3.260.0070.05314.38
5.3.250.0100.04714.68
5.3.240.0070.05714.46
5.3.230.0130.05014.45
5.3.220.0100.04714.63
5.3.210.0100.05014.45
5.3.200.0130.04314.66
5.3.190.0100.04714.46
5.3.180.0030.05314.64
5.3.170.0170.04014.63
5.3.160.0030.07714.71
5.3.150.0070.05014.43
5.3.140.0070.04714.62
5.3.130.0130.05014.70
5.3.120.0100.04714.59
5.3.110.0100.05014.70
5.3.100.0000.05314.11
5.3.90.0030.05013.99
5.3.80.0100.06714.09
5.3.70.0100.05314.09
5.3.60.0070.05013.91
5.3.50.0100.04713.96
5.3.40.0000.05313.83
5.3.30.0030.05013.79
5.3.20.0070.04713.60
5.3.10.0100.04313.66
5.3.00.0030.05313.41
5.2.170.0130.03311.43
5.2.160.0100.03311.25
5.2.150.0100.05311.25
5.2.140.0070.04011.09
5.2.130.0100.03711.23
5.2.120.0170.02711.29
5.2.110.0100.03711.28
5.2.100.0030.04011.30
5.2.90.0130.03311.38
5.2.80.0070.04011.11
5.2.70.0070.04011.04
5.2.60.0070.06011.10
5.2.50.0030.04011.11
5.2.40.0030.04011.05
5.2.30.0130.03711.17
5.2.20.0030.04011.08
5.2.10.0030.03711.01
5.2.00.0070.03710.74
5.1.60.0000.03710.15
5.1.50.0030.03310.24
5.1.40.0100.03010.32
5.1.30.0130.04310.59
5.1.20.0030.03710.49
5.1.10.0000.03710.21
5.1.00.0100.04310.21
5.0.50.0030.0278.77
5.0.40.0030.0278.72
5.0.30.0030.0608.46
5.0.20.0030.0278.44
5.0.10.0070.0238.29
5.0.00.0100.0338.36
4.4.90.0030.0207.28
4.4.80.0000.0237.28
4.4.70.0100.0137.28
4.4.60.0070.0277.28
4.4.50.0000.0237.28
4.4.40.0100.0277.28
4.4.30.0030.0207.28
4.4.20.0000.0237.28
4.4.10.0030.0277.28
4.4.00.0030.0307.28
4.3.110.0000.0337.28
4.3.100.0000.0237.28
4.3.90.0030.0207.28
4.3.80.0000.0337.28
4.3.70.0030.0207.28
4.3.60.0000.0237.28
4.3.50.0000.0237.28
4.3.40.0000.0377.28
4.3.30.0000.0207.28
4.3.20.0030.0277.28
4.3.10.0000.0237.28
4.3.00.0070.0206.34

preferences:
37.74 ms | 400 KiB | 5 Q