3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = array(); $y = array(2, 4); echo var_dump(array_diff($x, array_keys($y));

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)
5.6.80.0030.03720.37
5.5.240.0030.07720.36
5.4.400.0130.06318.78
5.4.390.0130.06018.81
5.4.380.0370.06318.54
5.4.370.0130.06018.46
5.4.360.0200.05718.73
5.4.350.0300.04318.72
5.4.340.0170.05718.49
5.4.320.0130.06018.80
5.4.310.0300.06318.78
5.4.300.0200.05718.54
5.4.290.0230.04718.56
5.4.280.0200.05018.59
5.4.270.0230.04718.76
5.4.260.0100.06318.71
5.4.250.0070.06718.61
5.4.240.0230.05718.49
5.4.230.0170.05318.57
5.4.220.0270.05018.67
5.4.210.0570.06318.79
5.4.200.0200.04716.58
5.4.190.0130.06018.57
5.4.180.0230.04718.73
5.4.170.0100.06318.48
5.4.160.0230.04718.74
5.4.150.0130.05718.50
5.4.140.0270.04316.31
5.4.130.0130.06716.14
5.4.120.0170.05316.17
5.4.110.0330.03316.17
5.4.100.0230.05716.25
5.4.90.0200.05016.28
5.4.80.0170.05316.22
5.4.70.0200.05016.26
5.4.60.0200.04716.27
5.4.50.0330.05016.13
5.4.40.0230.04716.26
5.4.30.0200.06016.29
5.4.20.0170.05316.25
5.4.10.0230.04016.13
5.4.00.0130.05015.77
5.3.290.0100.06014.66
5.3.280.0130.06714.68
5.3.270.0130.06314.63
5.3.260.0230.08014.51
5.3.250.0230.04314.50
5.3.240.0170.05314.61
5.3.230.0230.05014.69
5.3.220.0100.05714.52
5.3.210.0200.05714.56
5.3.200.0070.05714.46
5.3.190.0200.05314.59
5.3.180.0170.05014.48
5.3.170.0170.05314.63
5.3.160.0200.04714.51
5.3.150.0130.05714.54
5.3.140.0200.05014.54
5.3.130.0100.06314.48
5.3.120.0200.05014.52
5.3.110.0200.05714.49
5.3.100.0170.05314.15
5.3.90.0270.04714.00
5.3.80.0230.05013.93
5.3.70.0200.05013.93
5.3.60.0170.05013.93
5.3.50.0170.05713.93
5.3.40.0100.06013.98
5.3.30.0170.05713.80
5.3.20.0230.05013.79
5.3.10.0170.04713.61
5.3.00.0230.04313.63
5.2.170.0100.04311.09
5.2.160.0100.04711.17
5.2.150.0100.05311.05
5.2.140.0070.05311.18
5.2.130.0100.04711.14
5.2.120.0100.05311.02
5.2.110.0130.06011.10
5.2.100.0100.04711.16
5.2.90.0100.04311.08
5.2.80.0200.03311.13
5.2.70.0200.03711.23
5.2.60.0200.05311.04
5.2.50.0270.04711.07
5.2.40.0100.04711.15
5.2.30.0070.04710.88
5.2.20.0100.04711.11
5.2.10.0170.04010.91
5.2.00.0170.05710.73
5.1.60.0130.03710.02
5.1.50.0130.04710.11
5.1.40.0170.03010.03
5.1.30.0170.03310.39
5.1.20.0130.04310.46
5.1.10.0130.03710.08
5.1.00.0100.03710.21
5.0.50.0100.0278.60
5.0.40.0100.0278.48
5.0.30.0070.0578.29
5.0.20.0100.0308.38
5.0.10.0100.0278.20
5.0.00.0070.0438.19
4.4.90.0070.0236.61
4.4.80.0100.0206.61
4.4.70.0070.0276.61
4.4.60.0100.0236.61
4.4.50.0030.0376.61
4.4.40.0070.0476.61
4.4.30.0170.0236.61
4.4.20.0070.0276.61
4.4.10.0070.0236.61
4.4.00.0100.0476.61
4.3.110.0070.0276.61
4.3.100.0070.0236.61
4.3.90.0100.0176.61
4.3.80.0070.0376.61
4.3.70.0030.0306.61
4.3.60.0030.0236.61
4.3.50.0030.0276.61
4.3.40.0000.0436.61
4.3.30.0030.0236.61
4.3.20.0000.0306.61
4.3.10.0030.0236.61
4.3.00.0100.0306.82

preferences:
145.66 ms | 1394 KiB | 7 Q