3v4l.org

run code in 300+ PHP versions simultaneously
<?php string_lt('22', '123'); string_lt('123', '22'); function string_lt($str1, $str2) { # you can't use < operator for comparing strings # wacky stuff will happen $lt_says = ((string) $str1 < (string) $str2); # see what strcmp() says $strcmp_says = strcmp($str1, $str2); echo "$str1 less than $str2; lt_says: $lt_says, strcmp_says: $strcmp_says\n"; }

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.40.0110.00418.46
8.3.30.0110.00318.91
8.3.20.0040.00420.17
8.3.10.0040.00423.66
8.3.00.0050.00319.13
8.2.170.0110.00422.96
8.2.160.0080.00820.20
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0040.00421.02
8.2.110.0060.00320.52
8.2.100.0090.00317.57
8.2.90.0040.00419.21
8.2.80.0000.00817.97
8.2.70.0030.00617.50
8.2.60.0080.00017.68
8.2.50.0050.00318.07
8.2.40.0060.00319.88
8.2.30.0000.00818.02
8.2.20.0040.00417.66
8.2.10.0000.00718.08
8.2.00.0000.00717.73
8.1.270.0050.00323.82
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0040.00421.91
8.1.230.0090.00320.72
8.1.220.0030.00617.79
8.1.210.0050.00318.77
8.1.200.0030.00617.23
8.1.190.0060.00317.23
8.1.180.0000.00818.10
8.1.170.0050.00318.46
8.1.160.0040.00418.90
8.1.150.0000.00718.89
8.1.140.0080.00017.46
8.1.130.0000.00717.74
8.1.120.0000.00817.51
8.1.110.0000.00717.45
8.1.100.0050.00317.35
8.1.90.0000.00717.36
8.1.80.0040.00417.38
8.1.70.0030.00317.43
8.1.60.0000.00817.51
8.1.50.0040.00417.43
8.1.40.0020.00517.43
8.1.30.0000.00917.68
8.1.20.0000.00717.63
8.1.10.0000.00717.43
8.1.00.0040.00417.46
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0000.00718.44
8.0.270.0040.00417.17
8.0.260.0030.00317.27
8.0.250.0000.00616.87
8.0.240.0030.00716.87
8.0.230.0050.00216.92
8.0.220.0070.00016.94
8.0.210.0030.00316.91
8.0.200.0060.00016.84
8.0.190.0000.00717.00
8.0.180.0050.00316.79
8.0.170.0000.00916.93
8.0.160.0000.00716.90
8.0.150.0040.00416.91
8.0.140.0050.00316.66
8.0.130.0030.00313.29
8.0.120.0040.00416.86
8.0.110.0040.00416.82
8.0.100.0040.00416.89
8.0.90.0070.00316.77
8.0.80.0070.01016.93
8.0.70.0070.00016.87
8.0.60.0040.00417.01
8.0.50.0000.00816.90
8.0.30.0090.01216.96
8.0.20.0110.00817.40
8.0.10.0000.00717.01
8.0.00.0050.01316.71
7.4.330.0000.00515.09
7.4.320.0030.00316.49
7.4.300.0000.00716.42
7.4.290.0060.00016.50
7.4.280.0000.00816.60
7.4.270.0030.00316.43
7.4.260.0030.00316.45
7.4.250.0030.00516.56
7.4.240.0030.00516.46
7.4.230.0000.00716.32
7.4.220.0030.01416.40
7.4.210.0150.00616.54
7.4.200.0070.00016.63
7.4.160.0160.00016.50
7.4.150.0090.00917.40
7.4.140.0150.00517.86
7.4.130.0100.00716.54
7.4.120.0130.00516.54
7.4.110.0120.00616.39
7.4.100.0150.00616.56
7.4.90.0100.01016.39
7.4.80.0070.01119.39
7.4.70.0070.01016.58
7.4.60.0090.00816.43
7.4.50.0060.00916.35
7.4.40.0160.01015.78
7.4.30.0180.00016.11
7.4.20.0090.00916.21
7.4.10.0080.01216.18
7.4.00.0120.00815.51
7.3.330.0060.00013.44
7.3.320.0060.00013.18
7.3.310.0000.00716.32
7.3.300.0040.00416.38
7.3.290.0070.00716.30
7.3.280.0060.00916.33
7.3.270.0100.00717.40
7.3.260.0230.00016.57
7.3.250.0160.00416.51
7.3.240.0070.01016.33
7.3.230.0120.00616.59
7.3.210.0150.00416.57
7.3.200.0060.01519.39
7.3.190.0000.01716.39
7.3.180.0140.00316.38
7.3.170.0120.00916.17
7.3.160.0120.00916.11
7.3.150.0140.00616.05
7.3.140.0170.00616.31
7.3.130.0100.00816.37
7.3.120.0080.01215.28
7.3.110.0080.00815.18
7.3.100.0110.00615.10
7.3.90.0070.00715.15
7.3.80.0100.00515.21
7.3.70.0050.00915.20
7.3.60.0070.00715.21
7.3.50.0080.00715.15
7.3.40.0050.00815.25
7.3.30.0060.00815.17
7.3.20.0050.00916.56
7.3.10.0050.01016.58
7.3.00.0070.00816.64
7.2.330.0100.01316.48
7.2.320.0110.00716.62
7.2.310.0090.00916.25
7.2.300.0150.01016.47
7.2.290.0090.00916.51
7.2.280.0040.01316.35
7.2.270.0180.00316.36
7.2.260.0180.00716.31
7.2.250.0110.01115.31
7.2.240.0100.00815.34
7.2.230.0100.00615.38
7.2.220.0040.01115.38
7.2.210.0040.01115.30
7.2.200.0070.00715.28
7.2.190.0060.00715.28
7.2.180.0040.00915.34
7.2.170.0110.00215.27
7.2.160.0050.01115.33
7.2.150.0070.00916.71
7.2.140.0070.00816.75
7.2.130.0060.00916.78
7.2.120.0040.00916.79
7.2.110.0070.00716.83
7.2.100.0080.00716.73
7.2.90.0080.00616.75
7.2.80.0070.00916.86
7.2.70.0050.00816.75
7.2.60.0080.00816.81
7.2.50.0070.00816.79
7.2.40.0080.00716.85
7.2.30.0060.00616.78
7.2.20.0040.01216.85
7.2.10.0060.00916.72
7.2.00.0050.00617.20
7.1.330.0090.00715.82
7.1.320.0080.01115.67
7.1.310.0050.00815.73
7.1.300.0090.00515.81
7.1.290.0080.00615.71
7.1.280.0040.01015.74
7.1.270.0070.00715.76
7.1.260.0050.00915.67
7.1.250.0070.00715.75
7.1.240.0060.01115.65
7.1.230.0080.00715.66
7.1.220.0090.00415.71
7.1.210.0060.00915.65
7.1.200.0040.01115.56
7.1.190.0060.00915.77
7.1.180.0070.00715.65
7.1.170.0020.01015.63
7.1.160.0070.00915.52
7.1.150.0050.00915.70
7.1.140.0070.00715.69
7.1.130.0080.00615.63
7.1.120.0050.00815.63
7.1.110.0070.00415.72
7.1.100.0070.00816.19
7.1.90.0050.01015.60
7.1.80.0050.00715.57
7.1.70.0080.00516.06
7.1.60.0060.01216.58
7.1.50.0090.00715.99
7.1.40.0080.00415.70
7.1.30.0050.00915.73
7.1.20.0070.00715.63
7.1.10.0090.00515.59
7.1.00.0040.02917.31
7.0.330.0050.01015.16
7.0.320.0080.00615.32
7.0.310.0060.00815.20
7.0.300.0050.00715.21
7.0.290.0070.00815.19
7.0.280.0060.00615.32
7.0.270.0070.00815.20
7.0.260.0100.00415.26
7.0.250.0090.00415.27
7.0.240.0030.01315.33
7.0.230.0060.00715.18
7.0.220.0080.00615.28
7.0.210.0060.00715.21
7.0.200.0040.01015.59
7.0.190.0040.00715.42
7.0.180.0070.00715.11
7.0.170.0060.00815.28
7.0.160.0050.00815.36
7.0.150.0070.00715.30
7.0.140.0070.02217.00
7.0.130.0030.01115.34
7.0.120.0090.01015.35
7.0.110.0080.01015.24
7.0.100.0090.00815.24
7.0.90.0050.00915.38
7.0.80.0100.00615.30
7.0.70.0050.01115.28
7.0.60.0020.03116.40
7.0.50.0060.02416.02
7.0.40.0040.01915.60
7.0.30.0120.02015.61
7.0.20.0120.02715.62
7.0.10.0070.01715.61
7.0.00.0090.02215.61
5.6.400.0080.00814.80
5.6.390.0060.00814.64
5.6.380.0040.01114.76
5.6.370.0020.01314.63
5.6.360.0070.00714.78
5.6.350.0060.01114.84
5.6.340.0090.00814.77
5.6.330.0110.00514.68
5.6.320.0080.00714.83
5.6.310.0100.00414.84
5.6.300.0050.01014.71
5.6.290.0080.00714.69
5.6.280.0080.02216.30
5.6.270.0080.01114.74
5.6.260.0090.00714.74
5.6.250.0050.01114.68
5.6.240.0090.00714.82
5.6.230.0080.00914.74
5.6.220.0060.01214.58
5.6.210.0050.01916.06
5.6.200.0080.01915.51
5.6.190.0030.02816.14
5.6.180.0060.02016.13
5.6.170.0120.01616.05
5.6.160.0040.02016.19
5.6.150.0030.01715.57
5.6.140.0050.02015.65
5.6.130.0050.01815.68
5.6.120.0100.02116.29
5.6.110.0050.01816.17
5.6.100.0070.02516.17
5.6.90.0080.02216.26
5.6.80.0050.03016.14
5.6.70.1140.01515.95
5.6.60.0060.00914.74
5.6.50.0050.01114.70
5.6.40.0110.00414.50
5.6.30.0060.00914.62
5.6.20.0060.00714.57
5.6.10.0030.01114.68
5.6.00.0020.01414.67
5.5.380.0050.01114.84
5.5.370.0090.00714.72
5.5.360.0070.01014.67
5.5.350.0100.02616.12
5.5.340.0060.01915.44
5.5.330.0080.01516.20
5.5.320.0080.02416.11
5.5.310.0120.01616.12
5.5.300.0090.02415.34
5.5.290.0050.01815.45
5.5.280.0070.02116.19
5.5.270.0070.02016.17
5.5.260.0090.02416.22
5.5.250.0100.02516.06
5.5.240.0080.02516.02
5.5.230.0050.00914.51
5.5.220.0070.00714.64
5.5.210.0090.00614.67
5.5.200.0070.00914.53
5.5.190.0040.00914.52
5.5.180.0060.00914.63
5.5.170.0040.00814.56
5.5.160.0020.01214.70
5.5.150.0060.00914.48
5.5.140.0040.01414.68
5.5.130.0060.00914.60
5.5.120.0040.01214.54
5.5.110.0060.00914.70
5.5.100.0060.01014.61
5.5.90.0060.00814.56
5.5.80.0080.00614.67
5.5.70.0050.01014.43
5.5.60.0090.00714.66
5.5.50.0060.00914.71
5.5.40.0030.01314.69
5.5.30.0040.01414.65
5.5.20.0050.01014.59
5.5.10.0100.00614.71
5.5.00.0090.00614.56
5.4.450.0090.01314.20
5.4.440.0060.01814.17
5.4.430.0050.01414.17
5.4.420.0120.01014.20
5.4.410.0080.01514.15
5.4.400.0060.01314.08
5.4.390.0070.01514.03
5.4.380.0140.02013.97
5.4.370.0110.01813.99
5.4.360.0150.02213.93
5.4.350.0230.01614.00
5.4.340.0150.01713.93
5.4.330.0050.00512.38
5.4.320.0040.01612.47
5.4.310.0080.01212.44
5.4.300.0060.01212.43
5.4.290.0050.01312.43
5.4.280.0070.01212.35
5.4.270.0080.01312.45
5.4.260.0060.01412.37
5.4.250.0070.01312.38
5.4.240.0060.01312.36
5.4.230.0050.01612.42
5.4.220.0070.01312.39
5.4.210.0040.01412.37
5.4.200.0050.01512.36
5.4.190.0050.01412.41
5.4.180.0030.01612.46
5.4.170.0020.01712.40
5.4.160.0030.01512.50
5.4.150.0080.01112.45
5.4.140.0060.01412.42
5.4.130.0050.01412.31
5.4.120.0020.01612.34
5.4.110.0040.01612.34
5.4.100.0050.01412.38
5.4.90.0080.01512.30
5.4.80.0060.01512.35
5.4.70.0050.01512.27
5.4.60.0050.01412.30
5.4.50.0060.01312.37
5.4.40.0050.01212.25
5.4.30.0040.01412.33
5.4.20.0060.01412.27
5.4.10.0040.01712.31
5.4.00.0060.01212.19
5.3.290.0080.02113.02
5.3.280.0040.02412.98
5.3.270.0100.02712.87
5.3.260.0070.02112.87
5.3.250.0060.02112.87
5.3.240.0060.02512.90
5.3.230.0020.02712.93
5.3.220.0070.02012.83
5.3.210.0040.02512.75
5.3.200.0030.02412.79
5.3.190.0120.01812.85
5.3.180.0080.02112.91
5.3.170.0090.01912.86
5.3.160.0060.02212.91
5.3.150.0040.02412.86
5.3.140.0050.02212.82
5.3.130.0040.02512.90
5.3.120.0060.02312.81
5.3.110.0080.02112.82
5.3.100.0040.02612.54
5.3.90.0070.02012.62
5.3.80.0060.02112.57
5.3.70.0080.01912.49
5.3.60.0040.03112.55
5.3.50.0060.02112.56
5.3.40.0050.03112.52
5.3.30.0070.02012.55
5.3.20.0070.02312.38
5.3.10.0070.02512.27
5.3.00.0060.02212.34
5.2.170.0070.01710.60
5.2.160.0030.02110.67
5.2.150.0050.01910.63
5.2.140.0040.02610.65
5.2.130.0030.01810.63
5.2.120.0090.01810.58
5.2.110.0040.02310.62
5.2.100.0090.01810.66
5.2.90.0060.01710.62
5.2.80.0030.02010.53
5.2.70.0080.02110.52
5.2.60.0060.01910.53
5.2.50.0060.01810.46
5.2.40.0040.01810.60
5.2.30.0010.02110.51
5.2.20.0060.01710.41
5.2.10.0050.01710.32
5.2.00.0090.01710.23
5.1.60.0040.0189.56
5.1.50.0080.0199.53
5.1.40.0070.0189.54
5.1.30.0070.0159.82
5.1.20.0030.0209.74
5.1.10.0040.0189.62
5.1.00.0040.0169.54
5.0.50.0030.0228.41
5.0.40.0040.0128.32
5.0.30.0020.0238.23
5.0.20.0060.0158.21
5.0.10.0050.0128.20
5.0.00.0060.0208.19
4.4.90.0030.0137.46
4.4.80.0010.0147.45
4.4.70.0040.0077.45
4.4.60.0030.0087.45
4.4.50.0030.0097.46
4.4.40.0030.0217.43
4.4.30.0040.0137.45
4.4.20.0020.0117.49
4.4.10.0040.0097.50
4.4.00.0040.0137.45
4.3.110.0030.0107.41
4.3.100.0010.0127.40
4.3.90.0010.0107.39
4.3.80.0020.0217.36
4.3.70.0050.0107.38
4.3.60.0040.0097.38
4.3.50.0050.0097.38
4.3.40.0020.0187.34
4.3.30.0040.0086.72
4.3.20.0030.0096.71
4.3.10.0000.0116.69
4.3.00.0020.01114.28

preferences:
51.43 ms | 400 KiB | 5 Q