3v4l.org

run code in 300+ PHP versions simultaneously
<?php const A = [2, 3, 1]; sort(A); var_dump(A);

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.0130.00718.68
8.3.50.0150.00521.22
8.3.40.0150.00318.58
8.3.30.0140.00018.88
8.3.20.0080.00020.10
8.3.10.0000.00923.66
8.3.00.0030.00619.51
8.2.180.0070.01016.50
8.2.170.0060.01122.96
8.2.160.0070.00720.38
8.2.150.0120.00324.18
8.2.140.0050.00324.66
8.2.130.0050.00226.16
8.2.120.0040.00422.24
8.2.110.0050.00522.25
8.2.100.0060.00318.68
8.1.280.0110.00725.92
8.1.270.0000.00823.88
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.01018.46
8.1.230.0050.00518.54
5.4.340.0070.03311.98
5.4.320.0050.03712.47
5.4.310.0110.03312.46
5.4.300.0080.03912.47
5.4.290.0100.03612.46
5.4.280.0080.03612.36
5.4.270.0040.03812.36
5.4.260.0060.03712.36
5.4.250.0050.03812.36
5.4.240.0060.03712.36
5.4.230.0050.03912.35
5.4.220.0030.03912.35
5.4.210.0030.03812.35
5.4.200.0080.03512.35
5.4.190.0080.03912.34
5.4.180.0030.03812.34
5.4.170.0070.03412.36
5.4.160.0070.03412.35
5.4.150.0050.03712.35
5.4.140.0070.04012.04
5.4.130.0060.03512.02
5.4.120.0030.03811.98
5.4.110.0120.03111.97
5.4.100.0080.04511.98
5.4.90.0050.03711.97
5.4.80.0070.03711.98
5.4.70.0050.03511.97
5.4.60.0090.03111.97
5.4.50.0090.03111.98
5.4.40.0090.03411.96
5.4.30.0040.03911.96
5.4.20.0070.03411.96
5.4.10.0130.02711.96
5.4.00.0040.03711.45
5.3.290.0060.03812.80
5.3.280.0060.03612.71
5.3.270.0060.03912.73
5.3.260.0080.03612.72
5.3.250.0040.03812.72
5.3.240.0060.03712.72
5.3.230.0050.03812.71
5.3.220.0060.03712.68
5.3.210.0090.03512.68
5.3.200.0080.03412.68
5.3.190.0050.03812.68
5.3.180.0060.03612.68
5.3.170.0050.03712.67
5.3.160.0060.03612.67
5.3.150.0070.03612.67
5.3.140.0050.03712.66
5.3.130.0060.03812.66
5.3.120.0050.04112.65
5.3.110.0060.03812.66
5.3.100.0070.03512.11
5.3.90.0060.03512.08
5.3.80.0050.03712.07
5.3.70.0030.03812.08
5.3.60.0060.03512.06
5.3.50.0050.03712.00
5.3.40.0050.04512.00
5.3.30.0070.03311.95
5.3.20.0040.03711.73
5.3.10.0080.03311.70
5.3.00.0080.03711.68
5.2.170.0050.0339.18
5.2.160.0050.0299.18
5.2.150.0050.0299.18
5.2.140.0060.0299.18
5.2.130.0040.0309.14
5.2.120.0050.0289.14
5.2.110.0030.0319.14
5.2.100.0040.0299.14
5.2.90.0070.0319.14
5.2.80.0080.0269.13
5.2.70.0060.0289.14
5.2.60.0040.0299.09
5.2.50.0090.0319.05
5.2.40.0050.0309.03
5.2.30.0030.0319.02
5.2.20.0070.0269.01
5.2.10.0050.0288.93
5.2.00.0040.0308.78
5.1.60.0050.0238.07
5.1.50.0060.0238.07
5.1.40.0030.0258.05
5.1.30.0040.0268.40
5.1.20.0040.0268.41
5.1.10.0040.0298.14
5.1.00.0050.0318.14
5.0.50.0030.0256.62
5.0.40.0040.0196.48
5.0.30.0020.0326.29
5.0.20.0030.0206.27
5.0.10.0050.0186.23
5.0.00.0030.0316.23
4.4.90.0040.0144.78
4.4.80.0040.0164.76
4.4.70.0060.0144.76
4.4.60.0050.0134.76
4.4.50.0030.0154.77
4.4.40.0020.0274.71
4.4.30.0020.0164.76
4.4.20.0010.0174.84
4.4.10.0010.0174.85
4.4.00.0020.0274.76
4.3.110.0010.0174.67
4.3.100.0040.0184.66
4.3.90.0030.0154.64
4.3.80.0040.0264.58
4.3.70.0060.0164.63
4.3.60.0050.0174.63
4.3.50.0030.0214.63
4.3.40.0060.0254.54
4.3.30.0040.0163.28
4.3.20.0020.0193.26
4.3.10.0030.0153.21
4.3.00.0030.01713.71

preferences:
34.54 ms | 401 KiB | 5 Q