3v4l.org

run code in 300+ PHP versions simultaneously
<?php // http://gathering.tweakers.net/forum/list_message/41881215#41881215 function foo($string1, $string2) { /* Retourneert true dan en slechts dan wanneer de twee argumenten strings zijn en het eerste argument lexicografisch kleiner is. */ return is_string($string1) && is_string($string2) && $string1 < $string2; } var_dump( foo(1,2), foo('1','2'), foo('a','b'), foo('b','a'), foo('ab','ab'), foo('abc','ab') );

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.0150.00618.27
8.3.50.0070.01021.27
8.3.40.0090.00618.89
8.3.30.0100.00318.95
8.3.20.0040.00420.35
8.3.10.0050.00321.82
8.3.00.0000.00822.39
8.2.180.0070.01016.50
8.2.170.0070.00722.96
8.2.160.0050.00819.21
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0030.00619.54
8.2.110.0100.00022.12
8.2.100.0070.00419.46
8.2.90.0030.00619.02
8.2.80.0060.00319.21
8.2.70.0030.00617.63
8.2.60.0040.00417.80
8.2.50.0000.00818.07
8.2.40.0060.00318.16
8.2.30.0060.00318.07
8.2.20.0040.00417.70
8.2.10.0000.00717.70
8.2.00.0040.00417.54
8.1.280.0110.00625.92
8.1.270.0050.00318.50
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.79
8.1.230.0090.00319.21
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0040.00417.22
8.1.190.0080.00017.40
8.1.180.0040.00418.67
8.1.170.0060.00318.50
8.1.160.0040.00422.06
8.1.150.0000.00718.46
8.1.140.0050.00317.41
8.1.130.0060.00317.66
8.1.120.0030.00517.30
8.1.110.0000.00717.39
8.1.100.0040.00417.46
8.1.90.0030.00517.41
8.1.80.0030.00317.41
8.1.70.0070.00017.30
8.1.60.0000.00817.56
8.1.50.0030.00617.33
8.1.40.0030.00517.36
8.1.30.0030.00517.43
8.1.20.0000.00817.57
8.1.10.0040.00417.46
8.1.00.0070.00017.19
8.0.300.0040.00418.77
8.0.290.0040.00417.05
8.0.280.0030.00318.27
8.0.270.0030.00317.15
8.0.260.0040.00416.82
8.0.250.0030.00316.81
8.0.240.0040.00416.77
8.0.230.0000.00716.90
8.0.220.0070.00016.81
8.0.210.0030.00316.85
8.0.200.0000.00716.82
8.0.190.0080.00016.82
8.0.180.0040.00416.75
8.0.170.0040.00416.87
8.0.160.0040.00416.91
8.0.150.0030.00316.81
8.0.140.0080.00016.83
8.0.130.0030.00313.31
8.0.120.0000.00816.69
8.0.110.0070.00016.70
8.0.100.0040.00416.83
8.0.90.0000.00716.88
8.0.80.0080.01116.84
8.0.70.0000.00816.73
8.0.60.0030.00516.73
8.0.50.0040.00416.77
8.0.30.0120.00816.98
8.0.20.0090.01017.40
8.0.10.0050.00316.91
8.0.00.0080.00916.67
7.4.330.0050.00015.00
7.4.320.0050.00316.40
7.4.300.0030.00316.46
7.4.290.0080.00016.52
7.4.280.0030.00316.54
7.4.270.0000.00616.57
7.4.260.0000.00716.44
7.4.250.0030.00316.41
7.4.240.0000.00716.54
7.4.230.0000.00716.54
7.4.220.0110.00716.55
7.4.210.0070.00816.59
7.4.200.0030.00316.62
7.4.190.0070.00016.63
7.4.160.0130.01016.47
7.4.150.0150.00917.40
7.4.140.0100.00917.86
7.4.130.0050.01516.44
7.4.120.0100.00816.52
7.4.110.0130.00716.65
7.4.100.0100.01316.36
7.4.90.0120.01216.51
7.4.80.0090.01219.39
7.4.70.0120.00416.35
7.4.60.0100.00716.29
7.4.50.0000.00816.34
7.4.40.0030.00722.77
7.4.30.0090.00616.32
7.4.00.0070.00714.83
7.3.330.0000.00613.30
7.3.320.0050.00013.13
7.3.310.0030.00316.14
7.3.300.0000.00716.19
7.3.290.0100.00316.37
7.3.280.0070.00716.32
7.3.270.0100.00717.40
7.3.260.0070.01016.56
7.3.250.0090.01016.47
7.3.240.0060.01016.30
7.3.230.0070.01016.50
7.3.210.0120.01216.57
7.3.200.0060.00919.39
7.3.190.0100.00616.28
7.3.180.0170.00016.39
7.3.170.0120.00416.28
7.3.160.0090.00616.32
7.3.120.0030.01314.70
7.3.10.0270.00916.07
7.3.00.0170.00316.21
7.2.330.0060.01316.43
7.2.320.0070.01016.73
7.2.310.0110.00716.73
7.2.300.0060.01216.73
7.2.290.0040.01516.59
7.2.130.0220.00416.60
7.2.120.0120.00916.70
7.2.110.0200.00316.46
7.2.100.0110.00416.54
7.2.90.0100.00716.92
7.2.80.0100.01016.82
7.2.70.0000.01816.82
7.2.60.0080.00616.48
7.2.50.0040.01116.30
7.2.40.0060.00816.71
7.2.30.0070.00416.69
7.2.20.0040.00816.51
7.2.10.0030.00616.69
7.2.00.0060.00316.79
7.1.250.0190.00315.64
7.1.70.0030.00917.08
7.1.60.0110.01419.82
7.1.50.0000.01417.00
7.1.00.0030.05322.33
7.0.200.0100.00316.69
7.0.140.0000.07322.09
7.0.70.5270.04319.90
7.0.60.0070.03720.01
7.0.50.0030.04017.84
7.0.40.0170.07720.12
7.0.30.0070.06720.09
7.0.20.0270.08320.15
7.0.10.0430.04720.32
7.0.00.0000.08720.15
5.6.280.0070.06721.15
5.6.210.0070.03320.55
5.6.200.0230.04018.15
5.6.190.0100.05320.47
5.6.180.0100.04720.46
5.6.170.0230.04020.48
5.6.160.0100.08020.50
5.6.150.0070.07718.18
5.6.140.0100.07718.16
5.6.130.0170.07318.23
5.6.120.0070.05321.03
5.6.110.0070.04021.02
5.6.100.0030.07021.01
5.6.90.0130.07321.11
5.6.80.0070.07020.38
5.6.70.0270.05320.43
5.5.350.0170.07020.41
5.5.340.0070.05018.07
5.5.330.0030.06320.38
5.5.320.0070.06720.44
5.5.310.0400.06720.21
5.5.300.0170.07717.98
5.5.290.0130.07718.00
5.5.280.0100.08020.89
5.5.270.0030.04720.79
5.5.260.0070.07720.87
5.5.250.0070.07320.69
5.5.240.0030.04020.19
5.4.450.0730.07019.58
5.4.440.0830.05719.16
5.4.430.0670.06019.58
5.4.420.0100.05719.47
5.4.410.0070.06319.59
5.4.400.1070.06718.88
5.4.390.0130.05319.38
5.4.380.0300.05018.41
5.4.370.0030.04318.54
5.4.360.0100.03718.61
5.4.350.0100.04512.02
5.4.340.0090.03512.02
5.4.320.0060.03612.50
5.4.310.0090.03712.50
5.4.300.0070.03612.50
5.4.290.0040.04512.50
5.4.280.0100.03112.40
5.4.270.0020.04012.40
5.4.260.0060.04112.40
5.4.250.0170.06718.98
5.4.240.0030.05318.92
5.4.230.0130.04718.98
5.4.220.0200.05719.01
5.4.210.0100.08018.93
5.4.200.0100.07718.88
5.4.190.0070.05318.97
5.4.180.0030.05718.79
5.4.170.0100.06718.93
5.4.160.0100.05318.74
5.4.150.0100.05318.91
5.4.140.0070.05716.41
5.4.130.0170.05716.37
5.4.120.0170.05716.35
5.4.110.0130.04716.50
5.4.100.0130.04316.58
5.4.90.0000.05716.31
5.4.80.0100.04716.32
5.4.70.0000.05716.34
5.4.60.0130.04016.34
5.4.50.0170.06316.59
5.4.40.0030.07016.37
5.4.30.0130.04716.36
5.4.20.0000.06716.55
5.4.10.0100.05316.55
5.4.00.0000.05715.98
5.3.290.0080.04212.80
5.3.280.0100.06314.72
5.3.270.0000.06314.69
5.3.260.0130.05014.68
5.3.250.0130.06014.61
5.3.240.0030.06714.61
5.3.230.0130.05014.67
5.3.220.0130.07014.65
5.3.210.0070.07014.58
5.3.200.0130.05014.79
5.3.190.0070.06014.66
5.3.180.0130.04714.78
5.3.170.0000.05714.70
5.3.160.0070.05014.66
5.3.150.0130.07014.55
5.3.140.0070.05314.71
5.3.130.0130.05014.63
5.3.120.0130.05314.71
5.3.110.0100.07014.45
5.3.100.0030.05714.10
5.3.90.0130.05314.08
5.3.80.0130.04014.18
5.3.70.0130.04313.98
5.3.60.0070.06714.00
5.3.50.0000.06313.95
5.3.40.0130.06314.13
5.3.30.0170.04313.89
5.3.20.0030.05013.71
5.3.10.0030.05013.55
5.3.00.0070.04713.65
5.2.170.0000.05011.09
5.2.160.0030.04711.21
5.2.150.0070.06011.13
5.2.140.0070.05711.31
5.2.130.0070.04711.17
5.2.120.0100.03711.19
5.2.110.0070.03711.05
5.2.100.0100.03711.09
5.2.90.0070.04310.92
5.2.80.0070.04011.00
5.2.70.0130.03711.25
5.2.60.0070.04010.96
5.2.50.0100.04310.98
5.2.40.0000.04711.08
5.2.30.0070.04311.05
5.2.20.0100.03710.94
5.2.10.0030.04010.76
5.2.00.0130.03310.89
5.1.60.0000.0379.92
5.1.50.0030.03710.20
5.1.40.0100.03010.05
5.1.30.0130.04310.39
5.1.20.0030.04010.31
5.1.10.0000.04010.13
5.1.00.0100.03010.12
5.0.50.0000.0338.74
5.0.40.0030.0338.64
5.0.30.0000.0438.18
5.0.20.0000.0308.34
5.0.10.0070.0378.24
5.0.00.0100.0478.11
4.4.90.0100.0137.23
4.4.80.0030.0337.23
4.4.70.0100.0207.23
4.4.60.0000.0277.23
4.4.50.0070.0307.23
4.4.40.0030.0407.23
4.4.30.0000.0337.23
4.4.20.0000.0237.23
4.4.10.0000.0237.23
4.4.00.0030.0337.23
4.3.110.0070.0177.23
4.3.100.0030.0277.23
4.3.90.0030.0207.09
4.3.80.0000.0337.03
4.3.70.0070.0207.03
4.3.60.0000.0307.03
4.3.50.0030.0207.03
4.3.40.0130.0237.03
4.3.30.0030.0277.03
4.3.20.0000.0277.03
4.3.10.0000.0307.03
4.3.00.0070.0277.54

preferences:
32.69 ms | 401 KiB | 5 Q