3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ["a", "b", "c"]; $index = array_search("z", $a); echo $a[$index] // produziert "a";

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.0130.05320.38
5.6.70.3530.03720.43
5.5.240.0230.04720.20
5.4.400.1030.06019.09
5.4.390.0130.05318.72
5.4.380.0230.04318.57
5.4.370.0130.05318.68
5.4.360.0230.04718.53
5.4.350.0200.05018.66
5.4.340.0300.05018.69
5.4.320.0130.06718.59
5.4.310.0130.05718.72
5.4.300.0200.04718.52
5.4.290.0230.05018.52
5.4.280.0270.06718.78
5.4.270.0270.06718.58
5.4.260.0330.06018.62
5.4.250.0370.06018.55
5.4.240.0170.06018.49
5.4.230.0170.05318.55
5.4.220.0230.05018.71
5.4.210.0270.04318.73
5.4.200.0200.04716.63
5.4.190.0230.05318.70
5.4.180.0230.07018.61
5.4.170.0300.04018.45
5.4.160.0170.05318.47
5.4.150.0230.04718.43
5.4.140.0200.05316.12
5.4.130.0170.05016.19
5.4.120.0200.04716.25
5.4.110.0230.04316.04
5.4.100.0230.05716.26
5.4.90.0200.05016.12
5.4.80.0230.04316.20
5.4.70.0200.04716.23
5.4.60.0170.04716.17
5.4.50.0130.05316.12
5.4.40.0200.04716.04
5.4.30.0100.05716.13
5.4.20.0200.04716.12
5.4.10.0230.05716.21
5.4.00.0130.05715.70
5.3.290.0270.05714.58
5.3.280.0100.06314.50
5.3.270.0130.06014.54
5.3.260.0070.06314.53
5.3.250.0200.04714.54
5.3.240.0200.04714.68
5.3.230.0170.05314.58
5.3.220.0100.07014.49
5.3.210.0170.05714.55
5.3.200.0170.05314.65
5.3.190.0270.06014.48
5.3.180.0270.06314.49
5.3.170.0130.07714.59
5.3.160.0170.07014.61
5.3.150.0330.05714.66
5.3.140.0200.05014.47
5.3.130.0230.05014.52
5.3.120.0170.05714.50
5.3.110.0170.05714.54
5.3.100.0230.05013.95
5.3.90.0200.05313.94
5.3.80.0130.07014.09
5.3.70.0170.05314.11
5.3.60.0300.04713.97
5.3.50.0170.07013.89
5.3.40.0230.06713.94
5.3.30.0200.06013.80
5.3.20.0230.04313.64
5.3.10.0170.05013.59
5.3.00.0130.06313.72
5.2.170.0230.04311.28
5.2.160.0200.03311.30
5.2.150.0130.04011.12
5.2.140.0130.04311.11
5.2.130.0270.02711.09
5.2.120.0070.04711.14
5.2.110.0170.04011.23
5.2.100.0100.04311.07
5.2.90.0070.04311.25
5.2.80.0170.03711.10
5.2.70.0230.03011.07
5.2.60.0170.03710.99
5.2.50.0270.04311.02
5.2.40.0270.03710.87
5.2.30.0230.04710.96
5.2.20.0200.04310.96
5.2.10.0100.04010.85
5.2.00.0170.04010.68
5.1.60.0100.04010.05
5.1.50.0130.05010.13
5.1.40.0270.03710.02
5.1.30.0230.04010.39
5.1.20.0230.03710.40
5.1.10.0130.03310.05
5.1.00.0100.03710.12
5.0.50.0070.0308.57
5.0.40.0170.0308.48
5.0.30.0070.0438.29
5.0.20.0030.0308.34
5.0.10.0070.0278.15
5.0.00.0070.0438.18
4.4.90.0070.0205.90
4.4.80.0100.0175.89
4.4.70.0000.0275.90
4.4.60.0070.0205.82
4.4.50.0130.0175.83
4.4.40.0070.0335.91
4.4.30.0100.0205.92
4.4.20.0130.0135.96
4.4.10.0100.0175.95
4.4.00.0000.0405.90
4.3.110.0000.0275.82
4.3.100.0070.0205.75
4.3.90.0070.0205.80
4.3.80.0100.0275.81
4.3.70.0070.0205.78
4.3.60.0000.0275.86
4.3.50.0070.0205.78
4.3.40.0030.0335.88
4.3.30.0000.0274.55
4.3.20.0070.0204.55
4.3.10.0000.0274.61
4.3.00.0230.02714.42

preferences:
128.65 ms | 1398 KiB | 7 Q