3v4l.org

run code in 300+ PHP versions simultaneously
<?php // between requires 3 comparisons: function between(input, a, b){ if(a<b){ // first return input >= a && input <= b; // second and third }else{ return input <= a && input >= b; // second and third } }

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.110.0030.06320.89
5.6.100.0070.08321.00
5.6.90.0130.08720.98
5.6.80.0030.05720.39
5.6.70.3270.03020.27
5.5.270.0070.06720.89
5.5.260.0100.05320.79
5.5.250.0170.07320.58
5.5.240.0070.06020.15
5.4.430.0330.04019.55
5.4.420.0300.06719.38
5.4.410.0300.04319.19
5.4.400.0230.03319.00
5.4.390.0300.04719.31
5.4.380.0200.03719.14
5.4.370.0200.07318.88
5.4.360.0200.07319.34
5.4.350.0270.06718.88
5.4.340.0130.04318.95
5.4.320.0200.05319.09
5.4.310.0130.04019.09
5.4.300.0230.04719.16
5.4.290.0170.04019.21
5.4.280.0230.07318.89
5.4.270.0230.07318.86
5.4.260.0270.05018.87
5.4.250.0270.03318.86
5.4.240.0300.07019.24
5.4.230.0270.03319.08
5.4.220.0270.07019.14
5.4.210.0170.07318.87
5.4.200.0200.05318.86
5.4.190.0200.04319.21
5.4.180.0200.03719.14
5.4.170.0200.06318.94
5.4.160.0230.05018.99
5.4.150.0270.06719.04
5.4.140.0130.07016.50
5.4.130.0200.03016.30
5.4.120.0200.06316.35
5.4.110.0200.07016.40
5.4.100.0230.06716.54
5.4.90.0130.04716.45
5.4.80.0130.07316.39
5.4.70.0230.04316.44
5.4.60.0270.07016.25
5.4.50.0270.07316.38
5.4.40.0200.04716.59
5.4.30.0230.07316.24
5.4.20.0170.05316.53
5.4.10.0270.06716.42
5.4.00.0200.04715.96
5.3.290.0170.04714.70
5.3.280.0230.03714.61
5.3.270.0230.07014.61
5.3.260.0200.06714.84
5.3.250.0170.05314.72
5.3.240.0200.04314.61
5.3.230.0170.03714.76
5.3.220.0200.06714.66
5.3.210.0230.07014.59
5.3.200.0100.05014.45
5.3.190.0130.04014.59
5.3.180.0200.07014.65
5.3.170.0230.05714.79
5.3.160.0300.04014.57
5.3.150.0430.05014.54
5.3.140.0230.07014.77
5.3.130.0230.07014.45
5.3.120.0200.06314.55
5.3.110.0200.04314.45
5.3.100.0300.03714.12
5.3.90.0300.06713.95
5.3.80.0330.06014.00
5.3.70.0370.05314.03
5.3.60.0300.06313.90
5.3.50.0270.06313.85
5.3.40.0170.05313.84
5.3.30.0230.03014.02
5.3.20.0230.07013.84
5.3.10.0170.07313.65
5.3.00.0270.03313.56
5.2.170.0200.05312.11
5.2.160.0200.06312.11
5.2.150.0100.03312.11
5.2.140.0170.06012.11
5.2.130.0200.05312.11
5.2.120.0230.05012.11
5.2.110.0170.06012.11
5.2.100.0230.04312.11
5.2.90.0200.05712.11
5.2.80.0200.05712.11
5.2.70.0230.03712.11
5.2.60.0130.04312.11
5.2.50.0170.03712.11
5.2.40.0130.04312.11
5.2.30.0270.05012.11
5.2.20.0130.05712.11
5.2.10.0130.03712.11
5.2.00.0170.04012.11
5.1.60.0170.02712.11
5.1.50.0230.03012.11
5.1.40.0170.05312.11
5.1.30.0170.05012.11
5.1.20.0170.05312.11
5.1.10.0170.03712.11
5.1.00.0170.02712.11
5.0.50.0170.04012.11
5.0.40.0100.02712.11
5.0.30.0100.06012.11
5.0.20.0100.02312.11
5.0.10.0070.02012.11
5.0.00.0070.03012.11
4.4.90.0030.03012.11
4.4.80.0100.01712.11
4.4.70.0030.03712.11
4.4.60.0030.03312.11
4.4.50.0100.02312.11
4.4.40.0070.03312.11
4.4.30.0070.02312.11
4.4.20.0100.03712.11
4.4.10.0100.01712.11
4.4.00.0130.04312.11
4.3.110.0100.01312.11
4.3.100.0100.02012.11
4.3.90.0030.01712.11
4.3.80.0030.02712.11
4.3.70.0030.01712.11
4.3.60.0030.02012.11
4.3.50.0030.01712.11
4.3.40.0130.02012.11
4.3.30.0030.01312.11
4.3.20.0030.01312.11
4.3.10.0000.02012.11
4.3.00.0000.01712.11

preferences:
132.76 ms | 1440 KiB | 7 Q