3v4l.org

run code in 300+ PHP versions simultaneously
<?php function compare($left, $right) { if (($length = mb_strlen($left)) != mb_strlen($right)) { return false; } for ($i = 0, $result = 0; $i < $length; $i++) { $result |= ord($left[$i]) ^ ord($right[$i]); } return $result === 0; } var_dump(compare('Ð', 'Â'));

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.4.20.0080.00017.52
8.4.10.0000.01117.48
8.3.150.0090.00918.80
8.3.140.0040.00419.05
8.3.130.0000.00818.33
8.3.120.0180.00419.07
8.3.110.0060.00320.94
8.3.100.0040.00418.32
8.3.90.0040.01416.77
8.3.80.0070.00417.97
8.3.70.0110.00418.18
8.3.60.0100.01018.39
8.3.50.0120.00921.11
8.3.40.0130.00619.02
8.3.30.0130.00718.84
8.3.20.0050.00220.29
8.3.10.0040.00421.81
8.3.00.0030.00621.84
8.2.270.0040.01217.32
8.2.260.0110.00417.30
8.2.250.0060.00916.56
8.2.240.0090.00616.96
8.2.230.0040.00422.58
8.2.220.0000.00937.54
8.2.210.0070.01126.77
8.2.200.0100.00018.50
8.2.190.0040.01116.58
8.2.180.0070.01016.38
8.2.170.0000.01722.96
8.2.160.0080.00620.58
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00020.63
8.2.120.0040.00426.35
8.2.110.0100.01421.07
8.2.100.0070.00717.78
8.2.90.0060.00317.63
8.2.80.0030.00518.82
8.2.70.0030.00617.50
8.2.60.0030.00518.04
8.2.50.0000.00918.07
8.2.40.0030.00519.88
8.2.30.0000.00718.05
8.2.20.0000.00817.79
8.2.10.0040.00417.94
8.2.00.0040.00418.05
8.1.310.0080.00018.21
8.1.300.0030.00617.81
8.1.290.0030.00618.88
8.1.280.0150.00625.92
8.1.270.0040.00422.19
8.1.260.0000.00728.09
8.1.250.0000.00728.09
8.1.240.0030.00722.10
8.1.230.0040.00717.77
8.1.220.0000.00817.78
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0000.00817.23
8.1.180.0000.00918.10
8.1.170.0000.00818.46
8.1.160.0040.00418.85
8.1.150.0000.00718.90
8.1.140.0060.00319.58
8.1.130.0000.00717.61
8.1.120.0030.00317.46
8.1.110.0070.00017.33
8.1.100.0000.00817.44
8.1.90.0040.00417.36
8.1.80.0090.00017.51
8.1.70.0050.00317.37
8.1.60.0130.00317.65
8.1.50.0060.00317.61
8.1.40.0080.00017.49
8.1.30.0030.00617.71
8.1.20.0000.00817.69
8.1.10.0040.00417.60
8.1.00.0070.00017.41
8.0.300.0000.00720.55
8.0.290.0040.00416.75
8.0.280.0040.00418.34
8.0.270.0000.00717.27
8.0.260.0070.00017.30
8.0.250.0000.00716.88
8.0.240.0000.00616.85
8.0.230.0000.00716.98
8.0.220.0030.00316.96
8.0.210.0070.00016.84
8.0.200.0040.00416.93
8.0.190.0050.00216.85
8.0.180.0000.00716.91
8.0.170.0070.00016.82
8.0.160.0030.00316.89
8.0.150.0040.00416.74
8.0.140.0040.00416.75
8.0.130.0000.00613.32
8.0.120.0000.00716.83
8.0.110.0040.00316.95
8.0.100.0040.00416.86
8.0.90.0040.00416.84
8.0.80.0150.00616.80
8.0.70.0040.00416.89
8.0.60.0040.00416.77
8.0.50.0000.00816.88
8.0.30.0140.00717.12
8.0.20.0070.01317.40
8.0.10.0070.00017.02
8.0.00.0090.00816.86
7.4.330.0000.00516.84
7.4.320.0070.00016.60
7.4.300.0000.00716.64
7.4.290.0000.00716.43
7.4.280.0060.00616.59
7.4.270.0050.00216.54
7.4.260.0040.00416.48
7.4.250.0040.00416.55
7.4.240.0080.00016.62
7.4.230.0000.00716.61
7.4.220.0140.01116.52
7.4.210.0070.01116.57
7.4.200.0030.00316.39
7.4.160.0170.00716.48
7.4.150.0110.00617.40
7.4.140.0120.00817.86
7.4.130.0120.00816.46
7.4.120.0140.00316.61
7.4.110.0100.00716.56
7.4.100.0100.01416.60
7.4.90.0080.02016.37
7.4.80.0110.00619.39
7.4.70.0090.00816.36
7.4.60.0130.00716.38
7.4.50.0090.00616.46
7.4.40.0110.00616.48
7.4.30.0060.01016.55
7.4.00.0080.00815.00
7.3.330.0030.00313.35
7.3.320.0070.00013.37
7.3.310.0030.00316.53
7.3.300.0030.00316.23
7.3.290.0080.00716.32
7.3.280.0040.01416.37
7.3.270.0090.00917.40
7.3.260.0090.00916.28
7.3.250.0100.01016.47
7.3.240.0070.01016.40
7.3.230.0060.01216.68
7.3.210.0100.00716.60
7.3.200.0070.01019.39
7.3.190.0130.00716.45
7.3.180.0070.01116.38
7.3.170.0150.00916.47
7.3.160.0070.01016.27
7.2.330.0120.00616.75
7.2.320.0060.01516.79
7.2.310.0070.01616.40
7.2.300.0030.02116.79
7.2.290.0060.01316.64
7.2.110.0160.00716.00
7.2.100.0110.00715.85
7.2.90.0110.01116.06
7.2.80.0270.01116.75
7.2.70.0350.00716.70
7.2.60.0320.00417.02
7.2.50.0220.01016.71
7.2.40.0310.00616.96
7.2.30.0230.00916.92
7.2.20.0230.00917.00
7.2.10.0250.00816.71
7.2.00.0100.00918.34
7.1.230.0140.00315.52
7.1.220.0150.00414.96
7.1.210.0060.01215.40
7.1.200.0250.00915.80
7.1.190.0200.01615.79
7.1.180.0210.01215.75
7.1.170.0210.00915.79
7.1.160.0220.01115.80
7.1.150.0240.00815.63
7.1.140.0150.01515.58
7.1.130.0260.00915.78
7.1.120.0260.01115.87
7.1.110.0190.01315.94
7.1.100.0140.01017.23
7.1.90.0200.01215.94
7.1.80.0210.00615.53
7.1.70.0100.00916.22
7.1.60.0150.01317.41
7.1.50.0160.00716.36
7.1.40.0170.00316.09
7.1.30.0230.00815.33
7.1.20.0160.01615.66
7.1.10.0140.01415.43
7.1.00.0220.03719.08
7.0.310.0330.00315.22
7.0.300.0260.00315.41
7.0.290.0200.00815.38
7.0.280.0300.00715.36
7.0.270.0190.01015.27
7.0.260.0200.01015.21
7.0.250.0150.01515.30
7.0.240.0270.00715.45
7.0.230.0180.01515.26
7.0.220.0230.00715.41
7.0.210.0140.00715.17
7.0.200.0590.00714.97
7.0.190.0120.01215.16
7.0.180.0240.00415.03
7.0.170.0120.01214.92
7.0.160.0240.00715.31
7.0.150.0150.00615.05
7.0.140.0160.00615.29
7.0.130.0200.01215.13
7.0.120.0210.00914.91
7.0.110.0310.00315.05
7.0.100.0260.00814.98
7.0.90.0360.01015.13
7.0.80.0180.00915.20
7.0.70.0150.00815.14
7.0.60.0240.03517.58
7.0.50.0190.03116.53
7.0.40.0110.02316.65
7.0.30.0230.02716.71
7.0.20.0070.02816.62
7.0.10.0150.03016.68
7.0.00.0050.03116.40
5.6.380.0060.00913.79
5.6.370.0220.00014.17
5.6.360.0170.00814.58
5.6.350.0250.00414.02
5.6.340.0200.00414.77
5.6.330.0170.01214.63
5.6.320.0180.00714.34
5.6.310.0110.01114.11
5.6.300.0260.00314.26
5.6.290.0230.00813.84
5.6.280.0050.04217.59
5.6.270.0190.00914.29
5.6.260.0410.01014.30
5.6.250.0440.00313.97
5.6.240.0330.01013.85
5.6.230.0420.01013.80
5.6.220.0000.01613.92
5.6.210.0070.02517.32
5.6.200.0210.03615.99
5.6.190.0230.03917.20
5.6.180.0440.03817.25
5.6.170.0220.02717.30
5.6.160.0250.04517.06
5.6.150.0090.04416.07
5.6.140.0190.04516.07
5.6.130.0140.04115.98
5.6.120.0150.03817.58
5.6.110.0100.03317.54
5.6.100.0130.04617.41
5.6.90.0090.03317.60
5.6.80.0090.04317.10
5.6.70.0200.00013.95
5.6.60.0170.00314.04
5.6.50.0160.01613.87
5.6.40.0170.00014.30
5.6.30.0300.00014.38
5.6.20.0250.00414.23
5.6.10.0430.00314.14
5.6.00.0160.00713.96
5.5.380.0600.00710.74
5.5.370.0240.00710.56
5.5.360.0130.00311.03
5.5.350.0100.03215.84
5.5.340.0100.02414.35
5.5.330.0230.02015.51
5.5.320.0360.04015.37
5.5.310.0160.03215.59
5.5.300.0050.03814.39
5.5.290.0090.04114.42
5.5.280.0080.04315.73
5.5.270.0100.02315.89
5.5.260.0060.04615.95
5.5.250.0120.02315.76
5.5.240.2140.02215.42
5.5.230.0080.00610.95
5.5.220.0150.00411.00
5.5.210.0130.00310.96
5.5.200.0140.00310.92
5.5.190.0100.00311.03
5.5.180.0070.00710.88
5.5.170.0250.00414.33
5.5.160.0080.00410.93
5.5.150.0090.00611.30
5.5.140.0160.00911.07
5.5.130.0200.00310.94
5.5.120.0360.00010.92
5.5.110.0370.00311.00
5.5.100.0160.00710.54
5.5.90.0250.00311.13
5.5.80.0140.00710.93
5.5.70.0110.00610.86
5.5.60.0220.00410.95
5.5.50.0120.00311.25
5.5.40.0050.00510.77
5.5.30.0250.00011.16
5.5.20.0340.00310.98
5.5.10.0200.00811.03
5.5.00.0370.00611.14

preferences:
62.64 ms | 403 KiB | 5 Q