3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(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.60.0040.01118.43
8.3.50.0070.01222.92
8.3.40.0150.00018.79
8.3.30.0040.01119.10
8.3.20.0070.00020.16
8.3.10.0050.00323.66
8.3.00.0070.00419.25
8.2.180.0180.00016.38
8.2.170.0000.01522.96
8.2.160.0090.00618.76
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0040.00421.02
8.2.110.0040.00421.91
8.2.100.0040.00718.22
8.2.90.0000.00919.25
8.2.80.0000.00817.97
8.2.70.0030.00517.63
8.2.60.0000.00818.04
8.2.50.0000.00818.07
8.2.40.0080.00018.09
8.2.30.0060.00318.12
8.2.20.0060.00317.71
8.2.10.0000.00718.07
8.2.00.0040.00417.71
8.1.280.0150.00625.92
8.1.270.0000.00923.97
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00723.79
8.1.230.0080.00318.97
8.1.220.0040.00417.74
8.1.210.0000.00718.77
8.1.200.0050.00517.35
8.1.190.0030.00617.23
8.1.180.0040.00418.10
8.1.170.0090.00518.32
8.1.160.0040.00422.02
8.1.150.0070.00018.88
8.1.140.0040.00417.51
8.1.130.0000.00717.88
8.1.120.0030.00517.46
8.1.110.0030.00317.52
8.1.100.0040.00417.38
8.1.90.0030.00317.46
8.1.80.0040.00417.50
8.1.70.0070.00017.45
8.1.60.0090.00017.56
8.1.50.0040.00417.41
8.1.40.0040.00417.48
8.1.30.0060.00317.62
8.1.20.0040.00417.56
8.1.10.0030.00517.40
8.1.00.0040.00417.47
8.0.300.0000.00718.77
8.0.290.0030.00616.75
8.0.280.0070.00018.49
8.0.270.0050.00317.25
8.0.260.0040.00418.55
8.0.250.0030.00317.02
8.0.240.0030.00616.98
8.0.230.0000.00716.91
8.0.220.0000.00716.91
8.0.210.0050.00316.92
8.0.200.0000.00616.88
8.0.190.0030.00616.98
8.0.180.0050.00316.94
8.0.170.0080.00016.94
8.0.160.0000.00716.97
8.0.150.0040.00416.77
8.0.140.0030.00316.77
8.0.130.0000.00513.26
8.0.120.0040.00416.88
8.0.110.0000.00816.74
8.0.100.0040.00416.70
8.0.90.0030.00616.97
8.0.80.0100.00716.94
8.0.70.0040.00416.85
8.0.60.0070.00016.93
8.0.50.0000.00716.94
8.0.30.0100.01417.34
8.0.20.0150.00617.41
8.0.10.0040.00417.09
8.0.00.0110.00816.79
7.4.330.0050.00015.01
7.4.320.0000.00616.48
7.4.300.0030.00316.57
7.4.290.0030.00316.61
7.4.280.0040.00416.50
7.4.270.0030.00316.44
7.4.260.0000.00716.59
7.4.250.0040.00416.39
7.4.240.0000.00816.54
7.4.230.0000.00716.55
7.4.220.0130.00316.62
7.4.210.0130.00316.54
7.4.200.0050.00216.68
7.4.160.0130.00316.31
7.4.150.0120.00817.40
7.4.140.0090.00917.86
7.4.130.0100.01116.46
7.4.120.0090.00816.53
7.4.110.0090.00916.52
7.4.100.0060.01116.60
7.4.90.0100.00716.58
7.4.80.0030.01419.39
7.4.70.0030.01816.43
7.4.60.0110.01216.45
7.4.50.0100.00616.45
7.4.40.0070.01716.19
7.4.30.0130.01015.95
7.4.20.0090.01116.34
7.4.10.0100.01015.88
7.4.00.0080.00915.82
7.3.330.0070.00013.21
7.3.320.0000.00513.23
7.3.310.0030.00316.25
7.3.300.0070.00016.38
7.3.290.0120.00416.38
7.3.280.0080.00716.36
7.3.270.0130.00617.40
7.3.260.0060.01216.47
7.3.250.0090.00916.63
7.3.240.0130.00616.39
7.3.230.0090.00916.47
7.3.210.0130.00716.60
7.3.200.0100.00719.39
7.3.190.0060.01016.65
7.3.180.0140.00716.21
7.3.170.0130.00616.22
7.3.160.0120.01216.16
7.3.150.0140.00816.17
7.3.140.0070.01416.35
7.3.130.0170.00316.35
7.3.120.0110.00915.58
7.3.110.0080.01115.51
7.3.100.0060.01515.49
7.3.90.0080.00815.41
7.3.80.0080.01015.51
7.3.70.0050.01315.41
7.3.60.0130.00615.55
7.3.50.0160.00015.54
7.3.40.0130.00315.47
7.3.30.0120.00515.61
7.3.20.0080.01116.51
7.3.10.0070.01016.50
7.3.00.0100.00816.46
7.2.330.0100.01316.75
7.2.320.0100.01016.82
7.2.310.0090.01216.39
7.2.300.0160.01116.43
7.2.290.0120.00916.32
7.2.280.0110.01416.16
7.2.270.0070.01216.34
7.2.260.0170.00416.39
7.2.250.0080.01115.84
7.2.240.0060.01615.76
7.2.230.0100.00815.75
7.2.220.0170.00715.58
7.2.210.0130.00915.72
7.2.200.0130.00815.48
7.2.190.0100.00915.73
7.2.180.0070.01115.74
7.2.170.0080.00915.63
7.2.160.0080.01115.61
7.2.150.0070.01216.49
7.2.140.0120.00316.56
7.2.130.0050.01216.65
7.2.120.0060.01016.62
7.2.110.0130.00616.63
7.2.100.0060.00916.51
7.2.90.0160.00316.65
7.2.80.0090.00916.56
7.2.70.0160.00716.46
7.2.60.0090.00916.62
7.2.50.0110.01016.70
7.2.40.0060.01416.52
7.2.30.0060.01116.61
7.2.20.0130.00416.67
7.2.10.0070.00716.63
7.2.00.0100.00417.65
7.1.330.0090.00815.40
7.1.320.0080.00915.53
7.1.310.0130.00415.49
7.1.300.0120.00715.57
7.1.290.0020.01415.51
7.1.280.0130.00415.61
7.1.270.0240.01215.62
7.1.260.0100.00715.55
7.1.250.0030.01215.62
7.1.240.0120.00415.37
7.1.230.0090.00915.14
7.1.220.0210.00015.37
7.1.210.0150.00515.33
7.1.200.0100.00515.48
7.1.190.0150.00715.51
7.1.180.0200.00015.24
7.1.170.0060.01215.20
7.1.160.0100.01015.32
7.1.150.0150.00315.35
7.1.140.0130.01015.26
7.1.130.0130.00515.48
7.1.120.0090.01415.21
7.1.110.0210.00615.22
7.1.100.0070.01316.90
7.1.90.0130.00915.17
7.1.80.0100.00715.32
7.1.70.0090.00416.21
7.1.60.0150.01017.47
7.1.50.0080.01416.30
7.1.40.0100.01015.25
7.1.30.0190.00015.30
7.1.20.0170.00315.41
7.1.10.0110.01515.32
7.1.00.0230.04418.77
7.0.330.0040.01215.02
7.0.320.0120.00915.04
7.0.310.0190.00515.16
7.0.300.0140.00515.08
7.0.290.0170.00315.13
7.0.280.0080.00815.14
7.0.270.0130.00615.04
7.0.260.0170.00314.96
7.0.250.0180.01414.95
7.0.240.0120.01215.00
7.0.230.0130.00714.82
7.0.220.0100.00815.13
7.0.210.0100.01315.01
7.0.200.0110.00615.97
7.0.190.0130.00315.07
7.0.180.0140.01015.02
7.0.170.0100.01415.14
7.0.160.0090.01214.82
7.0.150.0140.00715.32
7.0.140.0110.03818.47
7.0.130.0160.00314.99
7.0.120.0150.00415.07
7.0.110.0110.00614.97
7.0.100.0110.00714.75
7.0.90.0170.00714.92
7.0.80.0140.01015.00
7.0.70.0120.00715.01
7.0.60.0100.04517.43
7.0.50.0100.03216.42
7.0.40.0090.03317.45
7.0.30.0210.03917.62
7.0.20.0220.04517.67
7.0.10.0030.03517.59
7.0.00.0140.04017.50
5.6.400.0080.01315.70
5.6.390.0160.00715.57
5.6.380.0140.00515.65
5.6.370.0070.01115.61
5.6.360.0060.01315.70
5.6.350.0130.01215.44
5.6.340.0110.01115.44
5.6.330.0120.00815.56
5.6.320.0120.01315.71
5.6.310.0040.01715.64
5.6.300.0160.00815.69
5.6.290.0130.01115.80
5.6.280.0060.04318.42
5.6.270.0100.01015.95
5.6.260.0160.00415.70
5.6.250.0180.00615.65
5.6.240.0130.01315.46
5.6.230.0090.01315.70
5.6.220.0100.01315.71
5.6.210.0110.04118.18
5.6.200.0200.03816.94
5.6.190.0060.02617.94
5.6.180.0060.03118.15
5.6.170.0210.04018.03
5.6.160.0120.04818.02
5.6.150.0050.05216.99
5.6.140.0070.04016.89
5.6.130.0050.02716.82
5.6.120.0100.04818.41
5.6.110.0090.02718.40
5.6.100.0100.05018.30
5.6.90.0070.04718.46
5.6.80.0090.04618.08
5.6.70.2210.02618.02
5.6.60.0150.00315.68
5.6.50.0080.01115.67
5.6.40.0030.01615.40
5.6.30.0130.00715.45
5.6.20.0140.00715.73
5.6.10.0130.01615.95
5.6.00.0100.01415.56
5.5.380.0190.00715.57
5.5.370.0160.00815.57
5.5.360.0060.01415.44
5.5.350.0120.04717.95
5.5.340.0150.03516.88
5.5.330.0100.03218.08
5.5.320.0080.03118.09
5.5.310.0180.02617.84
5.5.300.0090.02816.79
5.5.290.0050.02516.70
5.5.280.0070.04618.19
5.5.270.0080.02718.11
5.5.260.0070.05018.13
5.5.250.0130.04618.09
5.5.240.0130.04617.81
5.5.230.0230.00615.45
5.5.220.0090.01215.77
5.5.210.0080.01215.59
5.5.200.0120.00915.48
5.5.190.0140.00715.49
5.5.180.0140.00615.73
5.5.170.0080.01515.54
5.5.160.0110.00715.52
5.5.150.0120.00815.52
5.5.140.0100.00815.73
5.5.130.0110.00715.79
5.5.120.0120.01215.43
5.5.110.0100.01315.61
5.5.100.0150.00315.74
5.5.90.0100.01015.69
5.5.80.0070.01115.62
5.5.70.0150.00415.64
5.5.60.0070.01015.48
5.5.50.0060.01215.73
5.5.40.0100.01015.67
5.5.30.0060.01215.55
5.5.20.0150.00315.68
5.5.10.0080.01215.59
5.5.00.0070.01115.54
5.4.450.0120.02716.05
5.4.440.0120.03016.07
5.4.430.0140.02215.91
5.4.420.0160.01715.91
5.4.410.0100.02315.96
5.4.400.0130.02215.79
5.4.390.0150.02015.84
5.4.380.0220.03115.66
5.4.370.0290.02515.66
5.4.360.0170.03615.40
5.4.350.0200.03515.71
5.4.340.0210.03115.57
5.4.330.0070.00712.45
5.4.320.0070.02112.59
5.4.310.0090.02012.50
5.4.300.0070.02112.46
5.4.290.0050.02612.61
5.4.280.0070.02212.54
5.4.270.0080.02012.58
5.4.260.0050.02512.54
5.4.250.0060.02612.49
5.4.240.0050.02712.53
5.4.230.0070.02312.38
5.4.220.0070.02012.57
5.4.210.0040.02312.39
5.4.200.0090.02412.56
5.4.190.0060.02212.45
5.4.180.0060.02212.42
5.4.170.0080.02012.40
5.4.160.0090.01812.42
5.4.150.0090.01912.44
5.4.140.0070.02212.29
5.4.130.0040.02312.30
5.4.120.0040.02312.24
5.4.110.0060.02412.31
5.4.100.0060.02112.20
5.4.90.0070.02412.28
5.4.80.0060.02312.27
5.4.70.0050.02512.30
5.4.60.0090.02212.36
5.4.50.0090.01812.29
5.4.40.0070.02112.31
5.4.30.0070.02012.37
5.4.20.0110.02012.28
5.4.10.0110.02112.23
5.4.00.0080.02011.96
5.3.290.0040.02813.01
5.3.280.0030.02412.87
5.3.270.0070.02112.87
5.3.260.0050.02412.94
5.3.250.0070.02112.90
5.3.240.0030.02412.90
5.3.230.0020.02712.86
5.3.220.0060.02212.76
5.3.210.0050.02412.76
5.3.200.0020.02512.76
5.3.190.0100.01812.85
5.3.180.0070.02212.87
5.3.170.0080.02012.94
5.3.160.0040.02412.93
5.3.150.0040.02312.86
5.3.140.0040.02512.81
5.3.130.0070.02712.87
5.3.120.0060.02212.88
5.3.110.0060.02612.81
5.3.100.0050.02312.69
5.3.90.0080.01912.57
5.3.80.0040.02712.50
5.3.70.0080.02212.49
5.3.60.0070.02512.55
5.3.50.0090.02012.52
5.3.40.0050.02712.55
5.3.30.0050.02512.56
5.3.20.0050.02112.45
5.3.10.0080.01912.27
5.3.00.0080.02312.26
5.2.170.0080.01910.62
5.2.160.0070.02110.66
5.2.150.0060.01910.60
5.2.140.0070.01710.74
5.2.130.0050.02110.58
5.2.120.0050.01710.57
5.2.110.0090.01510.59
5.2.100.0070.01610.58
5.2.90.0080.02010.62
5.2.80.0070.01910.58
5.2.70.0060.02410.52
5.2.60.0090.02310.43
5.2.50.0060.02610.53
5.2.40.0060.02210.53
5.2.30.0090.02210.44
5.2.20.0060.01710.48
5.2.10.0100.01510.29
5.2.00.0060.02110.23
5.1.60.0080.0179.55
5.1.50.0040.0199.52
5.1.40.0040.0159.54
5.1.30.0080.0179.79
5.1.20.0050.0179.74
5.1.10.0060.0179.59
5.1.00.0080.0169.62
5.0.50.0070.0138.39
5.0.40.0050.0138.32
5.0.30.0060.0188.22
5.0.20.0050.0128.21
5.0.10.0060.0128.20
5.0.00.0040.0188.20
4.4.90.0030.0117.46
4.4.80.0060.0087.45
4.4.70.0040.0097.45
4.4.60.0010.0117.45
4.4.50.0050.0087.46
4.4.40.0050.0137.42
4.4.30.0030.0117.45
4.4.20.0010.0127.49
4.4.10.0030.0107.49
4.4.00.0020.0157.45
4.3.110.0040.0107.40
4.3.100.0010.0127.40
4.3.90.0040.0107.39
4.3.80.0050.0147.36
4.3.70.0040.0097.39
4.3.60.0040.0077.38
4.3.50.0040.0097.38
4.3.40.0040.0127.34
4.3.30.0010.0106.72
4.3.20.0030.0086.71
4.3.10.0010.0116.69
4.3.00.0020.00914.28

preferences:
51.5 ms | 400 KiB | 5 Q