3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ "php4", "php12", "php1", "php123", ]; sort($arr); var_dump($arr); natsort($arr); var_dump($arr);

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.0090.00918.13
8.3.120.0100.00020.71
8.3.110.0060.00318.29
8.3.100.0060.00316.38
8.3.90.0040.00426.77
8.3.80.0090.00016.38
8.3.70.0130.00616.58
8.3.60.0040.01118.06
8.3.50.0070.01218.13
8.3.40.0060.00918.42
8.3.30.0030.01018.54
8.3.20.0030.00521.77
8.3.10.0040.00418.92
8.3.00.0050.00321.65
8.2.250.0050.00318.23
8.2.240.0080.00817.24
8.2.230.0060.00320.94
8.2.220.0050.00324.06
8.2.210.0080.00026.77
8.2.200.0060.00316.75
8.2.190.0160.00316.58
8.2.180.0070.01121.49
8.2.170.0040.01122.96
8.2.160.0070.01020.59
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0070.00426.16
8.2.120.0060.00326.16
8.2.110.0030.00621.00
8.2.100.0060.00619.64
8.2.90.0070.00317.78
8.2.80.0070.00317.97
8.2.70.0080.00017.80
8.2.60.0050.00518.22
8.2.50.0000.00719.28
8.2.40.0040.00420.82
8.2.30.0000.00720.30
8.2.20.0000.00818.03
8.2.10.0040.00418.90
8.2.00.0000.00717.96
8.1.300.0100.01019.42
8.1.290.0090.00030.84
8.1.280.0140.00325.92
8.1.270.0040.00422.02
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00623.97
8.1.230.0000.01120.78
8.1.220.0040.00417.76
8.1.210.0040.00418.77
8.1.200.0030.00617.22
8.1.190.0060.00317.23
8.1.180.0000.00718.10
8.1.170.0000.00818.51
8.1.160.0070.00018.79
8.1.150.0000.00718.81
8.1.140.0050.00320.29
8.1.130.0080.00320.23
8.1.120.0030.00417.28
8.1.110.0030.00717.36
8.1.100.0040.00417.34
8.1.90.0040.00417.38
8.1.80.0040.00417.42
8.1.70.0000.00717.42
8.1.60.0040.00417.52
8.1.50.0040.00417.33
8.1.40.0030.00617.34
8.1.30.0000.00917.59
8.1.20.0040.00417.59
8.1.10.0040.00417.48
8.1.00.0000.00817.32
8.0.300.0040.00419.65
8.0.290.0030.00516.63
8.0.280.0030.00318.33
8.0.270.0030.00317.09
8.0.260.0040.00418.28
8.0.250.0070.00016.79
8.0.240.0000.00716.79
8.0.230.0070.00016.84
8.0.220.0040.00416.84
8.0.210.0070.00016.79
8.0.200.0030.00316.85
8.0.190.0000.00816.77
8.0.180.0040.00416.86
8.0.170.0000.00916.84
8.0.160.0080.00016.86
8.0.150.0000.00716.67
8.0.140.0050.00516.85
8.0.130.0000.00513.14
8.0.120.0040.00416.80
8.0.110.0040.00416.77
8.0.100.0000.00816.75
8.0.90.0030.00516.71
8.0.80.0070.00816.73
8.0.70.0080.00016.63
8.0.60.0070.00016.75
8.0.50.0000.00716.73
8.0.30.0140.00417.22
8.0.20.0090.01117.26
8.0.10.0040.00416.82
8.0.00.0130.00516.62
7.4.330.0000.00415.55
7.4.320.0070.00016.43
7.4.300.0030.00316.37
7.4.290.0040.00416.54
7.4.280.0040.00416.48
7.4.270.0070.00016.53
7.4.260.0000.00716.55
7.4.250.0080.00016.52
7.4.240.0030.00316.47
7.4.230.0070.00016.62
7.4.220.0000.00916.58
7.4.210.0090.00916.47
7.4.200.0070.00016.32
7.4.160.0090.01116.32
7.4.140.0180.00017.86
7.4.130.0070.01316.34
7.4.120.0090.01516.35
7.4.110.0040.01416.25
7.4.100.0080.01016.42
7.4.90.0100.00716.26
7.4.80.0100.00719.39
7.4.70.0100.00716.59
7.4.60.0140.00716.43
7.4.50.0000.01116.21
7.4.40.0060.01016.50
7.4.10.0170.00316.37
7.4.00.0080.00815.63
7.3.330.0050.00012.89
7.3.320.0000.00613.07
7.3.310.0030.00315.93
7.3.300.0030.00316.08
7.3.290.0030.01216.15
7.3.280.0100.01016.09
7.3.260.0110.00716.25
7.3.230.0140.00316.48
7.3.210.0070.01116.26
7.3.200.0060.01216.13
7.3.190.0140.00716.22
7.3.180.0160.00016.35
7.3.170.0090.01216.44
7.3.160.0060.01116.28
7.3.130.0000.01216.20
7.3.120.0060.01216.11
7.3.110.0090.00615.95
7.3.100.0060.00916.01
7.3.90.0090.00616.23
7.3.80.0110.00316.30
7.3.70.0040.01116.21
7.3.60.0070.00716.14
7.3.50.0100.00515.29
7.3.40.0070.00715.35
7.3.30.0040.01115.43
7.3.20.0100.00717.34
7.3.10.0090.00517.22
7.3.00.0100.00817.27
7.2.330.0140.00316.54
7.2.320.0120.00616.40
7.2.310.0170.00316.32
7.2.300.0120.00616.21
7.2.290.0030.01416.13
7.2.260.0100.01016.13
7.2.250.0110.01116.32
7.2.240.0080.00816.28
7.2.230.0070.00316.25
7.2.220.0070.00716.37
7.2.210.0040.00916.34
7.2.200.0060.00916.48
7.2.190.0060.00916.39
7.2.180.0070.00615.66
7.2.170.0110.00715.52
7.2.160.0040.00815.39
7.2.150.0030.01117.52
7.2.140.0100.00917.53
7.2.130.0090.00617.45
7.2.120.0030.01317.33
7.2.110.0040.01317.38
7.2.100.0030.00717.36
7.2.90.0050.00917.43
7.2.80.0030.01217.46
7.2.70.0090.00617.49
7.2.60.0070.00417.44
7.2.50.0050.00517.30
7.2.40.0070.00517.44
7.2.30.0110.00617.37
7.2.20.0100.00717.51
7.2.10.0110.00317.37
7.2.00.0130.00317.39
7.1.330.0040.01217.05
7.1.320.0100.00617.20
7.1.310.0060.00917.34
7.1.300.0070.01117.16
7.1.290.0100.00617.28
7.1.280.0090.00616.58
7.1.270.0080.00516.35
7.1.260.0060.01316.38
7.1.250.0090.00816.43
7.1.240.0090.00917.39
7.1.230.0030.00917.17
7.1.220.0040.00717.21
7.1.210.0070.00717.17
7.1.200.0000.01117.15
7.1.190.0090.00317.36
7.1.180.0060.01217.08
7.1.170.0060.00617.27
7.1.160.0130.00017.35
7.1.150.0030.01017.14
7.1.140.0040.00717.24
7.1.130.0000.01117.34
7.1.120.0000.01117.27
7.1.110.0110.00417.16
7.1.100.0100.00717.36
7.1.90.0090.00617.18
7.1.80.0100.00017.11
7.1.70.0030.01017.23
7.1.60.0060.00617.27
7.1.50.0090.00017.32
7.1.40.0040.00717.31
7.1.30.0000.01417.40
7.1.20.0110.00017.19
7.1.10.0140.00017.29
7.1.00.0040.01117.19

preferences:
49.96 ms | 403 KiB | 5 Q