3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string1 = '123456789'; $string2 = '135792468'; $stringParts1 = str_split($string1); sort($stringParts1); $stringParts2 = str_split($string2); sort($stringParts2); if( $stringParts1 == $stringParts2){ echo 'strings are a reorder'; }else{ echo 'strings are not a reorder'; };

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.5.00.0110.01020.07
8.4.150.0020.00014.05
8.4.140.0110.00917.44
8.4.130.0110.01017.70
8.4.120.0040.00422.59
8.4.110.0150.00522.31
8.4.100.0130.00718.50
8.4.90.0040.00520.50
8.4.80.0120.00818.95
8.4.70.0090.00918.03
8.4.60.0090.00918.96
8.4.50.0120.00818.99
8.4.40.0090.00019.52
8.4.30.0070.01417.48
8.4.20.0170.00320.52
8.4.10.0090.00617.52
8.3.280.0140.00618.39
8.3.270.0120.00816.42
8.3.260.0110.00816.57
8.3.250.0130.00618.65
8.3.240.0090.00817.27
8.3.230.0130.00416.40
8.3.220.0100.00819.04
8.3.210.0120.00516.70
8.3.200.0050.00416.41
8.3.190.0100.00717.05
8.3.180.0110.00717.38
8.3.170.0070.00018.71
8.3.160.0150.00317.07
8.3.150.0110.00717.09
8.3.140.0060.00317.09
8.3.130.0050.00318.34
8.3.120.0080.00019.11
8.3.110.0050.00320.94
8.3.100.0070.00324.06
8.3.90.0080.00626.77
8.3.80.0060.00317.97
8.3.70.0120.00318.18
8.3.60.0130.00318.30
8.3.50.0080.00818.09
8.3.40.0090.00918.53
8.3.30.0120.00318.38
8.3.20.0040.00419.15
8.3.10.0070.00023.51
8.3.00.0090.00623.38
8.2.290.0050.00320.26
8.2.280.0090.01118.49
8.2.270.0100.00717.14
8.2.260.0050.00318.11
8.2.250.0030.01518.46
8.2.240.0040.00416.96
8.2.230.0090.00022.58
8.2.220.0070.00037.54
8.2.210.0040.00426.77
8.2.200.0030.00718.29
8.2.190.0170.00316.88
8.2.180.0100.01018.16
8.2.170.0090.00622.96
8.2.160.0090.00618.92
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0080.00019.55
8.2.110.0060.00619.31
8.2.100.0080.00417.84
8.2.90.0040.00419.22
8.2.80.0040.00417.97
8.2.70.0000.00817.93
8.2.60.0030.00617.93
8.2.50.0060.00318.10
8.2.40.0070.00021.10
8.2.30.0040.00419.30
8.2.20.0050.00518.12
8.2.10.0000.00719.35
8.2.00.0050.00219.38
8.1.330.0100.00921.96
8.1.320.0090.01016.00
8.1.310.0040.00418.38
8.1.300.0000.00819.96
8.1.290.0090.00018.88
8.1.280.0120.00625.92
8.1.270.0030.00620.26
8.1.260.0080.00026.35
8.1.250.0070.00728.09
8.1.240.0060.00320.95
8.1.230.0090.00319.04
8.1.220.0030.00717.79
8.1.210.0040.00418.77
8.1.200.0050.00517.23
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0040.00418.86
8.1.160.0040.00418.89
8.1.150.0040.00418.77
8.1.140.0040.00417.67
8.1.130.0000.00719.00
8.1.120.0040.00417.42
8.1.110.0000.00917.49
8.1.100.0030.00617.45
8.1.90.0000.00717.45
8.1.80.0030.00317.47
8.1.70.0080.00017.39
8.1.60.0060.00317.66
8.1.50.0040.00417.56
8.1.40.0000.00717.41
8.1.30.0040.00417.62
8.1.20.0050.00217.55
8.1.10.0080.00017.51
8.1.00.0040.00417.50
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0050.00318.45
8.0.270.0040.00416.84
8.0.260.0000.00617.27
8.0.250.0040.00416.96
8.0.240.0040.00416.97
8.0.230.0070.00016.83
8.0.220.0000.00816.85
8.0.210.0000.00716.79
8.0.200.0030.00316.93
8.0.190.0040.00416.98
8.0.180.0040.00416.83
8.0.170.0050.00316.93
8.0.160.0040.00416.86
8.0.150.0090.00016.72
8.0.140.0030.00316.77
8.0.130.0060.00013.38
8.0.120.0000.00716.77
8.0.110.0040.00416.81
8.0.100.0000.00816.87
8.0.90.0040.00416.79
8.0.80.0050.01116.90
8.0.70.0040.00416.77
8.0.60.0000.00716.85
8.0.50.0000.00916.94
8.0.30.0120.00816.95
8.0.20.0110.01117.40
8.0.10.0040.00417.08
8.0.00.0070.01416.76
7.4.330.0000.00515.55
7.4.320.0000.00716.65
7.4.300.0060.00016.50
7.4.290.0030.00316.49
7.4.280.0050.00316.55
7.4.270.0000.00716.51
7.4.260.0000.00716.51
7.4.250.0070.00016.49
7.4.240.0000.00716.46
7.4.230.0030.00316.36
7.4.220.0080.00016.68
7.4.210.0110.00716.51
7.4.200.0030.00316.48
7.4.160.0080.00916.39
7.4.140.0140.01117.86
7.4.130.0040.01316.56
7.4.120.0150.00616.54
7.4.110.0120.00516.56
7.4.100.0030.01316.63
7.4.90.0130.00716.57
7.4.80.0130.01019.39
7.4.70.0090.00916.47
7.4.60.0030.01316.55
7.4.50.0000.01716.42
7.4.40.0220.00016.43
7.4.10.0070.01215.64
7.4.00.0070.01015.44
7.3.330.0000.00513.11
7.3.320.0000.00612.94
7.3.310.0030.00316.17
7.3.300.0000.00716.23
7.3.290.0080.00016.20
7.3.280.0030.01116.37
7.3.260.0110.00816.41
7.3.240.0140.00716.33
7.3.230.0100.00616.43
7.3.210.0090.00916.14
7.3.200.0120.00916.55
7.3.190.0090.00616.49
7.3.180.0110.00416.48
7.3.170.0100.00616.52
7.3.160.0160.00016.41
7.3.130.0080.01215.59
7.3.120.0080.00715.35
7.3.110.0060.00915.14
7.3.100.0030.01115.39
7.3.90.0070.00915.31
7.3.80.0030.00915.26
7.3.70.0040.00915.13
7.3.60.0030.01415.37
7.3.50.0040.01015.19
7.3.40.0070.00515.18
7.3.30.0050.00915.16
7.3.20.0070.00717.06
7.3.10.0050.00916.94
7.3.00.0030.00917.03
7.2.330.0110.00816.68
7.2.320.0180.01916.64
7.2.310.0150.00316.30
7.2.300.0120.00616.45
7.2.290.0090.01216.52
7.2.260.0080.01115.64
7.2.250.0110.00715.62
7.2.240.0020.01215.33
7.2.230.0070.00815.55
7.2.220.0050.00915.43
7.2.210.0050.00715.35
7.2.200.0060.01215.40
7.2.190.0060.00815.44
7.2.180.0020.01215.33
7.2.170.0080.00515.56
7.2.160.0040.00815.55
7.2.150.0090.00417.30
7.2.140.0070.00917.37
7.2.130.0060.00717.18
7.2.120.0070.00517.16
7.2.110.0080.00517.19
7.2.100.0080.00717.20
7.2.90.0080.00717.17
7.2.80.0070.00717.03
7.2.70.0110.00816.68
7.2.60.0140.00516.74
7.2.50.0130.00716.66
7.2.40.0120.00616.72
7.2.30.0120.00616.75
7.2.20.0120.00716.66
7.2.10.0120.00916.68
7.2.00.0140.00516.71
7.1.330.0050.00916.24
7.1.320.0050.01116.35
7.1.310.0090.00416.35
7.1.300.0040.01016.34
7.1.290.0090.00516.31
7.1.280.0040.00916.25
7.1.270.0040.00816.20
7.1.260.0060.00516.15
7.1.250.0050.01016.18
7.1.240.0040.00916.59
7.1.230.0050.00816.49
7.1.220.0000.01316.51
7.1.210.0020.01316.47
7.1.200.0060.00716.35
7.1.190.0070.00716.38
7.1.180.0030.01116.30
7.1.170.0250.00715.63
7.1.160.0100.01215.67
7.1.150.0140.00715.71
7.1.140.0160.00515.61
7.1.130.0140.00515.60
7.1.120.0330.00915.59
7.1.110.0120.00815.58
7.1.100.0110.00815.62
7.1.90.0170.00515.56
7.1.80.0120.01215.73
7.1.70.0110.01015.75
7.1.60.0140.01021.52
7.1.50.0220.00921.62
7.1.40.0230.00821.58
7.1.30.0170.00721.54
7.1.20.0180.00721.57
7.1.10.0110.00615.60
7.1.00.0130.00815.63
7.0.330.0020.01015.89
7.0.320.0030.00716.32
7.0.310.0040.00816.13
7.0.300.0040.00616.00
7.0.290.0110.00416.00
7.0.280.0070.00516.19
7.0.270.0040.00816.03
7.0.260.0060.00616.00
7.0.250.0030.00916.27
7.0.240.0030.01216.15
7.0.230.0070.01016.30
7.0.220.0070.00816.21
7.0.210.0090.00616.19
7.0.200.0110.00315.99
7.0.190.0070.00516.25
7.0.180.0070.00616.23
7.0.170.0060.00716.21
7.0.160.0060.00616.07
7.0.150.0080.00616.05
7.0.140.0070.00816.05
7.0.130.0060.00916.13
7.0.120.0090.00716.26
7.0.110.0050.01016.22
7.0.100.0040.00716.02
7.0.90.0030.01016.31
7.0.80.0070.00816.03
7.0.70.0000.01016.23
7.0.60.0040.01116.15
7.0.50.0020.01116.16
7.0.40.0050.00614.22
7.0.30.0060.00614.33
7.0.20.0080.00614.32
7.0.10.0060.00914.18
7.0.00.0060.00914.24
5.6.400.0050.00815.05
5.6.390.0020.00814.90
5.6.380.0040.00915.00
5.6.370.0030.01215.10
5.6.360.0110.00315.16
5.6.350.0020.01214.97
5.6.340.0050.01115.08
5.6.330.0020.01215.00
5.6.320.0080.00615.14
5.6.310.0070.00914.86
5.6.300.0070.00515.03
5.6.290.0050.00814.96
5.6.280.0030.01215.04
5.6.270.0090.00715.01
5.6.260.0050.00914.91
5.6.250.0070.00415.05
5.6.240.0050.01115.08
5.6.230.0030.01314.98
5.6.220.0020.00915.11
5.6.210.0030.01014.97
5.6.200.0110.00515.05
5.6.190.0030.00815.10
5.6.180.0020.01114.89
5.6.170.0050.00815.00
5.6.160.0050.00815.08
5.6.150.0060.00615.06
5.6.140.0050.00715.20
5.6.130.0100.00414.99
5.6.120.0080.00714.98
5.6.110.0090.00515.01
5.6.100.0030.00814.94
5.6.90.0020.00914.78
5.6.80.0050.00715.22
5.6.70.0040.01015.03
5.6.60.0030.00815.15
5.6.50.0050.00714.95
5.6.40.0020.01215.12
5.6.30.0060.00914.99
5.6.20.0090.00715.04
5.6.10.0050.01115.00
5.6.00.0100.00514.84

preferences:
29.84 ms | 403 KiB | 5 Q