3v4l.org

run code in 300+ PHP versions simultaneously
<?php string_lt('22', '123'); 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 "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.0150.00018.59
8.3.30.0070.00719.14
8.3.20.0040.00420.36
8.3.10.0040.00423.41
8.3.00.0030.00619.00
8.2.170.0150.00022.96
8.2.160.0000.01420.39
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0030.00521.00
8.2.110.0060.00322.13
8.2.100.0050.00518.03
8.2.90.0000.00818.80
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0020.00517.80
8.2.50.0050.00318.07
8.2.40.0070.00017.91
8.2.30.0000.00818.12
8.2.20.0000.00817.68
8.2.10.0040.00417.95
8.2.00.0050.00317.75
8.1.270.0080.00023.92
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00022.23
8.1.230.0060.00619.11
8.1.220.0000.00717.74
8.1.210.0040.00418.77
8.1.200.0090.00317.38
8.1.190.0040.00417.22
8.1.180.0000.00818.10
8.1.170.0030.00618.59
8.1.160.0000.00822.02
8.1.150.0040.00419.00
8.1.140.0000.00717.33
8.1.130.0070.00017.75
8.1.120.0000.00717.43
8.1.110.0040.00417.48
8.1.100.0070.00017.50
8.1.90.0030.00517.52
8.1.80.0070.00017.47
8.1.70.0070.00017.46
8.1.60.0000.00917.60
8.1.50.0030.00517.53
8.1.40.0050.00217.38
8.1.30.0050.00317.59
8.1.20.0000.00817.64
8.1.10.0050.00317.39
8.1.00.0040.00417.34
8.0.300.0040.00418.77
8.0.290.0000.00816.63
8.0.280.0000.00718.46
8.0.270.0050.00217.18
8.0.260.0070.00017.32
8.0.250.0030.00316.98
8.0.240.0000.00716.88
8.0.230.0000.00716.95
8.0.220.0050.00316.96
8.0.210.0000.00716.87
8.0.200.0000.00616.95
8.0.190.0040.00416.83
8.0.180.0050.00316.86
8.0.170.0030.00516.89
8.0.160.0000.00716.86
8.0.150.0040.00316.80
8.0.140.0040.00416.74
8.0.130.0030.00313.26
8.0.120.0040.00416.90
8.0.110.0040.00416.87
8.0.100.0000.00716.88
8.0.90.0040.00416.79
8.0.80.0000.01616.78
8.0.70.0020.00516.95
8.0.60.0000.00716.80
8.0.50.0040.00416.76
8.0.30.0100.01216.92
8.0.20.0160.00317.40
8.0.10.0070.00016.85
8.0.00.0080.01116.94
7.4.330.0000.00515.00
7.4.320.0030.00316.55
7.4.300.0060.00016.61
7.4.290.0030.00316.56
7.4.280.0030.00516.37
7.4.270.0020.00516.41
7.4.260.0100.00016.53
7.4.250.0040.00416.52
7.4.240.0000.00816.52
7.4.230.0000.00716.63
7.4.220.0030.01616.55
7.4.210.0030.01116.68
7.4.200.0000.00716.59
7.4.160.0070.01516.29
7.4.150.0030.01517.40
7.4.140.0080.00817.86
7.4.130.0050.01216.48
7.4.120.0140.00316.54
7.4.110.0120.00616.44
7.4.100.0140.00316.54
7.4.90.0090.00916.40
7.4.80.0120.00919.39
7.4.70.0030.01316.63
7.4.60.0100.00816.53
7.4.50.0100.00716.33
7.4.40.0150.00516.35
7.4.30.0100.01015.92
7.4.20.0120.00816.11
7.4.10.0050.01515.84
7.4.00.0090.00915.73
7.3.330.0030.00313.43
7.3.320.0000.00613.18
7.3.310.0060.00016.41
7.3.300.0030.00316.32
7.3.290.0100.00716.44
7.3.280.0080.00716.38
7.3.270.0110.01217.40
7.3.260.0150.00416.63
7.3.250.0100.01016.58
7.3.240.0070.01016.51
7.3.230.0070.01016.53
7.3.210.0140.00316.52
7.3.200.0100.00619.39
7.3.190.0060.01016.39
7.3.180.0130.00616.54
7.3.170.0040.01416.52
7.3.160.0160.00316.10
7.3.150.0070.01116.18
7.3.140.0040.01516.33
7.3.130.0100.00715.49
7.3.120.0100.00715.60
7.3.110.0080.01115.36
7.3.100.0090.00615.66
7.3.90.0080.01015.53
7.3.80.0110.00615.65
7.3.70.0050.01315.55
7.3.60.0080.01315.56
7.3.50.0110.00615.58
7.3.40.0110.00515.32
7.3.30.0040.01315.49
7.3.20.0080.00916.30
7.3.10.0050.01016.44
7.3.00.0060.00816.49
7.2.330.0120.01216.72
7.2.320.0070.01416.59
7.2.310.0160.00316.32
7.2.300.0080.01116.27
7.2.290.0180.00016.50
7.2.280.0060.01316.18
7.2.270.0040.01516.21
7.2.260.0080.01115.79
7.2.250.0080.01015.55
7.2.240.0100.01015.66
7.2.230.0080.00915.61
7.2.220.0100.00815.75
7.2.210.0080.00815.67
7.2.200.0140.00515.61
7.2.190.0140.00415.73
7.2.180.0090.00815.69
7.2.170.0060.00815.66
7.2.160.0030.01315.54
7.2.150.0080.00916.56
7.2.140.0100.00616.57
7.2.130.0140.00416.66
7.2.120.0070.00916.66
7.2.110.0120.00516.56
7.2.100.0090.00516.53
7.2.90.0070.00916.62
7.2.80.0080.00816.61
7.2.70.0150.01116.67
7.2.60.0040.01316.73
7.2.50.0080.00816.69
7.2.40.0060.01016.63
7.2.30.0060.01116.75
7.2.20.0090.00716.63
7.2.10.0100.00516.51
7.2.00.0060.01017.41
7.1.330.0090.00915.53
7.1.320.0020.01215.58
7.1.310.0110.00515.70
7.1.300.0070.01115.68
7.1.290.0090.00515.67
7.1.280.0060.00715.51
7.1.270.0120.01015.60
7.1.260.0100.00515.48
7.1.250.0170.00415.56
7.1.240.0140.00515.46
7.1.230.0110.00515.30
7.1.220.0090.00615.46
7.1.210.0120.00615.60
7.1.200.0060.00915.42
7.1.190.0060.00815.65
7.1.180.0090.00815.56
7.1.170.0090.00615.53
7.1.160.0050.01015.61
7.1.150.0050.01215.55
7.1.140.0050.01115.38
7.1.130.0080.00515.51
7.1.120.0120.00615.56
7.1.110.0100.00815.63
7.1.100.0090.00716.53
7.1.90.0020.01215.35
7.1.80.0060.00915.62
7.1.70.0030.01116.12
7.1.60.0070.00816.83
7.1.50.0070.00916.05
7.1.40.0080.00615.56
7.1.30.0090.00815.55
7.1.20.0100.00415.63
7.1.10.0080.00815.58
7.1.00.0070.02917.79
7.0.330.0120.00415.21
7.0.320.0080.01015.17
7.0.310.0050.00715.33
7.0.300.0100.00215.29
7.0.290.0090.00515.26
7.0.280.0130.00515.29
7.0.270.0080.00715.19
7.0.260.0040.00915.14
7.0.250.0130.00815.23
7.0.240.0090.00615.29
7.0.230.0120.00815.16
7.0.220.0050.00815.09
7.0.210.0070.00915.26
7.0.200.0070.00715.63
7.0.190.0100.00615.04
7.0.180.0070.00715.37
7.0.170.0080.00515.14
7.0.160.0120.00315.16
7.0.150.0110.00215.32
7.0.140.0070.03017.54
7.0.130.0070.01015.27
7.0.120.0070.00915.21
7.0.110.0070.00615.12
7.0.100.0040.00915.08
7.0.90.0020.01415.25
7.0.80.0050.00715.10
7.0.70.0090.00615.26
7.0.60.0140.02216.69
7.0.50.0110.02916.14
7.0.40.0120.03316.15
7.0.30.0230.02916.24
7.0.20.0160.03116.19
7.0.10.0110.03216.31
7.0.00.0120.02916.19
5.6.400.0100.00515.05
5.6.390.0130.00715.02
5.6.380.0090.01315.14
5.6.370.0030.01114.97
5.6.360.0100.00715.03
5.6.350.0070.01215.06
5.6.340.0080.01114.96
5.6.330.0070.00914.98
5.6.320.0100.00814.97
5.6.310.0060.01014.83
5.6.300.0090.00514.86
5.6.290.0070.00715.13
5.6.280.0070.03216.94
5.6.270.0100.00514.96
5.6.260.0100.00614.90
5.6.250.0070.01014.88
5.6.240.0040.01114.97
5.6.230.0050.00915.01
5.6.220.0100.00814.85
5.6.210.0090.02516.96
5.6.200.0070.03515.99
5.6.190.0090.03116.71
5.6.180.0100.02016.66
5.6.170.0150.03116.72
5.6.160.0100.02916.86
5.6.150.0070.01716.01
5.6.140.0080.03316.05
5.6.130.0050.02216.04
5.6.120.0070.02216.98
5.6.110.0090.01517.04
5.6.100.0120.02716.89
5.6.90.0100.03217.01
5.6.80.0070.03216.83
5.6.70.1430.01916.77
5.6.60.0070.00814.90
5.6.50.0060.00914.94
5.6.40.0100.00814.84
5.6.30.0090.00714.82
5.6.20.0110.00314.87
5.6.10.0080.00914.98
5.6.00.0050.01214.77
5.5.380.0080.00614.89
5.5.370.0050.01415.04
5.5.360.0070.01014.77
5.5.350.0090.03016.73
5.5.340.0050.02316.07
5.5.330.0060.01916.83
5.5.320.0080.01816.73
5.5.310.0120.01916.77
5.5.300.0080.02815.99
5.5.290.0060.02015.86
5.5.280.0070.03116.78
5.5.270.0080.01816.94
5.5.260.0120.02616.98
5.5.250.0120.02916.81
5.5.240.0100.03116.65
5.5.230.0070.00814.93
5.5.220.0100.00414.97
5.5.210.0070.00714.86
5.5.200.0110.00714.75
5.5.190.0070.00815.03
5.5.180.0070.01114.89
5.5.170.0100.00814.81
5.5.160.0040.01414.73
5.5.150.0050.01014.84
5.5.140.0090.00514.95
5.5.130.0050.01014.93
5.5.120.0070.00914.78
5.5.110.0090.00914.93
5.5.100.0070.01014.76
5.5.90.0090.00914.88
5.5.80.0090.00614.73
5.5.70.0030.01114.87
5.5.60.0070.00914.99
5.5.50.0080.00414.95
5.5.40.0070.00914.82
5.5.30.0070.00914.84
5.5.20.0030.01014.73
5.5.10.0070.00814.80
5.5.00.0070.00614.64
5.4.450.0110.02014.29
5.4.440.0110.01414.38
5.4.430.0120.01414.28
5.4.420.0110.01814.38
5.4.410.0080.02014.35
5.4.400.0120.01514.33
5.4.390.0060.02014.19
5.4.380.0210.02014.17
5.4.370.0160.02413.92
5.4.360.0190.01814.05
5.4.350.0180.02114.03
5.4.340.0200.01614.06
5.4.330.0070.00711.75
5.4.320.0080.01512.01
5.4.310.0030.01912.03
5.4.300.0060.01612.07
5.4.290.0080.01411.95
5.4.280.0070.01312.02
5.4.270.0070.01511.98
5.4.260.0050.01912.07
5.4.250.0050.01611.97
5.4.240.0060.01611.97
5.4.230.0070.01311.98
5.4.220.0060.01511.98
5.4.210.0050.01711.97
5.4.200.0050.01911.94
5.4.190.0050.01711.84
5.4.180.0040.01611.99
5.4.170.0060.01611.90
5.4.160.0040.01612.02
5.4.150.0050.01512.05
5.4.140.0030.01911.96
5.4.130.0030.01911.83
5.4.120.0040.01811.87
5.4.110.0030.01811.88
5.4.100.0040.01811.87
5.4.90.0050.01611.95
5.4.80.0070.01711.87
5.4.70.0060.01411.91
5.4.60.0060.01611.83
5.4.50.0050.01511.90
5.4.40.0060.01711.90
5.4.30.0070.01611.78
5.4.20.0050.01811.83
5.4.10.0040.01711.82
5.4.00.0060.01711.76
5.3.290.0050.02313.03
5.3.280.0030.02412.90
5.3.270.0050.02212.91
5.3.260.0080.02312.87
5.3.250.0080.02012.95
5.3.240.0040.02412.81
5.3.230.0030.02412.92
5.3.220.0040.02312.90
5.3.210.0040.02512.82
5.3.200.0070.02212.79
5.3.190.0080.02112.78
5.3.180.0070.02012.92
5.3.170.0070.02012.91
5.3.160.0070.02012.85
5.3.150.0030.02512.87
5.3.140.0070.02112.83
5.3.130.0060.02512.84
5.3.120.0070.02512.88
5.3.110.0070.02412.90
5.3.100.0060.02112.54
5.3.90.0070.02012.54
5.3.80.0050.02212.51
5.3.70.0040.02312.56
5.3.60.0030.02512.60
5.3.50.0070.02212.50
5.3.40.0020.02512.49
5.3.30.0050.02212.55
5.3.20.0030.02512.38
5.3.10.0050.02212.28
5.3.00.0050.02312.31
5.2.170.0050.02110.67
5.2.160.0030.02010.68
5.2.150.0060.01810.66
5.2.140.0070.01610.59
5.2.130.0070.01610.61
5.2.120.0050.02010.61
5.2.110.0050.02310.59
5.2.100.0060.01810.58
5.2.90.0040.02310.57
5.2.80.0050.01910.60
5.2.70.0050.01810.51
5.2.60.0040.02010.54
5.2.50.0040.01910.53
5.2.40.0030.01910.48
5.2.30.0060.02010.45
5.2.20.0060.01610.48
5.2.10.0060.01510.41
5.2.00.0040.01810.21
5.1.60.0060.0129.67
5.1.50.0020.0169.68
5.1.40.0030.0179.55
5.1.30.0030.0189.85
5.1.20.0040.0179.72
5.1.10.0020.0189.61
5.1.00.0050.0159.59
5.0.50.0010.0168.47
5.0.40.0040.0128.32
5.0.30.0040.0188.23
5.0.20.0020.0148.21
5.0.10.0050.0128.20
5.0.00.0060.0188.20
4.4.90.0040.0087.46
4.4.80.0060.0057.45
4.4.70.0040.0077.45
4.4.60.0030.0097.45
4.4.50.0020.0097.46
4.4.40.0030.0137.42
4.4.30.0040.0077.45
4.4.20.0030.0107.49
4.4.10.0040.0087.49
4.4.00.0030.0137.45
4.3.110.0050.0077.40
4.3.100.0020.0107.40
4.3.90.0020.0107.39
4.3.80.0030.0127.36
4.3.70.0020.0107.38
4.3.60.0040.0097.38
4.3.50.0020.0097.38
4.3.40.0030.0147.34
4.3.30.0010.0106.72
4.3.20.0040.0116.71
4.3.10.0010.0106.69
4.3.00.0020.01214.28

preferences:
46.87 ms | 400 KiB | 5 Q