3v4l.org

run code in 300+ PHP versions simultaneously
<?php function betweenScope($num, $min, $max) { return (!$num > $max) ? ((!$num < $min) ?: $min) : $max; } echo betweenScope(21, 0, 5);

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)
8.3.60.0120.00318.52
8.3.50.0030.01321.09
8.3.40.0070.00718.84
8.3.30.0070.00720.21
8.3.20.0080.00020.30
8.3.10.0040.00422.08
8.3.00.0040.00422.44
8.2.180.0120.00818.16
8.2.170.0140.00022.96
8.2.160.0100.00320.47
8.2.150.0080.00024.18
8.2.140.0100.01024.66
8.2.130.0040.00426.16
8.2.120.0050.00319.44
8.2.110.0060.00322.25
8.2.100.0110.00019.25
8.2.90.0000.00719.08
8.2.80.0040.00419.34
8.2.70.0080.00017.38
8.2.60.0040.00417.93
8.2.50.0080.00018.07
8.2.40.0060.00318.22
8.2.30.0040.00417.92
8.2.20.0000.00817.69
8.2.10.0000.00817.62
8.2.00.0030.00617.60
8.1.280.0120.00925.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00623.96
8.1.230.0080.00318.98
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0060.00317.22
8.1.190.0040.00417.53
8.1.180.0070.00020.20
8.1.170.0080.00018.64
8.1.160.0050.00322.13
8.1.150.0050.00218.52
8.1.140.0070.00017.43
8.1.130.0030.00317.67
8.1.120.0040.00317.29
8.1.110.0050.00317.29
8.1.100.0040.00417.28
8.1.90.0040.00417.42
8.1.80.0000.00717.35
8.1.70.0070.00017.29
8.1.60.0000.00817.39
8.1.50.0060.00317.50
8.1.40.0030.00517.35
8.1.30.0050.00217.55
8.1.20.0000.00817.62
8.1.10.0000.00817.33
8.1.00.0060.00317.38
8.0.300.0000.00718.77
8.0.290.0070.00016.93
8.0.280.0040.00418.42
8.0.270.0030.00317.09
8.0.260.0000.00616.67
8.0.250.0060.00016.93
8.0.240.0040.00416.86
8.0.230.0050.00216.93
8.0.220.0040.00416.81
8.0.210.0000.00716.80
8.0.200.0060.00016.88
8.0.190.0070.00016.88
8.0.180.0030.00316.84
8.0.170.0000.00816.71
8.0.160.0030.00316.79
8.0.150.0040.00416.70
8.0.140.0040.00416.68
8.0.130.0060.00013.29
8.0.120.0050.00316.80
8.0.110.0000.00716.81
8.0.100.0070.00016.70
8.0.90.0000.00816.68
8.0.80.0130.00616.85
8.0.70.0040.00316.78
8.0.60.0050.00316.62
8.0.50.0050.00316.75
8.0.30.0120.00917.03
8.0.20.0150.00617.40
8.0.10.0050.00316.82
8.0.00.0110.00516.72
7.4.330.0020.00215.00
7.4.320.0000.00616.43
7.4.300.0070.00016.57
7.4.290.0070.00016.41
7.4.280.0070.00016.48
7.4.270.0030.00316.52
7.4.260.0000.00716.56
7.4.250.0080.00016.54
7.4.240.0030.00316.49
7.4.230.0070.00016.52
7.4.220.0060.01216.38
7.4.210.0120.00116.43
7.4.200.0070.00016.64
7.4.190.0030.00316.39
7.4.160.0030.01216.51
7.4.150.0200.00017.40
7.4.140.0110.00817.86
7.4.130.0080.01216.36
7.4.120.0140.00516.53
7.4.110.0100.00616.45
7.4.100.0090.00916.38
7.4.90.0120.00616.43
7.4.80.0030.01319.39
7.4.70.0060.01016.47
7.4.60.0040.01116.29
7.4.50.0030.00316.31
7.4.40.0060.00922.77
7.4.30.0100.00616.34
7.4.00.0110.00014.66
7.3.330.0060.00013.40
7.3.320.0000.00513.44
7.3.310.0000.00716.38
7.3.300.0070.00016.36
7.3.290.0130.00716.37
7.3.280.0080.01016.33
7.3.270.0130.00317.40
7.3.260.0100.01016.34
7.3.250.0130.00416.31
7.3.240.0110.00816.67
7.3.230.0160.00016.68
7.3.210.0150.00616.25
7.3.200.0070.01119.39
7.3.190.0080.00816.34
7.3.180.0080.00816.23
7.3.170.0070.01016.58
7.3.160.0060.00916.59
7.3.120.0130.00014.86
7.3.10.0250.00816.33
7.3.00.0400.01116.22
7.2.330.0060.01316.78
7.2.320.0110.00416.73
7.2.310.0100.00616.62
7.2.300.0090.00916.36
7.2.290.0130.00316.74
7.2.130.0090.01316.43
7.2.120.0150.01116.07
7.2.110.0150.00316.31
7.2.100.0230.00716.41
7.2.90.0160.00816.78
7.2.80.0250.00916.41
7.2.70.0110.01416.48
7.2.60.0180.01516.38
7.2.50.0310.00816.78
7.2.40.0280.00616.29
7.2.30.0090.00616.58
7.2.20.0170.00716.66
7.2.10.0260.00316.41
7.2.00.0170.01317.94
7.1.250.0260.01015.31
7.1.100.0030.00617.95
7.1.70.0030.00617.19
7.1.60.0030.02019.21
7.1.50.0060.01316.63
7.1.00.0030.06322.51
7.0.200.0190.00314.55
7.0.140.0130.06322.07
7.0.60.0170.06719.86
7.0.50.0070.05717.97
7.0.40.0100.08020.15
7.0.30.0270.07320.26
7.0.20.0230.07720.16
7.0.10.0300.07020.09
7.0.00.0070.04020.05
5.6.280.0070.07021.09
5.6.210.0030.05020.71
5.6.200.0030.05018.19
5.6.190.0030.04720.64
5.6.180.0200.05020.40
5.6.170.0200.04320.51
5.6.160.0070.07020.70
5.6.150.0030.05018.15
5.6.140.0030.08718.16
5.6.130.0000.04318.15
5.6.120.0100.07021.02
5.6.110.0070.04021.02
5.6.100.0100.03720.96
5.6.90.0070.07721.01
5.6.80.0170.06020.44
5.6.70.0230.08720.37
5.5.350.0100.08020.37
5.5.340.0030.04017.97
5.5.330.0100.08320.25
5.5.320.0270.07320.56
5.5.310.0300.06320.27
5.5.300.0070.08017.95
5.5.290.0030.08717.93
5.5.280.0100.08320.98
5.5.270.0070.04020.80
5.5.260.0070.03720.63
5.5.250.0030.04320.66
5.5.240.0100.07720.28
5.4.450.0070.06319.61
5.4.440.0670.06319.59
5.4.430.0370.06019.47
5.4.420.1030.05719.19
5.4.410.0670.06019.34
5.4.400.0370.06018.84
5.4.390.0430.06018.69
5.4.380.0270.05318.76
5.4.370.0270.05018.48
5.4.360.0400.04318.65
5.4.350.0060.04812.02
5.4.340.0080.03312.02
5.4.320.0100.04112.51
5.4.310.0090.04712.50
5.4.300.0030.03912.51
5.4.290.0090.04112.50
5.4.280.0040.03612.40
5.4.270.0090.04212.40
5.4.260.0090.04212.40
5.4.250.0070.05719.01
5.4.240.0100.05018.77
5.4.230.0100.05019.00
5.4.220.0070.07718.97
5.4.210.0130.06018.80
5.4.200.0030.05318.65
5.4.190.0070.05319.00
5.4.180.0070.05019.00
5.4.170.0070.05318.83
5.4.160.0070.05318.79
5.4.150.0100.05018.66
5.4.140.0170.06316.54
5.4.130.0170.04016.39
5.4.120.0070.04716.45
5.4.110.0130.05016.56
5.4.100.0030.05316.65
5.4.90.0000.05016.38
5.4.80.0000.05016.39
5.4.70.0100.04316.61
5.4.60.0000.05316.31
5.4.50.0130.04316.36
5.4.40.0030.05316.52
5.4.30.0200.03716.30
5.4.20.0000.05316.44
5.4.10.0070.06016.62
5.4.00.0100.04316.00
5.3.290.0020.05112.80
5.3.280.0130.05014.67
5.3.270.0030.05314.68
5.3.260.0070.05014.59
5.3.250.0130.04314.76
5.3.240.0030.05014.51
5.3.230.0070.05014.61
5.3.220.0030.05314.39
5.3.210.0030.05314.72
5.3.200.0030.05314.46
5.3.190.0070.05014.74
5.3.180.0170.04014.71
5.3.170.0130.04314.63
5.3.160.0100.04714.79
5.3.150.0030.07014.54
5.3.140.0100.04714.63
5.3.130.0100.05014.54
5.3.120.0130.05014.67
5.3.110.0130.04714.56
5.3.100.0030.05014.25
5.3.90.0100.06313.99
5.3.80.0000.05314.11
5.3.70.0030.05314.05
5.3.60.0070.05014.17
5.3.50.0170.04014.02
5.3.40.0200.03314.03
5.3.30.0030.05013.90
5.3.20.0000.05713.77
5.3.10.0030.05013.72
5.3.00.0030.05313.73
5.2.170.0070.04011.21
5.2.160.0030.04011.23
5.2.150.0100.05711.09
5.2.140.0070.04311.21
5.2.130.0070.03711.18
5.2.120.0070.03711.07
5.2.110.0000.04311.16
5.2.100.0000.04311.18
5.2.90.0030.04011.08
5.2.80.0070.03711.31
5.2.70.0030.04011.05
5.2.60.0100.03711.14
5.2.50.0070.03710.98
5.2.40.0130.03010.95
5.2.30.0000.05010.96
5.2.20.0030.05310.96
5.2.10.0030.03710.87
5.2.00.0030.04010.62
5.1.60.0070.03010.05
5.1.50.0100.02710.06
5.1.40.0070.0309.94
5.1.30.0070.04310.32
5.1.20.0000.04010.30
5.1.10.0000.03710.07
5.1.00.0000.05310.16
5.0.50.0100.0338.78
5.0.40.0000.0278.39
5.0.30.0000.0478.22
5.0.20.0030.0278.26
5.0.10.0000.0308.09
5.0.00.0070.0378.25
4.4.90.0070.0176.96
4.4.80.0030.0276.96
4.4.70.0000.0236.96
4.4.60.0030.0206.96
4.4.50.0070.0176.96
4.4.40.0000.0336.96
4.4.30.0030.0236.96
4.4.20.0000.0306.96
4.4.10.0000.0236.96
4.4.00.0030.0476.96
4.3.110.0070.0206.96
4.3.100.0000.0236.96
4.3.90.0070.0176.96
4.3.80.0000.0336.96
4.3.70.0070.0206.96
4.3.60.0000.0206.96
4.3.50.0030.0206.96
4.3.40.0030.0306.96
4.3.30.0000.0236.96
4.3.20.0030.0206.96
4.3.10.0000.0236.96
4.3.00.0030.0236.62

preferences:
52.43 ms | 401 KiB | 5 Q