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'), foo('2xx','2yy') );

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.0130.00618.27
8.3.50.0140.00721.14
8.3.40.0120.00318.70
8.3.30.0120.00618.96
8.3.20.0000.00720.34
8.3.10.0050.00322.05
8.3.00.0030.00522.44
8.2.180.0070.01116.75
8.2.170.0100.00322.96
8.2.160.0030.01019.04
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0030.00526.16
8.2.120.0080.00019.66
8.2.110.0090.00020.30
8.2.100.0100.00617.63
8.2.90.0040.00418.95
8.2.80.0000.00719.19
8.2.70.0000.00817.50
8.2.60.0050.00317.68
8.2.50.0030.00618.07
8.2.40.0050.00317.80
8.2.30.0040.00417.97
8.2.20.0000.00817.63
8.2.10.0040.00417.75
8.2.00.0030.00617.68
8.1.280.0090.00925.92
8.1.270.0030.00618.45
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0090.00023.91
8.1.230.0070.00423.87
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0030.00617.23
8.1.190.0040.00417.43
8.1.180.0040.00418.70
8.1.170.0040.00418.41
8.1.160.0000.00722.17
8.1.150.0000.00718.52
8.1.140.0000.00717.42
8.1.130.0050.00517.84
8.1.120.0040.00417.44
8.1.110.0000.00717.45
8.1.100.0000.00817.40
8.1.90.0040.00417.32
8.1.80.0070.00017.42
8.1.70.0030.00317.34
8.1.60.0000.00817.54
8.1.50.0080.00017.50
8.1.40.0050.00317.48
8.1.30.0000.00917.64
8.1.20.0040.00417.71
8.1.10.0000.00717.32
8.1.00.0040.00417.23
8.0.300.0000.00818.77
8.0.290.0040.00416.91
8.0.280.0030.00318.37
8.0.270.0000.00717.27
8.0.260.0040.00416.74
8.0.250.0030.00316.94
8.0.240.0060.00316.96
8.0.230.0060.00016.89
8.0.220.0030.00316.77
8.0.210.0000.00616.81
8.0.200.0000.00716.94
8.0.190.0040.00416.93
8.0.180.0080.00016.86
8.0.170.0000.00716.84
8.0.160.0040.00416.98
8.0.150.0000.00816.73
8.0.140.0000.00716.85
8.0.130.0030.00313.27
8.0.120.0040.00416.87
8.0.110.0040.00416.89
8.0.100.0040.00416.66
8.0.90.0000.00716.90
8.0.80.0030.01116.89
8.0.70.0040.00416.85
8.0.60.0000.00816.89
8.0.50.0050.00316.73
8.0.30.0110.00817.19
8.0.20.0110.00717.40
8.0.10.0040.00416.85
8.0.00.0070.01216.79
7.4.330.0030.00315.00
7.4.320.0030.00316.46
7.4.300.0000.00616.61
7.4.290.0070.00016.57
7.4.280.0030.00516.55
7.4.270.0030.00316.57
7.4.260.0030.00316.45
7.4.250.0070.00016.54
7.4.240.0040.00316.57
7.4.230.0030.00316.46
7.4.220.0120.00916.57
7.4.210.0060.01016.55
7.4.200.0030.00316.65
7.4.190.0070.00016.43
7.4.160.0000.01616.40
7.4.150.0100.01017.40
7.4.140.0090.00917.86
7.4.130.0070.01316.36
7.4.120.0100.00716.40
7.4.110.0140.00916.51
7.4.100.0110.01116.47
7.4.90.0110.00916.48
7.4.80.0060.01219.39
7.4.70.0080.00816.29
7.4.60.0160.00416.38
7.4.50.0040.00416.46
7.4.40.0070.00422.77
7.4.30.0130.00316.28
7.4.00.0070.01114.88
7.3.330.0050.00013.29
7.3.320.0030.00313.20
7.3.310.0030.00316.23
7.3.300.0050.00216.34
7.3.290.0070.00716.25
7.3.280.0090.00716.28
7.3.270.0100.01017.40
7.3.260.0030.01416.25
7.3.250.0080.00916.48
7.3.240.0110.00716.62
7.3.230.0080.00816.64
7.3.210.0040.01216.37
7.3.200.0070.01019.39
7.3.190.0070.01016.42
7.3.180.0060.01316.33
7.3.170.0150.00616.38
7.3.160.0030.01316.54
7.3.120.0070.00915.03
7.3.110.0070.01414.56
7.3.100.0110.01114.50
7.3.90.0060.00614.91
7.3.80.0030.01215.14
7.3.70.0070.00414.96
7.3.60.0100.00314.60
7.3.50.0040.00814.77
7.3.40.0100.00014.88
7.3.30.0070.00714.97
7.3.20.0040.01416.50
7.3.10.0120.00616.41
7.3.00.0030.00716.50
7.2.330.0080.01216.48
7.2.320.0120.00716.39
7.2.310.0170.00016.45
7.2.300.0000.01716.35
7.2.290.0070.01016.72
7.2.250.0100.01015.00
7.2.240.0090.00315.27
7.2.230.0070.00715.00
7.2.220.0070.00715.08
7.2.210.0110.00314.61
7.2.200.0070.00714.91
7.2.190.0060.00914.95
7.2.180.0080.00615.06
7.2.170.0070.00715.05
7.2.160.0100.00714.96
7.2.150.0090.00616.68
7.2.140.0070.00716.97
7.2.130.0070.00416.91
7.2.120.0070.00716.64
7.2.110.0110.00416.95
7.2.100.0060.00616.88
7.2.90.0100.00316.93
7.2.80.0040.01116.71
7.2.70.0070.00716.94
7.2.60.0080.00716.97
7.2.50.0060.00616.87
7.2.40.0040.01116.80
7.2.30.0040.00816.97
7.2.20.0050.00516.93
7.2.10.0100.00316.93
7.2.00.0040.00718.22
7.1.330.0070.01415.84
7.1.320.0090.00615.86
7.1.310.0040.00915.63
7.1.300.0030.00615.88
7.1.290.0040.01115.73
7.1.280.0030.00615.81
7.1.270.0030.01015.73
7.1.260.0070.00715.80
7.1.250.0060.00615.84
7.1.240.0070.00315.73
7.1.230.0080.00415.61
7.1.220.0070.00715.48
7.1.210.0090.00615.82
7.1.200.0040.01415.46
7.1.190.0030.01015.82
7.1.180.0060.00315.50
7.1.170.0040.00715.85
7.1.160.0040.00815.71
7.1.150.0000.01315.75
7.1.140.0040.01215.81
7.1.130.0040.01115.79
7.1.120.0090.00315.71
7.1.110.0060.00315.66
7.1.100.0050.00616.78
7.1.90.0100.00315.64
7.1.80.0120.00015.92
7.1.70.0060.00316.26
7.1.60.0020.01117.78
7.1.50.0060.00516.30
7.1.40.0090.00615.68
7.1.30.0040.00415.83
7.1.20.0000.00915.45
7.1.10.0000.01115.79
7.1.00.0050.02719.12
7.0.330.0040.01115.49
7.0.320.0070.00715.42
7.0.310.0070.01015.01
7.0.300.0060.00615.59
7.0.290.0080.00015.44
7.0.280.0070.00715.37
7.0.270.0060.00615.35
7.0.260.0060.00915.42
7.0.250.0100.00315.23
7.0.240.0000.00815.58
7.0.230.0080.00415.48
7.0.220.0030.01015.45
7.0.210.0000.00915.25
7.0.200.0070.00316.17
7.0.190.0060.00615.59
7.0.180.0040.01215.47
7.0.170.0000.01115.51
7.0.160.0090.00315.31
7.0.150.0030.01015.36
7.0.140.0020.04418.68
7.0.130.0070.00715.18
7.0.120.0060.02918.80
7.0.110.0080.03318.65
7.0.100.0020.04218.75
7.0.90.0060.02518.71
7.0.80.0000.03618.66
7.0.70.0020.03318.75
7.0.60.0030.03918.59
7.0.50.0000.03418.75
7.0.40.0040.03717.82
7.0.30.0030.04317.88
7.0.20.0060.03717.73
7.0.10.0070.03517.89
7.0.00.0040.04017.69
5.6.400.0030.01014.13
5.6.390.0070.01013.84
5.6.380.0000.01214.57
5.6.370.0030.01014.24
5.6.360.0060.00613.73
5.6.350.0040.01114.13
5.6.340.0030.01014.32
5.6.330.0030.00914.63
5.6.320.0090.00314.48
5.6.310.0060.00614.12
5.6.300.0030.01014.21
5.6.290.0070.01114.52
5.6.280.0050.03917.47
5.6.270.0030.00713.90
5.6.260.0000.03817.55
5.6.250.0060.03517.63
5.6.240.0050.02217.79
5.6.230.0080.03617.55
5.6.220.0070.03317.63
5.6.210.0100.03517.65
5.6.200.0080.03317.57
5.6.190.0060.03617.48
5.6.180.0040.03217.66
5.6.170.0050.03917.31
5.6.160.0070.03317.61
5.6.150.0110.03717.69
5.6.140.0040.04417.36
5.6.130.0050.03717.50
5.6.120.0090.02517.59
5.6.110.0050.03817.64
5.6.100.0030.04017.62
5.6.90.0070.03717.54
5.6.80.0020.04217.31
5.6.70.0050.03717.33
5.6.60.0070.03817.28
5.6.50.0040.03417.29
5.6.40.0020.03117.28
5.6.30.0020.04317.31
5.6.20.0110.03117.31
5.6.10.0040.03317.34
5.6.00.0090.03217.18
5.5.380.0020.02215.80
5.5.370.0010.03815.87
5.5.360.0040.04215.73
5.5.350.0020.02715.94
5.5.340.0050.03715.96
5.5.330.0050.02516.02
5.5.320.0030.03816.15
5.5.310.0030.03715.96
5.5.300.0030.03316.19
5.5.290.0020.04416.09
5.5.280.0020.02516.07
5.5.270.0030.02016.33
5.5.260.0030.03816.10
5.5.250.0020.04415.89
5.5.240.0050.03815.78
5.5.230.0020.04215.71
5.5.220.0050.03015.70
5.5.210.0030.02515.49
5.5.200.0080.03515.70
5.5.190.0040.03315.59
5.5.180.0040.04115.84
5.5.170.0040.00813.97
5.5.160.0050.03215.82
5.5.150.0050.03315.71
5.5.140.0030.03815.75
5.5.130.0060.02815.86
5.5.120.0070.03015.82
5.5.110.0060.02715.91
5.5.100.0030.04215.59
5.5.90.0070.03115.64
5.5.80.0050.03715.69
5.5.70.0050.03315.67
5.5.60.0050.03115.49
5.5.50.0030.02915.74
5.5.40.0030.03915.82
5.5.30.0080.03515.75
5.5.20.0050.03015.59
5.5.10.0050.03715.54
5.5.00.0030.03915.71
5.4.450.0010.03315.31
5.4.440.0030.03015.33
5.4.430.0090.03315.34
5.4.420.0040.02515.23
5.4.410.0040.03515.19
5.4.400.0070.03515.06
5.4.390.0020.03714.98
5.4.380.0000.03414.99
5.4.370.0020.03615.01
5.4.360.0000.04014.98
5.4.350.0050.03215.12
5.4.340.0020.03915.05
5.4.330.0030.00610.96
5.4.320.0030.02915.13
5.4.310.0050.03015.05
5.4.300.0020.03914.99
5.4.290.0050.03415.07
5.4.280.0050.03514.98
5.4.270.0020.02715.15
5.4.260.0070.03515.11
5.4.250.0030.03715.14
5.4.240.0070.03514.96
5.4.230.0080.03014.97
5.4.220.0020.03315.00
5.4.210.0040.03614.98
5.4.200.0060.03515.09
5.4.190.0060.03515.06
5.4.180.0020.03714.96
5.4.170.0030.03815.01
5.4.160.0070.03515.13
5.4.150.0020.02715.08
5.4.140.0040.03513.68
5.4.130.0050.03213.79
5.4.120.0010.02913.77
5.4.110.0020.03813.65
5.4.100.0000.04013.69
5.4.90.0030.03313.79
5.4.80.0050.03313.80
5.4.70.0050.03313.68
5.4.60.0070.02913.86
5.4.50.0070.03513.67
5.4.40.0020.03613.76
5.4.30.0000.03713.67
5.4.20.0030.03513.69
5.4.10.0020.03013.76
5.4.00.0020.03113.47
5.3.290.0100.03212.88
5.3.280.0050.03012.77
5.3.270.0040.03112.79
5.3.260.0050.03812.85
5.3.250.0000.03612.78
5.3.240.0030.03712.85
5.3.230.0020.03412.79
5.3.220.0040.03412.83
5.3.210.0020.03712.78
5.3.200.0030.03512.69
5.3.190.0030.03612.76
5.3.180.0070.03312.83
5.3.170.0030.03512.77
5.3.160.0020.03712.80
5.3.150.0040.03612.82
5.3.140.0020.03312.75
5.3.130.0030.03712.76
5.3.120.0030.03612.76
5.3.110.0020.03312.79
5.3.100.0030.03212.54
5.3.90.0050.03212.42
5.3.80.0020.03412.55
5.3.70.0080.02812.49
5.3.60.0030.03112.48
5.3.50.0030.03312.57
5.3.40.0060.02812.53
5.3.30.0060.03212.43
5.3.20.0040.03412.37
5.3.10.0020.03712.32
5.3.00.0030.03512.28
5.2.170.0000.05711.16
5.2.160.0070.04711.21
5.2.150.0000.05711.00
5.2.140.0070.05311.28
5.2.130.0030.05011.11
5.2.120.0000.05311.07
5.2.110.0030.05311.05
5.2.100.0000.05311.07
5.2.90.0030.05311.10
5.2.80.0070.05310.95
5.2.70.0000.06011.06
5.2.60.0000.05711.01
5.2.50.0000.05011.10
5.2.40.0030.05310.96
5.2.30.0070.05010.97
5.2.20.0030.05311.04
5.2.10.0030.05310.88
5.2.00.0070.04310.84
5.1.60.0000.0379.96
5.1.50.0000.03310.00
5.1.40.0000.04010.22
5.1.30.0030.04710.29
5.1.20.0000.05010.57
5.1.10.0000.05010.13
5.1.00.0070.04310.08
5.0.50.0000.0279.93
5.0.40.0030.0279.93
5.0.30.0000.0579.93
5.0.20.0000.0309.93
5.0.10.0030.0379.93
5.0.00.0000.0479.93
4.4.90.0000.0339.93
4.4.80.0030.0279.93
4.4.70.0000.0339.93
4.4.60.0070.0209.93
4.4.50.0000.0279.93
4.4.40.0000.0479.93
4.4.30.0030.0209.93
4.4.20.0000.0279.93
4.4.10.0030.0209.93
4.4.00.0000.0309.93
4.3.110.0030.0239.93
4.3.100.0000.0309.93
4.3.90.0000.0309.93
4.3.80.0000.0379.93
4.3.70.0000.0309.93
4.3.60.0030.0279.93
4.3.50.0030.0279.93
4.3.40.0000.0479.93
4.3.30.0030.0239.93
4.3.20.0000.0309.93
4.3.10.0000.0309.93
4.3.00.0000.0339.93

preferences:
49.32 ms | 401 KiB | 5 Q