3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo strnatcmp(1, 2) . PHP_EOL; // -1 echo strnatcmp(10, 2) . PHP_EOL; // 1

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.130.0110.00918.30
8.3.120.0090.00018.65
8.3.110.0060.00318.55
8.3.100.0040.00424.06
8.3.90.0040.01126.77
8.3.80.0060.00318.56
8.3.70.0180.00917.44
8.3.60.0180.00516.60
8.3.50.0180.00821.38
8.3.40.0100.01018.11
8.3.30.0210.00217.90
8.3.20.0070.00718.58
8.3.10.0140.00220.38
8.3.00.0130.00519.06
8.2.250.0080.00016.57
8.2.240.0060.00318.62
8.2.230.0100.00020.94
8.2.220.0040.00437.54
8.2.210.0060.00326.77
8.2.200.0040.00716.25
8.2.190.0140.00716.60
8.2.180.0150.00817.31
8.2.170.0160.00318.32
8.2.160.0170.00320.17
8.2.150.0130.00220.83
8.2.140.0150.00121.01
8.2.130.0120.00621.70
8.2.120.0140.00519.10
8.2.110.0110.00719.31
8.2.100.0150.00517.55
8.2.90.0140.00218.37
8.2.80.0160.00217.61
8.2.70.0120.00717.38
8.2.60.0100.01017.34
8.2.50.0150.00517.19
8.2.40.0120.00617.48
8.2.30.0120.00318.34
8.2.20.0090.00717.52
8.2.10.0110.00417.64
8.2.00.0090.00517.61
8.1.300.0030.00520.13
8.1.290.0060.00330.84
8.1.280.0150.00721.25
8.1.270.0130.00520.50
8.1.260.0100.00921.73
8.1.250.0150.00422.60
8.1.240.0170.00219.82
8.1.230.0130.00318.19
8.1.220.0110.00517.55
8.1.210.0110.00417.95
8.1.200.0070.00817.11
8.1.190.0140.00217.82
8.1.180.0070.00617.66
8.1.170.0110.00417.82
8.1.160.0120.00118.10
8.1.150.0110.00417.97
8.1.140.0090.00518.32
8.1.130.0090.00517.27
8.1.120.0050.01117.36
8.1.110.0140.00417.25
8.1.100.0140.00317.06
8.1.90.0110.00617.21
8.1.80.0090.00817.15
8.1.70.0120.00417.18
8.1.60.0110.00617.25
8.1.50.0110.00817.12
8.1.40.0110.00617.32
8.1.30.0140.00417.33
8.1.20.0150.00317.36
8.1.10.0140.00417.30
8.1.00.0100.00817.19
8.0.300.0110.00517.67
8.0.290.0060.01016.60
8.0.280.0100.00517.43
8.0.270.0110.00316.69
8.0.260.0110.00316.61
8.0.250.0090.00516.74
8.0.240.0130.00316.74
8.0.230.0110.00516.66
8.0.220.0110.00516.70
8.0.210.0140.00216.64
8.0.200.0070.00916.72
8.0.190.0100.00616.67
8.0.180.0060.00816.66
8.0.170.0080.00616.73
8.0.160.0090.00516.68
8.0.150.0110.00716.62
8.0.140.0140.00316.68
8.0.130.0110.00414.88
8.0.120.0120.00516.67
8.0.110.0160.00316.66
8.0.100.0130.00216.65
8.0.90.0070.00716.72
8.0.80.0080.01216.69
8.0.70.0130.00416.63
8.0.60.0120.00416.61
8.0.50.0120.00516.58
8.0.30.0140.00816.85
8.0.20.0100.01017.20
8.0.10.0110.00416.69
8.0.00.0150.00516.70
7.4.330.0130.00115.83
7.4.320.0220.00116.42
7.4.300.0100.00616.46
7.4.290.0130.00216.51
7.4.280.0140.00216.54
7.4.270.0100.00616.44
7.4.260.0080.00716.52
7.4.250.0090.00516.48
7.4.240.0080.00516.45
7.4.230.0100.00616.42
7.4.220.0140.00916.42
7.4.210.0140.00416.39
7.4.200.0100.00516.51
7.4.190.0140.00616.58
7.4.180.0160.00316.58
7.4.160.0100.00616.43
7.4.150.0140.00916.99
7.4.140.0150.00717.43
7.4.130.0090.01116.38
7.4.120.0100.01016.39
7.4.110.0150.00816.38
7.4.100.0110.01116.39
7.4.90.0110.00916.43
7.4.80.0130.00617.66
7.4.70.0130.00917.18
7.4.60.0140.00717.23
7.4.50.0150.00817.22
7.4.40.0140.00717.20
7.4.30.0140.00717.23
7.4.20.0130.00817.26
7.4.10.0120.01017.17
7.4.00.0100.01116.71
7.3.330.0140.00314.76
7.3.320.0100.00214.78
7.3.310.0090.00616.41
7.3.300.0110.00316.31
7.3.290.0080.00516.39
7.3.280.0100.00616.25
7.3.270.0100.00816.99
7.3.260.0150.01016.46
7.3.250.0150.00416.31
7.3.240.0130.00616.32
7.3.230.0140.00916.50
7.3.220.0140.00616.36
7.3.210.0130.00616.26
7.3.200.0150.00717.32
7.3.190.0140.00817.18
7.3.180.0130.00917.23
7.3.170.0190.00617.25
7.3.160.0110.01017.18
7.3.150.0100.01217.26
7.3.140.0140.00717.13
7.3.130.0130.00917.22
7.3.120.0120.00916.94
7.3.110.0090.01216.97
7.3.100.0130.00916.86
7.3.90.0130.00716.92
7.3.80.0090.01116.86
7.3.70.0100.01016.65
7.3.60.0120.00816.61
7.3.50.0100.00916.64
7.3.40.0110.00816.59
7.3.30.0110.00816.63
7.3.20.0130.00817.03
7.3.10.0140.00717.01
7.3.00.0100.01016.96
7.2.340.0140.00716.41
7.2.330.0110.00716.39
7.2.320.0110.01017.36
7.2.310.0130.00917.33
7.2.300.0130.01017.31
7.2.290.0120.01117.34
7.2.280.0120.00917.31
7.2.270.0110.01117.31
7.2.260.0120.00917.33
7.2.250.0120.00916.94
7.2.240.0120.01216.97
7.2.230.0130.00817.05
7.2.220.0150.00616.97
7.2.210.0130.00816.94
7.2.200.0100.01016.76
7.2.190.0120.00816.77
7.2.180.0080.01316.73
7.2.170.0130.00816.81
7.2.160.0130.00817.02
7.2.150.0140.00817.23
7.2.140.0140.00717.21
7.2.130.0160.01017.15
7.2.120.0130.00917.21
7.2.110.0140.00817.10
7.2.100.0130.00817.05
7.2.90.0140.00817.05
7.2.80.0110.00817.11
7.2.70.0150.00817.16
7.2.60.0150.01117.10
7.2.50.0140.00717.11
7.2.40.0130.00917.13
7.2.30.0150.00817.14
7.2.20.0130.00917.18
7.2.10.0130.01017.13
7.2.00.0120.00917.32
7.1.330.0160.01016.59
7.1.320.0180.00716.64
7.1.310.0190.00716.69
7.1.300.0180.00716.34
7.1.290.0150.01016.36
7.1.280.0170.00916.31
7.1.270.0150.00816.35
7.1.260.0130.00916.31
7.1.250.0150.00716.33
7.1.240.0160.00716.32
7.1.230.0180.00616.29
7.1.220.0150.00916.25
7.1.210.0160.00716.23
7.1.200.0120.01016.21
7.1.190.0180.00816.26
7.1.180.0160.00816.23
7.1.170.0170.00916.25
7.1.160.0140.00916.20
7.1.150.0170.00716.25
7.1.140.0150.00916.23
7.1.130.0220.00816.29
7.1.120.0120.01016.24
7.1.110.0150.00816.23
7.1.100.0150.00916.27
7.1.90.0140.00916.25
7.1.80.0170.00816.30
7.1.70.0140.00816.34
7.1.60.0190.00818.45
7.1.50.0180.00718.28
7.1.40.0170.01018.27
7.1.30.0190.00618.27
7.1.20.0160.01018.25
7.1.10.0150.00816.24
7.1.00.0170.01416.85
7.0.330.0190.01016.15
7.0.320.0190.00516.16
7.0.310.0180.00816.06
7.0.300.0180.00716.09
7.0.290.0160.01016.04
7.0.280.0180.00616.07
7.0.270.0180.00716.09
7.0.260.0170.00816.08
7.0.250.0140.01116.09
7.0.240.0150.00816.10
7.0.230.0190.00816.08
7.0.220.0210.00616.06
7.0.210.0200.00616.08
7.0.200.0210.00915.91
7.0.190.0190.00616.13
7.0.180.0160.00916.08
7.0.170.0170.01016.11
7.0.160.0170.00716.08
7.0.150.0170.00716.10
7.0.140.0170.00816.09
7.0.130.0150.00816.10
7.0.120.0220.00916.11
7.0.110.0160.00816.08
7.0.100.0180.00716.10
7.0.90.0160.00816.05
7.0.80.0170.00716.10
7.0.70.0200.01316.43
7.0.60.0210.01216.50
7.0.50.0210.01316.51
7.0.40.0220.01216.48
7.0.30.0190.01316.53
7.0.20.0230.01616.54
7.0.10.0200.01116.50
7.0.00.0170.01416.46
5.6.400.0150.00916.60
5.6.390.0150.00916.53
5.6.380.0150.01016.23
5.6.370.0200.00616.35
5.6.360.0150.01016.31
5.6.350.0180.00916.32
5.6.340.0160.01116.25
5.6.330.0150.01016.31
5.6.320.0160.00916.28
5.6.310.0160.01016.28
5.6.300.0170.00916.29
5.6.290.0140.01116.30
5.6.280.0130.01716.74
5.6.270.0170.01116.31
5.6.260.0150.01116.36
5.6.250.0170.01016.29
5.6.240.0160.01016.30
5.6.230.0150.01116.26
5.6.220.0210.01516.72
5.6.210.0170.01716.72
5.6.200.0190.01416.74
5.6.190.0170.01616.82
5.6.180.0180.01516.78
5.6.170.0200.01316.79
5.6.160.0190.01316.76
5.6.150.0180.01416.83
5.6.140.0160.01516.74
5.6.130.0180.01516.82
5.6.120.0160.01516.79
5.6.110.0180.01416.79
5.6.100.0170.01616.73
5.6.90.0180.01816.77
5.6.80.0160.01416.64
5.6.70.0170.01416.64
5.6.60.0210.01316.64
5.6.50.0180.01416.65
5.6.40.0190.01316.74
5.6.30.0160.01716.64
5.6.20.0170.01416.67
5.6.10.0150.01816.69
5.6.00.0170.01416.63
5.5.380.0150.01215.98
5.5.370.0200.00915.94
5.5.360.0210.01516.34
5.5.350.0210.01216.41
5.5.340.0200.01516.42
5.5.330.0200.01416.40
5.5.320.0180.01616.38
5.5.310.0190.01516.41
5.5.300.0180.01516.44
5.5.290.0200.01616.40
5.5.280.0170.01516.44
5.5.270.0180.01516.35
5.5.260.0200.01516.41
5.5.250.0170.01616.35
5.5.240.0250.01316.33
5.5.230.0190.01416.31
5.5.220.0210.01216.31
5.5.210.0170.01716.33
5.5.200.0200.01216.29
5.5.190.0170.01416.36
5.5.180.0170.01416.25
5.5.170.0160.01016.21
5.5.160.0170.01516.32
5.5.150.0190.01316.27
5.5.140.0150.01516.28
5.5.130.0160.01516.30
5.5.120.0190.01316.31
5.5.110.0190.01316.26
5.5.100.0180.01416.22
5.5.90.0190.01216.26
5.5.80.0160.01516.31
5.5.70.0180.01516.26
5.5.60.0180.01416.25
5.5.50.0170.01416.30
5.5.40.0190.01316.32
5.5.30.0180.01316.31
5.5.20.0190.01216.29
5.5.10.0140.01716.30
5.5.00.0180.01516.25

preferences:
29.11 ms | 403 KiB | 5 Q