3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = microtime(true); $i=0; while($i < 60000) { unserialize(serialize(array('a'=>'b','c'=>'d'))); } $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.1.70.0002.50116.96
7.1.60.0172.48419.40
7.1.50.0102.49117.08
7.1.00.0032.49722.35
7.0.200.0002.50116.40
7.0.140.0032.49722.09
7.0.60.0072.49320.01
7.0.50.0132.48717.75
7.0.40.0102.49019.80
7.0.30.0102.49019.92
7.0.20.0202.48019.89
7.0.10.0002.50019.97
7.0.00.0032.49719.95
5.6.280.0072.49321.13
5.6.210.0102.49020.59
5.6.200.0032.49718.09
5.6.190.0002.50020.29
5.6.180.0102.49020.40
5.6.170.0202.48020.32
5.6.160.0072.49320.33
5.6.150.0072.49318.15
5.6.140.0032.49718.16
5.6.130.0032.49718.20
5.6.120.0032.49721.00
5.6.110.0102.49021.12
5.6.100.0072.49321.00
5.6.90.0172.48320.88
5.6.80.0032.49720.37
5.5.350.0132.44320.45
5.5.340.0102.44320.71
5.5.330.0102.46320.94
5.5.320.0032.19320.84
5.5.310.0171.86720.72
5.5.300.0202.03320.71
5.5.290.0301.29320.98
5.5.280.0471.28320.89
5.5.270.0271.77020.94
5.5.260.0202.03320.86
5.5.250.0132.44320.62
5.5.240.0302.41720.23
5.4.450.0301.57719.21
5.4.440.0301.09319.38
5.4.430.0171.72019.17
5.4.420.0101.98719.39
5.4.410.0202.35719.05
5.4.400.0232.43719.05
5.4.390.0332.30718.98
5.4.380.0072.42318.82
5.4.370.0072.43718.99
5.4.360.0302.23719.00
5.4.350.0132.04718.97
5.4.340.0171.78318.78
5.4.320.0301.68319.03
5.4.310.0371.50318.97
5.4.300.0372.00915.74
5.4.290.0152.18715.72
5.4.280.0192.21215.71
5.4.270.0172.20815.73
5.4.260.0282.25315.59
5.4.250.0122.22515.58
5.4.240.0262.20915.72
5.4.230.0422.19015.69
5.4.220.0262.18615.70
5.4.210.0202.08315.68
5.4.200.0131.98915.74
5.4.190.0171.96215.61
5.4.180.0221.99015.69
5.4.170.0241.99514.50
5.4.160.0151.96914.57
5.4.150.0272.01814.53
5.4.140.0342.02213.43
5.4.130.0292.04713.45
5.4.120.0201.97613.39
5.4.110.0262.16313.42
5.4.100.0232.09813.37
5.4.90.0202.13613.47
5.4.80.0162.24313.36
5.4.70.0182.21413.37
5.4.60.0182.17713.45
5.4.50.0202.21413.41
5.4.40.0182.17313.36
5.4.30.0232.24713.35
5.4.20.0202.07313.39
5.4.10.0322.00013.40
5.4.00.0202.03912.86
5.3.290.0371.78314.44
5.3.280.0112.24313.52
5.3.270.0192.07313.23
5.3.260.0242.00713.22
5.3.250.0332.04913.27
5.3.240.0311.95313.26
5.3.230.0232.07713.26
5.3.220.0182.18713.19
5.3.210.0162.15013.24
5.3.200.0172.21513.23
5.3.190.0532.18513.23
5.3.180.0312.15613.23
5.3.170.0232.12313.22
5.3.160.0152.16713.22
5.3.150.0232.15613.21
5.3.140.0192.13913.22
5.3.130.0132.14213.20
5.3.120.0142.17713.21
5.3.110.0312.02613.17
5.3.100.0212.07212.67
5.3.90.0202.01912.66
5.3.80.0201.99712.63
5.3.70.0142.00812.61
5.3.60.0152.06612.62
5.3.50.0241.96312.53
5.3.40.0202.06612.55
5.3.30.0262.14112.50
5.3.20.0332.15012.24

preferences:
30.29 ms | 401 KiB | 5 Q